Search by

johnnyxlemonade / admin-platform

johnnyxlemonade

Reusable Lemonade administration and module platform.

Package info

github.com/johnnyxlemonade/admin-platform

pkg:composer/johnnyxlemonade/admin-platform

Statistics

Installs: 720

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-12-03 13:46 UTC

This package is auto-updated.

Last update: 2026-12-03 13:47:49 UTC


README

Tests PHP 8.3–8.6 PHPStan License

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, openssl and PDO.
  • 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

Development

composer install
composer qa
npm ci
npm run build

License

Apache License 2.0