Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Enumhancer Ide Helper Laravel Package

henzeb/enumhancer-ide-helper

Laravel IDE helper for enhanced PHP enums. Improves autocompletion and type hints for Enumhancer features in PhpStorm and similar IDEs, generating stubs/metadata so enum methods, cases, and helpers are easier to discover and use.

View on GitHub
Deep Wiki
Context7
1.22.0
  • added asEnum to laravel's FormRequests
  • tiny fix in isEnum validation: When Defaults are used, it should fail validation.
1.21.0
  • added (basic) enum binding allowing you to bind basic enumerations to your routes and use Enumhancers secret sauce.
  • Fixed a lot of potential issues with PHPstan.
1.20.0
  • bugfix in Default where configured defaults would not override the by const defined value
  • bugfix in Mappers where mapping to integers was not allowed

Extended features

  • You can now set Mapper FQCN in constants starting with map and map_flip
  • Mappers methods now are usable statically
  • All Laravel rules have now macro's set on Rule

New features

1.19.0
  • You can now use constants for Mappers and Defaults
  • you can now flag a unit enum as strict, so you don't have to worry about casing in Values.
1.18.0
  • Added Magic method functionality to State
  • Added to and tryTo methods to State
  • Added is, isNot, isIn and isNotIn to Comparison
1.17.0
  • Added Flip, allowing to use a single mapper for mapping between enums
  • From now allows UnitEnum objects for use with Flip
  • Comparison now allows different enums when used with Mappers
  • Deprecated Makers, replaced by Getters
1.16.0
  • Added Configure
  • Added Dropdown
  • Comparison now accepts null values
  • Fixed bug in Casting where in the latest Laravel versions the Keep Enum Value Case switch no longer worked.
1.15.0
  • Made the Laravel Reporter configurable
  • added key method to Value
1.14.0
  • Added transition hooks State
  • Makers & From now allow you to use integer keys on basic and string enums
1.12.0
  • Added casting support for State
1.11.0
  • Added State that allows you to have transitions with enums
1.10.0
  • Added Defaults that allows you to have default enums
1.9.0
1.8.0
1.7.0
  • When using Comparison, you can now assert with is or isNot
1.6.0
  • Added Eloquent Casting support for basic enumerations
1.5.0
  • Added Extractor to extract enums from a string mentioned by value
  • Some documentation repairs
1.4.1
  • Added cases method to Subset
1.4.0
  • Renamed Multi to Subset
  • Added names method to Subset
  • Added values method to Subset
  • Added do method to Subset
1.3.0
  • Added Multi. Currently allows you to compare against a subset of your enum
1.2.0
  • Added Value (for use with basic enums)
1.1.0
  • Added From. Useful for situations where you need them with basic enums
1.0.2
  • Bugfix: Constructor did not use internal mapper
1.0.1
  • You can now define a mapper in a method
  • When you use an empty string or null in mappable, it will return null now
1.0.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky