# swoft-cloud/swoft

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/swoft-cloud-swoft).**

5,539 stars · 766 forks · PHP · Apache-2.0

## Links

- GitHub: https://github.com/swoft-cloud/swoft
- Homepage: https://swoft.org
- awesome-repositories: https://awesome-repositories.com/repository/swoft-cloud-swoft.md

## Description

Swoft is a high-performance PHP microservice framework designed to handle concurrent network traffic and asynchronous tasks using coroutines. It provides a foundation for building scalable backend services through a coroutine-driven runtime and high-performance servers supporting HTTP, WebSocket, RPC, and TCP protocols.

The framework distinguishes itself through a set of governance and optimization tools, including a distributed service coordination system for registration, discovery, and circuit breaking. It also features a connection pool manager for reusable database and network sockets and a library for aspect-oriented programming to intercept and extend method behavior without modifying source code.

Additional capabilities include a dependency injection container for component decoupling, process-pool task execution for heavy computations, and a scheduling mechanism for recurring tasks. The system also supports centralized configuration management to synchronize application settings across different environments.

## Tags

### Networking & Communication

- [Microservice Frameworks](https://awesome-repositories.com/f/networking-communication/http-clients/http-servers/microservice-frameworks.md) — Provides a high-performance PHP microservice framework using coroutines to handle concurrent network traffic and asynchronous tasks.
- [Multi-Protocol Network Servers](https://awesome-repositories.com/f/networking-communication/multi-protocol-network-servers.md) — Ships high-performance servers supporting HTTP, WebSocket, RPC, and TCP protocols to process network traffic. ([source](https://cdn.jsdelivr.net/gh/swoft-cloud/swoft@main/README.md))
- [Service Governance](https://awesome-repositories.com/f/networking-communication/service-governance.md) — Provides a governance layer for service registration, discovery, and stability in microservice environments.

### Operating Systems & Systems Programming

- [Coroutine-Based Asynchronous I/O](https://awesome-repositories.com/f/operating-systems-systems-programming/asynchronous-i-o-libraries/coroutine-based-asynchronous-i-o.md) — Utilizes a coroutine-based concurrent runtime and non-blocking event loop to handle high network concurrency.

### Programming Languages & Runtimes

- [Asynchronous PHP Development](https://awesome-repositories.com/f/programming-languages-runtimes/asynchronous-php-development.md) — Enables the development of scalable microservices using PHP's asynchronous and coroutine-driven paradigms.

### Software Engineering & Architecture

- [Dependency Injection Containers](https://awesome-repositories.com/f/software-engineering-architecture/dependency-injection-containers.md) — Provides a dependency injection container to manage object lifecycles and decouple application components.
- [Distributed Service Coordination](https://awesome-repositories.com/f/software-engineering-architecture/distributed-service-coordination.md) — Implements distributed service coordination for registration, discovery, and circuit breaking across microservices.
- [Enterprise Backend Architectures](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns/backend-enterprise-systems/enterprise-backend-architectures.md) — Organizes backend services using modular patterns including dependency injection and AOP for scalability.
- [Aspect-Oriented Programming Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/aspect-oriented-programming-frameworks.md) — Provides a library for aspect-oriented programming to intercept and extend method behavior without modifying source code.
- [Asynchronous Task Processing](https://awesome-repositories.com/f/software-engineering-architecture/asynchronous-task-processing.md) — Implements architectural patterns for offloading heavy computations to background process pools.
- [Method Interception Proxies](https://awesome-repositories.com/f/software-engineering-architecture/method-interception-proxies.md) — Implements dynamic proxy systems to intercept method calls and inject cross-cutting logic via AOP.
- [Process Pools](https://awesome-repositories.com/f/software-engineering-architecture/task-scheduling/parallel-task-executors/parallel-task-spawning/process-pools.md) — Offloads heavy computational workloads to process pools to prevent blocking the main event loop.

### Web Development

- [High-Performance HTTP Servers](https://awesome-repositories.com/f/web-development/high-performance-http-servers.md) — Provides high-performance HTTP and network servers designed for low-latency and high-throughput.

### Data & Databases

- [Connection Pools](https://awesome-repositories.com/f/data-databases/connection-pools.md) — Manages reusable database and network connection pools to increase system throughput. ([source](https://cdn.jsdelivr.net/gh/swoft-cloud/swoft@main/README.md))
- [Connection Pool Managers](https://awesome-repositories.com/f/data-databases/database-management-systems/database-systems-management/connection-transaction-management/connection-pool-managers.md) — Implements a connection pool manager for reusable database and network sockets to optimize performance.
- [Connection Pooling](https://awesome-repositories.com/f/data-databases/high-concurrency-database-access/connection-pooling.md) — Maintains reusable connection pools for database and network sockets to optimize system performance.

### Development Tools & Productivity

- [Background Task Schedulers](https://awesome-repositories.com/f/development-tools-productivity/background-task-schedulers.md) — Provides a mechanism for executing background tasks and automated scripts on a fixed timetable. ([source](https://cdn.jsdelivr.net/gh/swoft-cloud/swoft@main/README.md))

### Part of an Awesome List

- [Language Toolkits](https://awesome-repositories.com/f/awesome-lists/devtools/language-toolkits.md) — Coroutine-based PHP microservices framework.
