gammamatrix/playground

Playground: A base package for Laravel integration.
2,106
Install
composer require gammamatrix/playground
PHP:^8.4
License:MIT
Last Updated:Sep 9, 2026
Links: GitHub  ·  Packagist
Maintainer: gammamatrix

Playground

Playground CI Workflow Test Coverage PHPStan Level 10 src and tests

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.

Related Packages

davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

12,918 295
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,312 160
kavenegar/laravel

laravel 4 and 5 kavenegar integration

366,462 86
laravel-ja/laravel

The Laravel Framework.

5,667 17