랭킹으로 돌아가기

swoft-cloud/swoft

PHPswoft.org

🚀 PHP Microservice Full Coroutine Framework

swoolecoroutinemicroserviceaopannotation-frameworkrpcannotationstcp-serverwebsocket-serverhttp-serverspring-cloudspringboot
스타 성장
스타
5.5k
포크
765
주간 성장
이슈
190
2k4k
2023년 1월2024년 3월2025년 5월2026년 7월
아티팩트Packagistcomposer require swoft-cloud/swoft
README

swoft-logo

Latest Stable Version Build Status Docker Build Status Php Version Swoole Version Swoft Doc Swoft License Gitter

start-http-server

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

  • 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

Component Name Packagist Version
swoft-annotation Latest Stable Version
swoft-config Latest Stable Version
swoft-db Latest Stable Version
swoft-framework Latest Stable Version
swoft-i18n Latest Stable Version
swoft-proxy Latest Stable Version
swoft-rpc-client Latest Stable Version
swoft-stdlib Latest Stable Version
swoft-tcp-server Latest Stable Version
swoft-aop Latest Stable Version
swoft-connection-pool Latest Stable Version
swoft-error Latest Stable Version
swoft-http-message Latest Stable Version
swoft-log Latest Stable Version
swoft-redis Latest Stable Version
swoft-rpc-server Latest Stable Version
swoft-task Latest Stable Version
swoft-validator Latest Stable Version
swoft-bean Latest Stable Version
swoft-console Latest Stable Version
swoft-event Latest Stable Version
swoft-http-server Latest Stable Version
swoft-process Latest Stable Version
swoft-rpc Latest Stable Version
swoft-server Latest Stable Version
swoft-tcp Latest Stable Version
swoft-websocket-server Latest Stable Version

Extension Components

Component Name Packagist Version
swoft-apollo Latest Stable Version
swoft-breaker Latest Stable Version
swoft-crontab Latest Stable Version
swoft-consul Latest Stable Version
swoft-limiter Latest Stable Version
swoft-view Latest Stable Version
swoft-whoops Latest Stable Version

License

Swoft is an open-source software licensed under the LICENSE

관련 저장소
swoole/swoole-src

🚀 Coroutine-based concurrency library for PHP

C++Apache License 2.0swoolecoroutines
swoole.com
18.9k3.1k
hyperf/hyperf

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

PHPPackagistMIT Licenseswoolecoroutine
hyperf.io
6.9k1.3k
easy-swoole/easyswoole

swoole,easyswoole,swoole framework

PHPPackagistApache License 2.0swooleeasyswoole
easyswoole.com
4.8k503
swooletw/laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.

PHPPackagistMIT Licenseswooleswoole-server
4k383
laravel/octane

Supercharge your Laravel application's performance.

PHPPackagistMIT Licenselaraveloctane
laravel.com/docs/octane
4k342
hhxsv5/laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

PHPPackagistMIT Licenseswoolelaravel
3.9k465
colinlet/PHP-Interview-QA

系统性的 PHP 技术面试问答大全(面经)。涵盖 PHP8、MySQL、Redis、Nginx、系统设计、算法、Laravel 源码及高并发架构原理,助你斩获后端研发 Offer。PHP Interview Questions & Answers.

TypeScriptnpmApache License 2.0algorithmarchitecture
colinlet.github.io/PHP-Interview-QA/
3k563
viest/php-ext-xlswriter

🚀 PHP Extension for creating and reader XLSX files.

CBSD 2-Clause "Simplified" Licensephpexcel
xlswriter.viest.me
2.4k236
viest/php-ext-xlsxwriter

🚀 PHP Extension for creating and reader XLSX files.

CBSD 2-Clause "Simplified" Licensephpexcel
xlswriter.viest.me
2.3k234
Tencent/tsf

coroutine and Swoole based php server framework in tencent

PHPPackagistOtherphpswoole
2.1k474
mix-php/mix

☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、Swow、WorkerMan、FPM、CLI-Server

PHPPackagistApache License 2.0swoolecoroutine
1.9k213
crazywhalecc/static-php-cli

Build standalone portable PHP binaries on Linux, macOS, Windows, with PHP project together, with popular extensions included.

PHPPackagistMIT Licenseswoolephp
static-php.dev
1.9k395