# spiral/framework

**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/spiral-framework).**

2,051 stars · 91 forks · PHP · MIT

## Links

- GitHub: https://github.com/spiral/framework
- Homepage: https://spiral.dev
- awesome-repositories: https://awesome-repositories.com/repository/spiral-framework.md

## Topics

`framework` `golang` `hacktoberfest` `php` `php-framework` `php8` `psr-15` `psr-16` `psr-3` `psr-7` `roadrunner` `spiral` `spiral-framework`

## Description

This project is a high-performance PHP framework designed for building scalable services using a resident memory execution model. By maintaining application state in memory across requests, it eliminates bootstrap overhead and provides a persistent environment for long-running processes.

The framework distinguishes itself through its integrated support for durable workflow orchestration and asynchronous task management. It enables the execution of complex, long-running business processes that automatically handle failures and state recovery, alongside a background processing system that dispatches jobs across multiple drivers to ensure fault tolerance.

The platform provides a comprehensive suite of tools for modern web development, including an object-relational mapper for database persistence, middleware-based request handling, and modular bootloaders for managing application lifecycles. It also incorporates security features such as authentication, role-based access control, and schema-based input validation to protect application endpoints.

Additional capabilities include real-time bidirectional communication via WebSockets, telemetry collection for performance monitoring, and command-line tools for scaffolding and administrative automation.

## Tags

### Software Engineering & Architecture

- [High-Performance API Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/high-performance-api-frameworks.md) — Provides a high-performance framework for building scalable services using a resident memory execution model.
- [Asynchronous Task Queues](https://awesome-repositories.com/f/software-engineering-architecture/asynchronous-task-queues.md) — Provides a background processing system that dispatches jobs across multiple drivers to ensure fault tolerance.
- [Dependency Injection Containers](https://awesome-repositories.com/f/software-engineering-architecture/dependency-injection-containers.md) — Resolves and injects class dependencies automatically using attribute-based configuration to simplify component wiring.
- [Durable Workflow Engines](https://awesome-repositories.com/f/software-engineering-architecture/durable-workflow-engines.md) — Executes long-running business processes as stateful, fault-tolerant operations with automatic failure recovery.
- [Container-Based Dependency Injection](https://awesome-repositories.com/f/software-engineering-architecture/object-management-systems/dependency-injection-containers/container-type-resolvers/container-based-dependency-injection.md) — Supports automatic dependency resolution with attribute-based configuration and scoped object lifecycles. ([source](https://spiral.dev/docs))
- [Application Lifecycle Management](https://awesome-repositories.com/f/software-engineering-architecture/application-lifecycle-management.md) — Manages application startup, configuration, and request dispatching to ensure consistent state in long-running environments. ([source](https://spiral.dev/docs))
- [Background Processing](https://awesome-repositories.com/f/software-engineering-architecture/background-processing.md) — Offloads time-consuming operations to background queues to maintain application responsiveness.
- [Distributed Service Architectures](https://awesome-repositories.com/f/software-engineering-architecture/distributed-service-architectures.md) — Provides standardized protocols for high-performance communication and reliable data exchange between independent services. ([source](https://spiral.dev/docs))

### Web Development

- [High-Performance Web Services](https://awesome-repositories.com/f/web-development/high-performance-web-services.md) — Builds scalable, high-performance web services using a resident memory architecture to eliminate bootstrap overhead.
- [HTTP Request Handling](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-request-handling.md) — Processes incoming web requests through a middleware pipeline and routing layers to generate structured responses. ([source](https://spiral.dev/docs))
- [Middleware Pipelines](https://awesome-repositories.com/f/web-development/middleware-pipelines.md) — Routes incoming web requests through a series of interceptors and validation layers to generate structured responses.
- [Modular Application Architectures](https://awesome-repositories.com/f/web-development/modular-application-architectures.md) — Orchestrates application startup and configuration through isolated components to manage complex lifecycles.

### Data & Databases

- [Database ORMs](https://awesome-repositories.com/f/data-databases/database-orms.md) — Maps database records to objects and automates schema migrations across multiple database engines. ([source](https://github.com/spiral/framework/blob/master/README.md))
- [Relational Persistence Layers](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/data-storage-layers/relational-persistence-layers.md) — Provides relational persistence layers for mapping database records to application objects.
- [Data Mappers](https://awesome-repositories.com/f/data-databases/data-mappers.md) — Translates database records into application objects using a decoupled pattern that supports dynamic schemas.
- [Object-Relational Mappers](https://awesome-repositories.com/f/data-databases/object-relational-mappers.md) — Includes an object-relational mapper that maps database records to objects and automates schema migrations.

### DevOps & Infrastructure

- [Durable Task Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration/task-execution-frameworks/workflow-engines/durable-task-orchestrators.md) — Provides durable execution engines for complex, long-running business processes with automatic state recovery. ([source](https://spiral.dev/docs))
- [Distributed Workflow Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/distributed-workflow-orchestrators.md) — Enables the execution of complex, long-running business processes as stateful operations that automatically handle failures and recovery.
- [Background Job Processing](https://awesome-repositories.com/f/devops-infrastructure/background-job-processing.md) — Manages asynchronous job dispatching across multiple queue drivers with built-in supervision for fault tolerance. ([source](https://spiral.dev/docs))
- [Message Queue Workers](https://awesome-repositories.com/f/devops-infrastructure/message-queue-workers.md) — Dispatches asynchronous jobs to background processes using supervised message brokers to maintain responsiveness.
- [Worker Process Management](https://awesome-repositories.com/f/devops-infrastructure/worker-process-management.md) — Orchestrates worker processes and balances traffic using a high-performance server engine to maintain application state. ([source](https://spiral.dev/))

### Programming Languages & Runtimes

- [PHP Application Servers](https://awesome-repositories.com/f/programming-languages-runtimes/php-application-servers.md) — Ships a high-performance execution engine that maintains application state in memory across requests to eliminate bootstrap overhead.
- [Resident Process Execution](https://awesome-repositories.com/f/programming-languages-runtimes/resident-process-execution.md) — Maintains application state in memory across requests to remove the need for repeated initialization in long-running processes. ([source](https://github.com/spiral/framework/blob/master/README.md))

### Networking & Communication

- [WebSocket Clients and Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-clients-and-servers.md) — Supports real-time bidirectional communication between the server and clients through event-driven WebSocket broadcasting. ([source](https://spiral.dev/docs))

### Security & Cryptography

- [Authentication and Authorization](https://awesome-repositories.com/f/security-cryptography/authentication-and-authorization.md) — Incorporates authentication and role-based access control to protect application endpoints and user sessions. ([source](https://github.com/spiral/framework#readme))
- [Input Validation](https://awesome-repositories.com/f/security-cryptography/input-validation.md) — Verifies incoming request data against defined schemas to ensure integrity before processing business logic. ([source](https://spiral.dev/docs))
- [Web Application Security](https://awesome-repositories.com/f/security-cryptography/web-application-security.md) — Protects application endpoints using authentication, role-based access control, and schema-based input validation.
