gammamatrix/playground

Playground: A base package for Laravel integration.

dev-develop / 73.x-dev 2024-04-02 17:58 UTC

This package is auto-updated.

Last update: 2024-05-02 18:12:35 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9 src and tests

This is the base package for Playground.

This package provides model handling for Laravel packages.

  • Playground allows using Laravel ordered UUIDs for primary keys.
  • The configuration in Playground and subpackages permits defining the user model, table and primary key type: increments or uuid.
  • 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.

Migrations

The migrations provided in this package are used for PHPunit 11 feature testing with Orchestra Testbench.

  • They will not be exported in software builds.

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.