swoft-cloud/swoft
소개
🚀 PHP 마이크로서비스용 풀 코루틴 프레임워크
시스템 및 인프라측정된 스타 증가
- in 24h
- -1
- in 7 days
- -4
- in 15 days
- -5
- in 1 month
- -8
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original

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
- Forum https://github.com/swoft-cloud/forum/issues
- Gitter.im https://gitter.im/swoft-cloud/community
- Reddit https://www.reddit.com/r/swoft/
- QQ Group3: 541038173
- QQ Group2: 778656850(full)
- QQ Group1: 548173319(full)
Requirement
Install
Composer
composer create-project swoft/swoft swoft
Start
- Http Server
[root@swoft swoft]# php bin/swoft http:start
- WebSocket Server
[root@swoft swoft]# php bin/swoft ws:start
- RPC Server
[root@swoft swoft]# php bin/swoft rpc:start
- TCP Server
[root@swoft swoft]# php bin/swoft tcp:start
- Process Pool
[root@swoft swoft]# php bin/swoft process:start
Core Components
Extension Components
| Component Name | Packagist Version |
|---|---|
| swoft-apollo | |
| swoft-breaker | |
| swoft-crontab | |
| swoft-consul | |
| swoft-limiter | |
| swoft-view | |
| swoft-whoops |
License
Swoft is an open-source software licensed under the LICENSE
관련 프로젝트 살펴보기
불러오는 중…