Skip to main content

DomainFlow

🚀 DomainFlow Core

A lightweight PHP 8.3+ bootstrapper and DI container designed for **event-driven architecture, lifecycle management, and service providers**.

⚡ Key Features

  • Event-Driven: Dispatch and listen to events across your app.
  • Service Providers: Modular structure for dependency management.
  • Application Lifecycle: Boot, terminate, and hook into system events.
  • Middleware Pipeline: Stack middleware callables for pre-processing requests.
  • PSR Standards: Built with modern PHP best practices.

🛠️ Service Providers

use DomainFlow\Application;
use Application\ServiceProvider\MyServiceProvider;

$app = new Application();

// Register a service provider
$app->registerProvider(new MyServiceProvider());

// Boot the application (all providers will be registered automatically)
$app->boot();
        

🧱 Other DomainFlow Packages

📦 DI Container

Dependency Injection container with support for autowiring, lazy loading, and service providers.

Requires: PHP 8.3+

🧬 UUID

Version-aware, type-safe UUID generator and inspector with support for UUIDv1 through UUIDv8.

Requires: PHP 8.3+

🔗 System Events

Application Bootstrapper system event logging system for file logging

Requires: PHP 8.3+

🚧 Coming soon