PHPackages                             muraveiko/codeigniter-phpstorm - 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. muraveiko/codeigniter-phpstorm

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

muraveiko/codeigniter-phpstorm
==============================

PhpStorm Code Completion to CodeIgniter + HMVC

0183PHP

Since Mar 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Muraveiko/codeigniter-phpstorm)[ Packagist](https://packagist.org/packages/muraveiko/codeigniter-phpstorm)[ RSS](/packages/muraveiko-codeigniter-phpstorm/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpStorm Code Completion to CodeIgniter + HMVC
==============================================

[](#phpstorm-code-completion-to-codeigniter--hmvc)

Fixed code complemention for use MY\_Controller &amp; MY\_Model.
Also solved issue [natanfelles#9](https://github.com/natanfelles/codeigniter-phpstorm/issues/9)

Working perfectly with CodeIgniter 3.\*

### How to use it:

[](#how-to-use-it)

1. composer require muraveiko/codeigniter-phpstorm --dev
2. &amp; 3. analogue original

### How to use it (original):

[](#how-to-use-it-original)

1. Drop the **phpstorm.php** file into your CI project root then PhpStorm will index it.
2. Go to *system/core/* folder.
3. Select *Controller.php* and *Model.php* files, right click and set *Mark as Plain Text*.

### HMVC Support

[](#hmvc-support)

If you are using the Modular HMVC, mark as Plain Text the Controller.php file in the MX folder.

You need to add the `@property` tag in the class doc block:

```
/**
 * Class Cart
 * @property Cart $cart Cart module
 */
class Cart extends MX_Controller {

	/**
	 * Add product to cart
	 * @param int $id Product id
	 */
	public function add($id = 0)
	{
		// Do it...
	}
}
```

To load modules in other places do like it:

```
/**
 * @var Cart $cart This will provide Code Completion in the $cart variable
 */
$cart = Modules::load('cart');
```

Use *Ctrl + Q* in `$cart` to load documentation or help with available functions:

```
$cart->add(5);
```

### Usage in Views

[](#usage-in-views)

If you want load CI\_Controller or MX\_Controller in a view, add a doc block as follow:

```
/**
 * @var CI_Controller $this
 */
echo $this->uri->segment(1);
```

### Preview:

[](#preview)

[![Image of Code Completion](https://raw.githubusercontent.com/natanfelles/codeigniter-phpstorm/master/codeigniter-phpstorm.png)](https://raw.githubusercontent.com/natanfelles/codeigniter-phpstorm/master/codeigniter-phpstorm.png)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c2f8d54ab709d04c9c9121c02b062f712b50c5a67e15c85bae996baf540b0b5?d=identicon)[Muraveiko](/maintainers/Muraveiko)

---

Top Contributors

[![natanfelles](https://avatars.githubusercontent.com/u/3011423?v=4)](https://github.com/natanfelles "natanfelles (15 commits)")[![Muraveiko](https://avatars.githubusercontent.com/u/8396430?v=4)](https://github.com/Muraveiko "Muraveiko (5 commits)")

### Embed Badge

![Health badge](/badges/muraveiko-codeigniter-phpstorm/health.svg)

```
[![Health](https://phpackages.com/badges/muraveiko-codeigniter-phpstorm/health.svg)](https://phpackages.com/packages/muraveiko-codeigniter-phpstorm)
```

###  Alternatives

[creitive/laravel5-breadcrumbs

Breadcrumbs integration for Laravel 5

39245.1k1](/packages/creitive-laravel5-breadcrumbs)[savannabits/filament-signature-pad

Signature Pad for FilamentPHP

7723.8k](/packages/savannabits-filament-signature-pad)[slatiusa/yii2-nestable

Yii 2.0 implementation of nested set behavior using jquery.nestable plugin.

1718.5k2](/packages/slatiusa-yii2-nestable)

PHPackages © 2026

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