Download the PHP package claudiodekker/laravel-macro-describer without Composer
On this page you can find all versions of the php package claudiodekker/laravel-macro-describer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download claudiodekker/laravel-macro-describer
More information about claudiodekker/laravel-macro-describer
Files in claudiodekker/laravel-macro-describer
Package laravel-macro-describer
Short Description Automatically generate IDE autocompletion helpers for Laravel macros/mixins.
License MIT
Homepage https://github.com/claudiodekker/laravel-macro-describer
Informations about the package laravel-macro-describer
Laravel Macro Describer
Automatically generate IDE autocompletion helpers for Laravel macros/mixins.
Installation
You can install the package via composer:
Usage
Simply run php artisan macro:generate-helpers
, or append it to your composer.json
's post-autoload-dump
section like this:
When ran, the script does the following:
- Find all classes that use the
Macroable
trait. - Fetch all registered macros/mixins using Reflection.
- Parse all method details using reflection (name, parameters & types, return type etc.)
- Generate an PHPDocumentor-compatible
_ide_helpers.php
file
This is, without a doubt, the most disgusting, hacky piece of code that I knowingly published on Github.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.