gammamatrix / playground
Playground: A base package for Laravel integration.
Requires
- php: ^8.4
- ext-intl: *
- ezyang/htmlpurifier: ^4.19
- laravel/framework: ^13.0
Requires (Dev)
- gammamatrix/playground-test: 75.x-dev
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-09 16:59:10 UTC
README
This is the base package for Playground.
This package provides model handling for Laravel packages.
- Playground uses Laravel ordered UUIDs for primary keys.
- Packages are compatible and tested with and without: middleware, roles, policies, privileges, Sanctum...
Read more on using Playground at the Read the Docs for Playground.
Installation
You can install the package via composer:
composer require gammamatrix/playground
Configuration
You can publish the configuration file with:
php artisan vendor:publish --provider="GammaMatrix\Playground\ServiceProvider" --tag="playground-config"
See the contents of the published config file: config/playground.php
artisan about
Playground provides information in the artisan about command.
Environment Variables
| env() | config() |
|---|---|
PLAYGROUND_LOAD_MIGRATIONS |
playground.load.migrations |
- 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.
Migrations
The migrations provided in this package are used for PHPunit 13 feature testing with Orchestra Testbench.
- They will not be exported in software builds.
Cloc
composer cloc
➜ playground git:(develop) ✗ composer cloc
83 text files.
67 unique files.
153 files ignored.
github.com/AlDanial/cloc v 2.08 T=0.04 s (1490.4 files/s, 152447.7 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
PHP 45 1011 856 3503
XML 14 0 9 1023
YAML 1 4 0 188
JSON 3 0 0 101
Markdown 3 43 0 100
INI 1 3 0 12
-------------------------------------------------------------------------------
SUM: 67 1061 865 4927
-------------------------------------------------------------------------------
PHPStan
Tests at level 10 on:
config/database/src/tests/Feature/tests/Unit/
composer analyse
Coding Standards
composer format
Testing
composer test
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.
