PHPackages                             tutorigo/laravel-ide-macros - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tutorigo/laravel-ide-macros

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tutorigo/laravel-ide-macros
===========================

Generating a helper file for IDEs to support Laravel's macros.

1.6.0(4y ago)46343.5k—2.6%31[3 PRs](https://github.com/KristofMorva/laravel-ide-macros/pulls)1MITPHPPHP &gt;=7.0

Since Oct 22Pushed 2y ago2 watchersCompare

[ Source](https://github.com/KristofMorva/laravel-ide-macros)[ Packagist](https://packagist.org/packages/tutorigo/laravel-ide-macros)[ RSS](/packages/tutorigo-laravel-ide-macros/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (1)

Warning

This repository is archived because I'm unable to maintain it, as I'm not a web developer anymore and forgot most of this stuff.

Please use an existing fork, or create your own with your changes.

Sorry about this, have fun working on whatever you're currently building :)

Laravel IDE Macros
==================

[](#laravel-ide-macros)

It is advised to be used with [Laravel IDE Helper](https://github.com/barryvdh/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 provides an additional IDE helper file for Laravel macros with the syntax you are already used to in Laravel IDE Helper.

Installation
------------

[](#installation)

Just require it in your Composer file, and you are good to go:

```
"tutorigo/laravel-ide-macros": "*"

```

If you are using Laravel 5.4 or lower, you must register the `IdeMacrosServiceProvider` manually.

Configuration
-------------

[](#configuration)

Run the following command to publish the configuration file to `config/ide-macros.php`:

```
php artisan vendor:publish --provider="Tutorigo\LaravelMacroHelper\IdeMacrosServiceProvider"

```

Usage
-----

[](#usage)

### Generate helper file

[](#generate-helper-file)

Run the following command to generate the macro IDE helpers:

```
php artisan ide-helper:macros

```

### Use of non-static macros

[](#use-of-non-static-macros)

Macros can be both static (ie. `Route::sth()`) and non-static (ie. `Request::route()->sth()`). To distinct the two, use the `@instantiated` tag in the PHPDoc of macros, which depend on `$this`, for example:

```
/**
 * Gets the amount of route parameters
 *
 * @return array
 * @instantiated
 */
\Illuminate\Routing\Route::macro('parameterCount', function () {
    /** @var \Illuminate\Routing\Route $this */
    return count($this->parameters);
});

```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 51% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Recently: every ~164 days

Total

12

Last Release

1559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c00a64ad2cb8779507af120c1aefeeb338373fe35af028f03ace3c7deee4cad?d=identicon)[KristofMorva](/maintainers/KristofMorva)

---

Top Contributors

[![KristofMorva](https://avatars.githubusercontent.com/u/5695015?v=4)](https://github.com/KristofMorva "KristofMorva (26 commits)")[![mortenscheel](https://avatars.githubusercontent.com/u/6514342?v=4)](https://github.com/mortenscheel "mortenscheel (7 commits)")[![RobertBoes](https://avatars.githubusercontent.com/u/2871897?v=4)](https://github.com/RobertBoes "RobertBoes (4 commits)")[![nuernbergerA](https://avatars.githubusercontent.com/u/13331388?v=4)](https://github.com/nuernbergerA "nuernbergerA (2 commits)")[![Teakowa](https://avatars.githubusercontent.com/u/27560638?v=4)](https://github.com/Teakowa "Teakowa (2 commits)")[![vaites](https://avatars.githubusercontent.com/u/478660?v=4)](https://github.com/vaites "vaites (2 commits)")[![almas-x](https://avatars.githubusercontent.com/u/9382335?v=4)](https://github.com/almas-x "almas-x (1 commits)")[![sixmonkey](https://avatars.githubusercontent.com/u/15140258?v=4)](https://github.com/sixmonkey "sixmonkey (1 commits)")[![mhkb](https://avatars.githubusercontent.com/u/4683976?v=4)](https://github.com/mhkb "mhkb (1 commits)")[![banqhsia](https://avatars.githubusercontent.com/u/4393788?v=4)](https://github.com/banqhsia "banqhsia (1 commits)")[![CupOfTea696](https://avatars.githubusercontent.com/u/7327050?v=4)](https://github.com/CupOfTea696 "CupOfTea696 (1 commits)")[![inxilpro](https://avatars.githubusercontent.com/u/21592?v=4)](https://github.com/inxilpro "inxilpro (1 commits)")[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")

---

Tags

ide-helperlaravelmacrosphpdoclaravelautocompletehelperidephpstormnetbeanssublimecodeintelmacros

### Embed Badge

![Health badge](/badges/tutorigo-laravel-ide-macros/health.svg)

```
[![Health](https://phpackages.com/badges/tutorigo-laravel-ide-macros/health.svg)](https://phpackages.com/packages/tutorigo-laravel-ide-macros)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[mis/yii2-ide-helper

Yii2 IDE Helper, generates correct PHPDocs for all components, to improve auto-completion.

1664.2k3](/packages/mis-yii2-ide-helper)[phalcon/ide-stubs

The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.

1623.1M121](/packages/phalcon-ide-stubs)[soyhuce/next-ide-helper

Laravel ide helper rebuilt under steroids

4756.2k3](/packages/soyhuce-next-ide-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
