Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 75 | All time: 10,189 This week: 524 |
Version | License | PHP version | Categories | |||
swoft 1.0 | Custom (specified... | 5 | PHP 5, Libraries, Web services |
Description | Author | |||||||||||||||||||||||
This package provides a framework to develop coroutine based application. Innovation Award |
|
PHP microservice coroutine framework
> ????
Swoft is a PHP microservices coroutine framework based on the Swoole extension. Like Go, Swoft has a built-in coroutine web server and a common coroutine client and is resident in memory, independent of traditional PHP-FPM. There are similar Go language operations, similar to the Spring Cloud framework flexible annotations, powerful global dependency injection container, comprehensive service governance, flexible and powerful AOP, standard PSR specification implementation and so on.
Through three years of accumulation and direction exploration, Swoft has made Swoft the Spring Cloud in the PHP world, which is the best choice for PHP's high-performance framework and microservices management.
composer create-project swoft/swoft swoft
[root@swoft swoft]# php bin/swoft http:start
[root@swoft swoft]# php bin/swoft ws:start
[root@swoft swoft]# php bin/swoft rpc:start
[root@swoft swoft]# php bin/swoft tcp:start
[root@swoft swoft]# php bin/swoft process:start
Component Name | Packagist Version --------------------|--------------------- swoft-annotation | swoft-config | swoft-db | swoft-framework | swoft-i18n | swoft-proxy | swoft-rpc-client | swoft-stdlib | swoft-tcp-server | swoft-aop | swoft-connection-pool | swoft-error | swoft-http-message | swoft-log | swoft-redis | swoft-rpc-server | swoft-task | swoft-validator | swoft-bean | swoft-console | swoft-event | swoft-http-server | swoft-process | swoft-rpc | swoft-server | swoft-tcp | swoft-websocket-server |
Component Name | Packagist Version -----------------|--------------------- swoft-apollo | swoft-breaker | swoft-crontab | swoft-consul | swoft-limiter | swoft-view | swoft-whoops |
Swoft is an open-source software licensed under the LICENSE
Files (114) |
File | Role | Description | ||
---|---|---|---|---|
.github (2 files) | ||||
app (3 files, 17 directories) | ||||
bin (2 files) | ||||
config (2 files, 1 directory) | ||||
public (1 directory) | ||||
resource (1 directory) | ||||
.dockerignore | Data | Auxiliary data | ||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
.php_cs | Example | Example script | ||
.travis.yml | Data | Auxiliary data | ||
composer.cn.json | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
dev.composer.json | Data | Auxiliary data | ||
docker-compose.yml | Data | Auxiliary data | ||
Dockerfile | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpstan.neon.dist | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
README.zh-CN.md | Doc. | Documentation |
Files (114) | / | .github |
File | Role | Description |
---|---|---|
CODE_OF_CONDUCT.md | Data | Auxiliary data |
ISSUE_TEMPLATE.md | Data | Auxiliary data |
Files (114) | / | app |
File | Role | Description | ||
---|---|---|---|---|
Annotation (2 directories) | ||||
Aspect (1 file) | ||||
Common (2 files) | ||||
Console (1 directory) | ||||
Crontab (1 file) | ||||
Exception (1 file, 1 directory) | ||||
Helper (1 file) | ||||
Http (2 directories) | ||||
Listener (5 files, 1 directory) | ||||
Migration (3 files) | ||||
Model (4 directories) | ||||
Process (3 files) | ||||
Rpc (3 directories) | ||||
Task (2 directories) | ||||
Tcp (1 directory) | ||||
Validator (2 files, 1 directory) | ||||
WebSocket (3 files, 2 directories) | ||||
Application.php | Class | Class source | ||
AutoLoader.php | Class | Class source | ||
bean.php | Class | Class source |
Files (114) | / | app | / | Annotation | / | Parser |
File | Role | Description |
---|---|---|
AlphaDashParser.php | Class | Class source |
Files (114) | / | app | / | Common |
File | Role | Description |
---|---|---|
DbSelector.php | Class | Class source |
RpcProvider.php | Class | Class source |
Files (114) | / | app | / | Console | / | Command |
File | Role | Description |
---|---|---|
AgentCommand.php | Class | Class source |
DemoCommand.php | Class | Class source |
TestCommand.php | Class | Class source |
Files (114) | / | app | / | Exception |
File | Role | Description | ||
---|---|---|---|---|
Handler (5 files) | ||||
ApiException.php | Class | Class source |
Files (114) | / | app | / | Exception | / | Handler |
File | Role | Description |
---|---|---|
ApiExceptionHandler.php | Class | Class source |
HttpExceptionHandler.php | Class | Class source |
RpcExceptionHandler.php | Class | Class source |
WsHandshakeExceptionHandler.php | Class | Class source |
WsMessageExceptionHandler.php | Class | Class source |
Files (114) | / | app | / | Http | / | Controller |
File | Role | Description |
---|---|---|
BeanController.php | Class | Class source |
BreakerController.php | Class | Class source |
CoController.php | Class | Class source |
DbBuilderController.php | Class | Class source |
DbModelController.php | Class | Class source |
DbTransactionController.php | Class | Class source |
ExceptionController.php | Class | Class source |
HomeController.php | Class | Class source |
LimiterController.php | Class | Class source |
LogController.php | Class | Class source |
RedisController.php | Class | Class source |
RespController.php | Class | Class source |
RpcController.php | Class | Class source |
SelectDbController.php | Class | Class source |
TaskController.php | Class | Class source |
TimerController.php | Class | Class source |
ValidatorController.php | Class | Class source |
ViewController.php | Class | Class source |
Files (114) | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
FavIconMiddleware.php | Class | Class source |
Files (114) | / | app | / | Listener |
File | Role | Description | ||
---|---|---|---|---|
Test (5 files) | ||||
DeregisterServiceListener.php | Class | Class source | ||
ModelSavedListener.php | Class | Class source | ||
RanListener.php | Class | Class source | ||
RegisterServiceListener.php | Class | Class source | ||
UserSavingListener.php | Class | Class source |
Files (114) | / | app | / | Listener | / | Test |
File | Role | Description |
---|---|---|
ShutDownListener.php | Class | Class source |
StartListener.php | Class | Class source |
TaskProcessListener.php | Class | Class source |
WorkerStartListener.php | Class | Class source |
WorkerStopListener.php | Class | Class source |
Files (114) | / | app | / | Migration |
File | Role | Description |
---|---|---|
AddMsg.php | Class | Class source |
AddUser.php | Class | Class source |
Message.php | Class | Class source |
Files (114) | / | app | / | Model |
Files (114) | / | app | / | Model | / | Entity |
File | Role | Description |
---|---|---|
Count.php | Class | Class source |
Count2.php | Class | Class source |
Desc.php | Class | Class source |
User.php | Class | Class source |
User3.php | Class | Class source |
Files (114) | / | app | / | Model | / | Logic |
File | Role | Description |
---|---|---|
ApolloLogic.php | Class | Class source |
BreakerLogic.php | Class | Class source |
ConsulLogic.php | Class | Class source |
LimiterLogic.php | Class | Class source |
MonitorLogic.php | Class | Class source |
RequestBean.php | Class | Class source |
RequestBeanTwo.php | Class | Class source |
UserLogic.php | Class | Class source |
Files (114) | / | app | / | Process |
File | Role | Description |
---|---|---|
MonitorProcess.php | Class | Class source |
Worker1Process.php | Class | Class source |
Worker2Process.php | Class | Class source |
Files (114) | / | app | / | Rpc | / | Service |
File | Role | Description |
---|---|---|
big.data | Data | Auxiliary data |
UserService.php | Class | Class source |
UserServiceV2.php | Class | Class source |
Files (114) | / | app | / | Task | / | Task |
File | Role | Description |
---|---|---|
SyncTask.php | Class | Class source |
TestTask.php | Class | Class source |
Files (114) | / | app | / | Validator |
File | Role | Description | ||
---|---|---|---|---|
Rule (1 file) | ||||
CustomerValidator.php | Class | Class source | ||
TestValidator.php | Class | Class source |
Files (114) | / | app | / | WebSocket |
File | Role | Description | ||
---|---|---|---|---|
Chat (1 file) | ||||
Test (1 file) | ||||
ChatModule.php | Class | Class source | ||
EchoModule.php | Class | Class source | ||
TestModule.php | Class | Class source |
Files (114) | / | bin |
File | Role | Description |
---|---|---|
bootstrap.php | Aux. | Auxiliary script |
swoft | Example | Example script |
Files (114) | / | config |
Files (114) | / | public | / | image |
File | Role | Description |
---|---|---|
start-http-server.jpg | Data | Auxiliary data |
swoft-logo-mdl.png | Data | Auxiliary data |
Files (114) | / | resource | / | views | / | layouts |
File | Role | Description | ||
---|---|---|---|---|
default (2 files) | ||||
default.php | Example | Example script |
Files (114) | / | resource | / | views | / | layouts | / | default |
File | Role | Description |
---|---|---|
footer.php | Aux. | Auxiliary script |
header.php | Aux. | Auxiliary script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.