gammamatrix / playground-cms
Playground: Provides the CMS models for the Playground Content Management System.
Requires
- php: ^8.4
- gammamatrix/playground: *
- illuminate/database: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
Suggests
- gammamatrix/playground-cms-api: Provides an API, without a UI, to interact with the models provided in this package.
- gammamatrix/playground-cms-resource: Provides a resource API and optional Blade UI to interact with the models provided in this package.
This package is auto-updated.
Last update: 2025-08-23 02:38:55 UTC
README
The Playground CMS is a package for Laravel applications.
Playground: Provides the CMS models for the Playground Content Management System.
Read more on using Playground: CMS at Read the Docs
Installation
NOTE: This package is required by:
- Playground: CMS API: API without UI
- Playground: CMS Resource: API with UI
Install this package, with composer, to get access to the CMS Models:
composer require gammamatrix/playground-cms
artisan:about
Playground CMS provides information in the artisan about
command.
Configuration
Migrations are disabled by default. This package may sometimes be installed where another system handles the migrations.
See the contents of the published config file: config/playground-cms.php
You can publish the config file with:
php artisan vendor:publish --provider="Playground\Cms\ServiceProvider" --tag="playground-config"
Environment Variables
env() | config() | Default |
---|---|---|
PLAYGROUND_CMS_ABOUT |
playground-cms.about |
true |
PLAYGROUND_CMS_LOAD_MIGRATIONS |
playground-cms.load.migrations |
false |
- The loading option for migrations does not take effect if the migrations have been exported to your app. The control for loading is handled in the package ServiceProvider.
Models
This package includes factories, models and migrations for:
Migrations
All migrations are disabled by default.
See the contents of the published config file: database/migrations
- NOTE: There are 4 tables that will be created, they do have indexes and unique constraints defined; however, this release does not have the foreign key constraint migrations included at this time.
You can publish the migrations file with:
php artisan vendor:publish --provider="Playground\Cms\ServiceProvider" --tag="playground-migrations"
Cloc
composer cloc
➜ playground-cms git:(develop) ✗ composer cloc
74 text files.
70 unique files.
6 files ignored.
github.com/AlDanial/cloc v 2.06 T=0.04 s (1930.0 files/s, 431128.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JSON 29 0 0 11710
PHP 28 317 723 2074
XML 8 0 7 350
YAML 1 5 0 275
Markdown 3 45 0 116
INI 1 3 0 12
-------------------------------------------------------------------------------
SUM: 70 370 730 14537
-------------------------------------------------------------------------------
PHPStan
Tests at level 10 on:
config/
database/
src/
tests/Feature/
tests/Unit/
composer analyse
Coding Standards
composer format
Testing
Unit tests
composer test
Unit and feature tests
composer test-dev
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.