Installation
Luna is a CMF layer built on Windwalker Core and Unicorn. It adds the admin and front-end modules, the content entities, and the auth system to your application. Luna does not run on its own, so install it into an existing Windwalker application.
Requirements
- PHP
>=8.4.6 windwalker/core^4.2windwalker/unicorn^1.2
Install the Package
Require the package with Composer:
composer require lyrasoft/lunaComposer installs Luna's dependencies. Luna's LunaPackage class registers itself with Windwalker through its package manifest, so no provider entry is needed in your config.
Publish Package Resources
Luna's files are copied into your application (config, routes, views, languages, migrations, seeders, and modules). Run the install command:
php windwalker pkg:install lyrasoft/lunaTo install every package that is registered, use --all:
php windwalker pkg:install --allAdd --dry-run to preview the file operations without copying anything:
php windwalker pkg:install lyrasoft/luna --dry-runWARNING
pkg:install overwrites existing files only with --force. Without it, files you have already changed are kept. Use --force only when you want Luna's version of a file back.
Run the Migrations
Luna's migrations create the user, rule, category, article, menu, page, tag, language, association, and widget tables. Run them with:
php windwalker mig:goWARNING
Run migrations against a development database first. They create tables and do not drop existing ones, but they change the schema of your application.
Import the Seeders
Luna ships a seeder that creates 50 demo users. Import them with:
php windwalker seed:importWARNING
Seeders insert data. Run seed:import only on a fresh database. Use seed:clear to reverse the seeded records.
Next Steps
Continue with Getting Started to sign in to the admin and publish your first article.