# kraken-php/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/kraken-php-framework).**

1,104 stars · 57 forks · PHP · MIT

## Links

- GitHub: https://github.com/kraken-php/framework
- Homepage: http://kraken-php.com
- awesome-repositories: https://awesome-repositories.com/repository/kraken-php-framework.md

## Topics

`async` `async-library` `asynchronous` `fault-tolerance` `microservices` `multi-process` `multi-thread` `php` `service-oriented` `stream` `supervision`

## Description

This framework is a distributed systems runtime designed for building fault-tolerant, message-driven microservices and high-performance network applications in PHP. It provides an asynchronous execution environment that utilizes event-loop-based concurrency and promise-based task orchestration to manage high-concurrency workloads without blocking execution threads.

The platform distinguishes itself through a unified execution abstraction that manages multi-process and multi-threaded components as isolated, supervised containers. By employing an actor-model approach to process supervision, the framework ensures system stability by automatically restarting components upon failure. It further facilitates distributed operations through state synchronization and message-driven inter-process communication, allowing components to exchange data and coordinate tasks across multiple nodes without relying on shared memory.

The framework supports a broad range of infrastructure capabilities, including protocol-agnostic network hosting for HTTP, WebSocket, TCP, and UDP traffic. It also incorporates secure remote communication protocols to protect data in transit and provides a standardized filesystem abstraction layer to interact with diverse storage backends.

## Tags

### Programming Languages & Runtimes

- [Asynchronous PHP Development](https://awesome-repositories.com/f/programming-languages-runtimes/asynchronous-php-development.md) — Provides a comprehensive framework for building high-concurrency, event-driven applications in PHP.
- [Asynchronous PHP Servers](https://awesome-repositories.com/f/programming-languages-runtimes/php-application-servers/asynchronous-php-servers.md) — Provides a fault-tolerant framework for building distributed applications using asynchronous PHP patterns.
- [Promise-Based Chains](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/runtimes/asynchronous-execution-engines/asynchronous-control-flows/promise-based-flow-control/promise-based-chains.md) — Orchestrates complex asynchronous workflows using promise-based chains for sequential and parallel task execution.

### Networking & Communication

- [Asynchronous HTTP Servers](https://awesome-repositories.com/f/networking-communication/asynchronous-http-servers.md) — Acts as a high-performance server environment for hosting HTTP, WebSocket, TCP, and UDP services.
- [Message Routing](https://awesome-repositories.com/f/networking-communication/message-routing.md) — Routes messages between application components to ensure reliable data exchange without shared memory. ([source](https://github.com/kraken-php/framework#readme))
- [Messaging Architectures](https://awesome-repositories.com/f/networking-communication/messaging-architectures.md) — Implements a message-driven architecture for routing communication between isolated microservices.
- [Protocol-Agnostic Interfaces](https://awesome-repositories.com/f/networking-communication/networking-libraries/protocol-agnostic-interfaces.md) — Provides a unified interface for hosting diverse network protocols including HTTP, WebSocket, TCP, and UDP.

### Software Engineering & Architecture

- [Distributed Coordination Systems](https://awesome-repositories.com/f/software-engineering-architecture/distributed-coordination-systems.md) — Coordinates state, lifecycle events, and communication across distributed execution nodes.
- [Non-Blocking Event Loops](https://awesome-repositories.com/f/software-engineering-architecture/non-blocking-event-loops.md) — Implements non-blocking event loops to manage high-concurrency workloads without threading.
- [Asynchronous Task Execution](https://awesome-repositories.com/f/software-engineering-architecture/concurrency-models/asynchronous-task-execution.md) — Enables efficient asynchronous task execution using an event-loop-based architecture. ([source](https://github.com/kraken-php/framework#readme))
- [Distributed State Synchronization](https://awesome-repositories.com/f/software-engineering-architecture/distributed-state-synchronization.md) — Synchronizes runtime state across distributed nodes to ensure consistent application behavior. ([source](https://github.com/kraken-php/framework/blob/master/CHANGELOG.md))
- [Distributed Systems Architectures](https://awesome-repositories.com/f/software-engineering-architecture/distributed-systems-architectures.md) — Orchestrates distributed application architectures by managing isolated, supervised components across nodes.
- [Execution Abstraction Layers](https://awesome-repositories.com/f/software-engineering-architecture/execution-abstraction-layers.md) — Abstracts execution logic to allow consistent operation across multi-process and multi-threaded environments. ([source](https://github.com/kraken-php/framework/blob/master/CHANGELOG.md))
- [Inter-Process Communication](https://awesome-repositories.com/f/software-engineering-architecture/inter-process-communication.md) — Enables reliable data exchange and coordination between separate application components.
- [Unified Logic Execution](https://awesome-repositories.com/f/software-engineering-architecture/unified-logic-execution.md) — Normalizes execution logic into standardized containers that operate consistently across different runtime environments.

### System Administration & Monitoring

- [Process Supervision](https://awesome-repositories.com/f/system-administration-monitoring/process-supervision.md) — Provides active process supervision and automatic restarts to maintain system-wide fault tolerance.

### DevOps & Infrastructure

- [Inter-Component Messaging](https://awesome-repositories.com/f/devops-infrastructure/inter-component-messaging.md) — Facilitates decoupled communication between internal system components using asynchronous message passing.

### Web Development

- [High-Performance Web Services](https://awesome-repositories.com/f/web-development/high-performance-web-services.md) — Hosts scalable network services optimized for high-performance communication between distributed components.
- [Service Hosting](https://awesome-repositories.com/f/web-development/service-hosting.md) — Provides unified hosting for asynchronous network services including HTTP, WebSocket, TCP, and UDP. ([source](https://github.com/kraken-php/framework#readme))
