Event-Driven Modules
Modules declare interest in lifecycle events and are only loaded when needed, reducing overhead for unused features.
Event-driven architecture with lazy module loading and built-in multi-tenancy
# Install via Composer
composer require host-uk/core
# Create a module
php artisan make:mod Commerce
# Register lifecycle events
class Boot
{
public static array $listens = [
WebRoutesRegistering::class => 'onWebRoutes',
];
public function onWebRoutes(WebRoutesRegistering $event): void
{
$event->routes(fn () => require __DIR__.'/Routes/web.php');
}
}Traditional Laravel applications grow into monoliths with tight coupling and unclear boundaries. Microservices add complexity you may not need. Core PHP provides a middle ground: a structured monolith with clear module boundaries, lazy loading, and the ability to extract services later if needed.
Event-driven architecture, module system, actions pattern, and multi-tenancy.
Livewire-powered admin panel with global search and service management.
REST API with OpenAPI docs, rate limiting, webhook signing, and secure keys.
Model Context Protocol tools for AI integrations with analytics and security.