johnnyxlemonade / admin-platform
Reusable Lemonade administration and module platform.
Requires
- php: >=8.3
- ext-fileinfo: *
- ext-mbstring: *
- ext-openssl: *
- ext-pdo: *
- firebase/php-jwt: ^7.2
- guzzlehttp/guzzle: ^7.10
- johnnyxlemonade/admin-image: ^1.0
- johnnyxlemonade/cms-core: ^1.0
- johnnyxlemonade/framework: ^1.0
- league/oauth2-client: ^2.9
- nyholm/psr7: ^1.8
- psr/http-client: ^1.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/log: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.3
- phpstan/phpstan-strict-rules: ^2.1
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Admin Platform provides the administration runtime and shared UI for Lemonade applications. The host configures branding and the Admin base path.
Features
- Authentication, role-based permissions and audit history.
- Composer module discovery, navigation and dashboard widgets.
- DataGrid, AdminEditor and shared media uploads.
- Built-in modules for users, roles, languages, translations, media, modules, notifications and audit.
Requirements
- PHP 8.3 or newer, tested on PHP 8.3–8.6.
- PHP extensions
fileinfo,mbstring,opensslandPDO. - Lemonade Framework, CMS Core and Admin Image
^1.0.
Installation
composer require johnnyxlemonade/admin-platform:^1.0
Register Lemonade\Admin\AdminPackageServiceProvider in the host. Configure the
Admin base path and assets, then run migrations and sync permissions. Build the
Admin assets from the installed package and publish them into the host's public
root.
npm --prefix vendor/johnnyxlemonade/admin-platform ci npm --prefix vendor/johnnyxlemonade/admin-platform run build php vendor/bin/lemonade admin:assets:publish
Installation recovery
Keep storage/writable/installation/completed on persistent storage shared by
web and CLI processes. Back up and restore that storage with its database.
When the marker is missing and an active root exists, Admin restores it on
the first request. Operators can also restore it from CLI.
php vendor/bin/lemonade admin:installation adopt
If a completed installation loses its last active root, use an unused email and supply the replacement password through standard input from a protected source.
php vendor/bin/lemonade admin:installation recover-root operator@example.org < /run/secrets/recovery-password
Usage
Packages declare their manifest in extra.lemonade.modules. The Admin runtime
discovers installed packages and their contributions. For a public language
switcher, LanguageRegistry::enabledLocaleCodes() returns enabled codes in
configured order.
Documentation
- Modules, migrations and Admin assets
- AdminEditor, DataGrid and request flow
- Identity, permissions and user profile
Development
composer install composer qa npm ci npm run build