Weave 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 Laravel Package

henzeb/enumhancer

View on GitHub
Deep Wiki
Context7

IDE-helper

Enumhancer is using a lot of magic. For the most basic functionality, enumhancer now comes with an IDE-helper. This is a separate package.

Installation

First, you need to install the IDE-helper package.

composer require --dev henzeb/enumhancer-ide-helper

Configure with dump-autoload

The IDE-helper out of the box supports the usage inside composer's post-autoload-dump event.

 "post-autoload-dump": [
"Henzeb\\Enumhancer\\Composer\\IdeHelper::generate"
]

Note: You can leave this line in your composer file. The IdeHelper class is part of the main library and executes enumhancer-ide-helper only if installed.

Configure as composer command

If you don't want to call dump-autoload everytime you need to generate the helper, it's possible to add it as a composer command.

"scripts": {
"enumhancer": "Henzeb\\Enumhancer\\Composer\\IdeHelper::generate"
}

Ignore IDE-helper generated files

The filename that is being generated by default is _enumhancer.php and is created inside the root of your project. Simply add the filename to your .ignore file.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator