rquadling/enumeration

There is no license information available for the latest version (v2.0.0) of this package.

Extension to Eloquent/Enumeration for use within RQuadling's projects.

v2.0.0 2020-06-28 19:31 UTC

This package is auto-updated.

Last update: 2024-11-06 18:20:30 UTC


README

Build Status Code Coverage GitHub issues

PHP Version Stable Version

Total Downloads Monthly Downloads Daily Downloads

Extension to Eloquent/Enumeration for use within RQuadling's projects.

Installation

Using Composer:

composer require rquadling/enumeration

PHPStan rules

A PHPStan rule governing the enumeration class is available.

The rules are:

  1. Attempting to extend \Eloquent\Enumeration\AbstractEnumeration rather than \RQuadling\Enumeration\AbstractEnumeration.
  2. Multiple names exist for the the values in the enumeration.
  3. Missing @method static docblocks.

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include rules.neon in your project's PHPStan config:

includes:
    - vendor/rquadling/enumeration/rules.neon