Download the PHP package ihor-radchenko/laravel-ide-helper-macros without Composer
On this page you can find all versions of the php package ihor-radchenko/laravel-ide-helper-macros. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ihor-radchenko/laravel-ide-helper-macros
More information about ihor-radchenko/laravel-ide-helper-macros
Files in ihor-radchenko/laravel-ide-helper-macros
Package laravel-ide-helper-macros
Short Description Generate phpDoc for laravel macroable class.
License MIT
Homepage https://github.com/ihor-radchenko/laravel-ide-helper-macros
Informations about the package laravel-ide-helper-macros
Laravel IDE Macros
It is advised to be used with Laravel IDE Helper, which generates helper files for your IDE, so it'll be able to highlight and understand some Laravel-specific syntax. This package can generate phpDocs for Laravel classes, based on Macroable trait.
Installation
Require this package with composer using the following command:
If you are using Laravel 5.4 or lower, you must register the IdeHelperMacrosServiceProvider
manually.
Configuration
Run the following command to publish the configuration file to config/ide-helper-macros.php
:
Automatic phpDoc generation for Laravel Macroable classes
You need add macro or mixin in some service provider, example:
And run the following command to generate the phpDocs IDE helpers:
After that the following block will be generated in the \Illuminate\Http\Response class:
All versions of laravel-ide-helper-macros with dependencies
barryvdh/reflection-docblock Version ^2.0.6
laravel/framework Version 5.*