gammamatrix/playground-cms-resource

Playground: Provides an API and a Blade UI for interacting with Playground CMS, a Content Management System for Laravel applications.

dev-develop / 73.x-dev 2024-04-01 22:33 UTC

This package is auto-updated.

Last update: 2024-05-01 22:53:11 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9 src and tests

The playground-cms-resource Laravel package.

This package provides an API and a Blade UI for interacting with the Playground CMS, a Content Management System for Laravel.

If you need a CMS without a UI, then have a look at Playground CMS API.

Documentation

Read more on using Playground CMS Resource at Read the Docs: Playground Documentation.

Postman

A postman collection is provided in the repository: postman-playground-cms-resource.json.

Swagger

This application provides Swagger documentation: swagger.json.

  • The endpoint models support locks, trash with force delete, restoring, revisions and more.
  • Index endpoints support advanced query filtering.

Swagger API Documentation is built with npm.

  • npm is only needed to generate documentation and is not needed to operate the CMS UI and API Resource.

See package.json requirements.

Install npm.

npm install

Build the documentation to generate the swagger.json configuration.

npm run docs

Documentation

Installation

You can install the package via composer:

composer require gammamatrix/playground-cms-resource

artisan about

Playground provides information in the artisan about command.

Configuration

You can publish the config file with:

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

All routes are enabled by default. They may be disabled via enviroment variable or the configuration.

See the contents of the published config file: config/playground-cms-resource.php

You can publish the routes file with:

php artisan vendor:publish --provider="Playground\Cms\Resource\ServiceProvider" --tag="playground-routes"
  • The routes while be published in a folder at routes/playground-cms-resource

Environment Variables

If you are unable or do not want to publish configuration files for this package, you may override the options via system environment variables.

Information on environment variables is available on the wiki for this package

Migrations

This package requires the migrations in playground-cms a Laravel package.

PHPStan

Tests at level 9 on:

  • config/
  • database/
  • resources/views/
  • routes/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

Coding Standards

composer format

Tests

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.