![swoft-logo](https://raw.githubusercontent.com/swoft-cloud/swoft/master/public/image/swoft-logo-mdl.png)
![Gitter](https://img.shields.io/gitter/room/swoft-cloud/swoft.svg)
![start-http-server](https://raw.githubusercontent.com/swoft-cloud/swoft/master/public/image/start-http-server.jpg)
PHP microservice coroutine framework
中文说明
Introduction
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.
Feature
- Built-in high performance network server(Http/Websocket/RPC/TCP)
- Flexible componentization
- Flexible annotation function
- Diversified command terminal(Console)
- Powerful Aspect Oriented Programming(AOP)
- Perfect Container management, Dependency Injection (DI)
- Flexible event mechanism
- Implementation of HTTP message based on PSR-7
- Event Manager Based on PSR-14
- Middleware based on PSR-15
- Internationalization(i18n) support
- Simple and efficient parameter validator
- High performance connection pool(Mysql/Redis/RPC),Automatic reconnection
- Database is highly compatible Laravel
- Cache Redis highly compatible Laravel
- Efficient task processing
- Efficient seconds crontab
- Process pool
- Flexible exception handling
- Powerful log system
- Service registration & discovery
- Service breaker
- Service restrictions
- Service fallback
- Configuration Center
- Apollo
- Consul
Document
Discuss
Requirement
Install
Composer
composer create-project swoft/swoft swoft
Start
[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
Core Components
Component Name |
Packagist Version |
swoft-annotation |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/annotation.svg) |
swoft-config |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/config.svg) |
swoft-db |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/db.svg) |
swoft-framework |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/framework.svg) |
swoft-i18n |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/i18n.svg) |
swoft-proxy |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/proxy.svg) |
swoft-rpc-client |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/rpc-client.svg) |
swoft-stdlib |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/stdlib.svg) |
swoft-tcp-server |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/tcp-server.svg) |
swoft-aop |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/aop.svg) |
swoft-connection-pool |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/connection-pool.svg) |
swoft-error |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/error.svg) |
swoft-http-message |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/http-message.svg) |
swoft-log |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/log.svg) |
swoft-redis |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/redis.svg) |
swoft-rpc-server |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/rpc-server.svg) |
swoft-task |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/task.svg) |
swoft-validator |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/validator.svg) |
swoft-bean |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/bean.svg) |
swoft-console |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/console.svg) |
swoft-event |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/event.svg) |
swoft-http-server |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/http-server.svg) |
swoft-process |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/process.svg) |
swoft-rpc |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/rpc.svg) |
swoft-server |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/server.svg) |
swoft-tcp |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/tcp.svg) |
swoft-websocket-server |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/websocket-server.svg) |
Extension Components
Component Name |
Packagist Version |
swoft-apollo |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/apollo.svg) |
swoft-breaker |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/breaker.svg) |
swoft-crontab |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/crontab.svg) |
swoft-consul |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/consul.svg) |
swoft-limiter |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/limiter.svg) |
swoft-view |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/view.svg) |
swoft-whoops |
![Latest Stable Version](http://img.shields.io/packagist/v/swoft/whoops.svg) |
License
Swoft is an open-source software licensed under the LICENSE