gammamatrix/playground-lead

Playground: Provide the Lead models for the Playground Lead System.

dev-develop / 74.x-dev 2025-09-21 19:43 UTC

This package is auto-updated.

Last update: 2025-09-21 19:45:58 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 10

The Playground Lead is a package for Laravel applications.

Playground: Provides the models for the Playground Campaign and Lead Sales Management tool.

Read more on using Playground: Lead at Read the Docs

Installation

NOTE: This package is required by:

Install this package, with composer, to get access to the Lead Models:

composer require gammamatrix/playground-lead

artisan:about

Playground Lead provides information in the artisan about command.

screenshot of artisan about command with Playground: Lead.

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-lead.php

You can publish the config file with:

php artisan vendor:publish --provider="Playground\Lead\ServiceProvider" --tag="playground-config"

Environment Variables

env() config() Default
PLAYGROUND_LEAD_ABOUT playground-lead.about true
PLAYGROUND_LEAD_LOAD_MIGRATIONS playground-lead.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 11 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\Lead\ServiceProvider" --tag="playground-migrations"

Cloc

composer cloc
➜  playground-lead git:(develop) ✗ composer cloc
     139 text files.
     135 unique files.
      17 files ignored.

github.com/AlDanial/cloc v 2.06  T=0.07 s (1866.5 files/s, 753797.3 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                            64              0              0          42289
PHP                             63            850           2629           8059
YAML                             1              5              0            275
XML                              3              0              7            218
Markdown                         3             46              0            127
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                           135            904           2636          50980
-------------------------------------------------------------------------------

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

Run unit and feature tests in parallel:

composer test-parallel

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.