Search by

gammamatrix / playground

gammamatrix

Playground: A base package for Laravel integration.

Package info

github.com/gammamatrix/playground

Homepage

pkg:composer/gammamatrix/playground

Statistics

Installs: 2 047

Dependents: 21

Suggesters: 0

Stars: 0

Open Issues: 2

dev-develop / 75.x-dev 2026-09-09 16:57 UTC

This package is auto-updated.

Last update: 2026-09-09 16:59:10 UTC


README

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.

screenshot of artisan about command with Playground.

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.