PHPackages                             jonphipps/idehelper - 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. jonphipps/idehelper

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

jonphipps/idehelper
===================

Generate a file to help IDE's like PHPStorm, NetBeans, or Sublime Text with code completion for Laravel's static facades

v0.2.1(13y ago)436947[3 issues](https://github.com/jonphipps/laravel4-idehelper-generator/issues)MITPHPPHP &gt;=5.3.0

Since Mar 13Pushed 12y ago4 watchersCompare

[ Source](https://github.com/jonphipps/laravel4-idehelper-generator)[ Packagist](https://packagist.org/packages/jonphipps/idehelper)[ RSS](/packages/jonphipps-idehelper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

laravel4-idehelper-generator
============================

[](#laravel4-idehelper-generator)

It may be obvious from the lack of commits, but I'm not maintaining this at the moment. I would suggest that you use [barryvdh/laravel-ide-helper](https://github.com/barryvdh/laravel-ide-helper) instead, since it basically does the same thing, although with slightly different results.

Generates a helper file to assist IDEs with code completion for Laravel 4 in PHPStorm, SublimeText 2, NetBeans (not tested), and maybe other dynamic codeintel IDEs.

It has the desirable side-effect of taking a snapshot of the Laravel 4 API every time it's run and I'm finding it useful to be able to keep up with the day-to-day changes as Laravel 4 matures. I have it under source control and GIT gives me a nice diff showing what's changed.

There's an example in the examples folder.

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

[](#installation)

Add it to the `require-dev` section using Composer from the command line:

```
composer require jonphipps/idehelper:dev-master --dev

```

I'm also running it as a post-update command (it's *very* fast), so the helper file gets updated every time I run `composer update` and this keeps the IDE always in sync with the latest Laravel API.

```
   "scripts":{
        "post-update-cmd":[
            "php artisan idehelper:generate"
        ]
    }
```

Edit `app/config/app.php` and add the service provider to the `providers` array.

```
'JonPhipps\IdeHelper\IdeHelperServiceProvider'

```

And finally, update Composer (if you're running the latest Composer --dev is the default):

```
    composer update --dev
```

Usage
-----

[](#usage)

Install it as a post-update command as above and let it do its thing. Or run `php artisan idehelper:generate` from the command line in Terminal:

```
php artisan idehelper:generate

```

It takes about 2 seconds to run on my machine.

If you get a PDO error:

```
[PDOException]
  SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
```

...it's because it can't connect to the database when it instantiates the database class and you just need to supply valid credentials. This has only been tested with a MySQL database so there may be issues with other configurations.

A file named `_ide_helper.php` will be written to the root of the `app` folder of your Laravel project. You can move this file anywhere that suits you.

Every time the generator is run it will simply overwrite this file, so if you make corrections make sure the file is in source control or moved elsewhere.

The file *will* contain errors that reflect any errors in the Laravel documentation blocks. If you're using PHPStorm, these will be especially dramatically formatted in the display. As of this writing (early March 2013) there are quite a few errors in namespaced hints.

This has not been fully tested, so issues and pull requests are welcome.

How it works
------------

[](#how-it-works)

If you're curious, it reads the Laravel config file to get a list of the aliases -- it will process all of the aliases listed there, including any you may have added. It then uses the alias to resolve the façade and return the class represented by the façade. The class is passed to both the PHP ReflectionClass and PHP Documentor's Reflection class.

These two methods of reflection get the method parameters as represented in the code as well as the documentation for the method, using both to build a more complete picture of the methods, parameters, and their defaults.

Comments, Pull Requests, and Issues are more than welcome -- I'm not at all sure I'm doing this right.

You should also check out:  -- he takes a similar approach using reflection but generates a very different file, which also works very well, along with some other options.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~2 days

Total

2

Last Release

4856d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12743?v=4)[Jon Phipps](/maintainers/jonphipps)[@jonphipps](https://github.com/jonphipps)

---

Top Contributors

[![jonphipps](https://avatars.githubusercontent.com/u/12743?v=4)](https://github.com/jonphipps "jonphipps (25 commits)")[![danielboendergaard](https://avatars.githubusercontent.com/u/314877?v=4)](https://github.com/danielboendergaard "danielboendergaard (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")

---

Tags

laravelgeneratorilluminatelaravel4

### Embed Badge

![Health badge](/badges/jonphipps-idehelper/health.svg)

```
[![Health](https://phpackages.com/badges/jonphipps-idehelper/health.svg)](https://phpackages.com/packages/jonphipps-idehelper)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M299](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[livewire/flux

The official UI component library for Livewire.

9527.8M125](/packages/livewire-flux)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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