Go CLI commands moved to core/go-php. This repo now contains the Laravel modular monolith framework (previously php-framework). - Remove all Go files (now in core/go-php) - Add PHP framework: event-driven module loading, lifecycle events - Composer package: core/php - core/php-framework remains as-is for backward compat Co-Authored-By: Virgil <virgil@lethean.io>
3.6 KiB
3.6 KiB
| layout | hero | features | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| home |
|
|
Quick Start
# 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');
}
}
Why Core 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.
Key Benefits
- Reduced Complexity - No network overhead, distributed tracing, or service mesh
- Clear Boundaries - Modules have explicit dependencies via lifecycle events
- Performance - Lazy loading means unused modules aren't loaded
- Flexibility - Start monolithic, extract services when it makes sense
- Type Safety - Full IDE support with no RPC serialization
Packages
Core
Event-driven architecture, module system, actions pattern, and multi-tenancy.
Admin
Livewire-powered admin panel with global search and service management.
API
REST API with OpenAPI docs, rate limiting, webhook signing, and secure keys.
MCP
Model Context Protocol tools for AI integrations with analytics and security.
Community
- GitHub Discussions - Ask questions and share ideas
- Issue Tracker - Report bugs and request features
- Contributing - See our contributing guide