timeweb/phpstan-enum

Enum class reflection extension for PHPStan

Maintainers

👁 timeweb

Package info

github.com/timeweb/phpstan-enum

Type:phpstan-extension

pkg:composer/timeweb/phpstan-enum

Statistics

Installs: 3 396 931

Dependents: 20

Suggesters: 0

Stars: 44

Open Issues: 2

4.0.0 2024-11-13 20:25 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 56ae8ae8855caa5144087a0cbd527365ff55a678

enumPHPStan


README

👁 Build Status
👁 License
👁 Latest Stable Version
👁 Latest Unstable Version

This extension defines dynamic methods for MyCLabs\Enum\Enum subclasses.

Usage

To use this extension, require it with Composer

composer require --dev timeweb/phpstan-enum

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 extension.neon in your project's PHPStan config:

includes:
 - vendor/timeweb/phpstan-enum/extension.neon

Install for Local Development

With docker

git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make docker-build
make install
make phpunit

Without docker (localy installed actual version of php, composer, etc)

git clone git@github.com:timeweb/phpstan-enum.git
cd phpstan-enum
make install
make phpunit