PHPackages                             dappcore/php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. dappcore/php

ActiveLibrary[Framework](/categories/framework)

dappcore/php
============

Modular monolith framework for Laravel - event-driven architecture with lazy module loading

v0.5.0(today)148↑2837.5%18EUPL-1.2PHPPHP ^8.2CI passing

Since Mar 16Pushed todayCompare

[ Source](https://github.com/dAppCore/php)[ Packagist](https://packagist.org/packages/dappcore/php)[ RSS](/packages/dappcore-php/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (21)Versions (13)Used By (18)

Core PHP Framework
==================

[](#core-php-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/8e6175de61eef7450b591d8e05d868f86f8b3e6122cc144caa93eadb674627e2/68747470733a2f2f706f7365722e707567782e6f72672f6c74686e2f7068702f762f737461626c65)](https://packagist.org/packages/lthn/php)[![License](https://camo.githubusercontent.com/72a7b0ef8cb7ce31c35ea9123e069ce191c9a7da5cdc2132d8956c47e0443b7d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4555504c2d2d312e322d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/e2df0db5111cc996698331f261bf2635d5d982b997163dd61bcd20b2f000f216/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d3838393242462e737667)](https://php.net/)[![Laravel Version](https://camo.githubusercontent.com/ef87408cd81176e64981d527ac297d27befa190315ba088588f99176291c8d8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531312e3025374325354531322e302d4646324432302e737667)](https://laravel.com)

A modular monolith framework for Laravel with event-driven architecture, lazy module loading, and built-in multi-tenancy.

Documentation
-------------

[](#documentation)

📚 **[Read the full documentation →](https://core.help/)**

- [Getting Started](https://core.help/guide/getting-started)
- [Installation Guide](https://core.help/guide/installation)
- [Architecture Overview](https://core.help/architecture/lifecycle-events)
- [API Reference](https://core.help/packages/api)
- [Security Guide](https://core.help/security/overview)

Features
--------

[](#features)

- **Event-driven module system** - Modules declare interest in lifecycle events and are only loaded when needed
- **Lazy loading** - Web requests don't load admin modules, API requests don't load web modules
- **Multi-tenant isolation** - Workspace-scoped data with automatic query filtering
- **Actions pattern** - Single-purpose business logic classes with dependency injection
- **Activity logging** - Built-in audit trails for model changes
- **Seeder auto-discovery** - Automatic ordering via priority and dependency attributes
- **HLCRF Layout System** - Hierarchical composable layouts (Header, Left, Content, Right, Footer)

Installation
------------

[](#installation)

```
composer require lthn/php
```

The service provider will be auto-discovered.

Quick Start
-----------

[](#quick-start)

### Creating a Module

[](#creating-a-module)

```
php artisan make:mod Commerce
```

This creates a module at `app/Mod/Commerce/` with a `Boot.php` entry point:

```
