PHPackages                             cundd/irlib - 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. [Framework](/categories/framework)
4. /
5. cundd/irlib

ActiveLibrary[Framework](/categories/framework)

cundd/irlib
===========

General purpose JavaScript framework

0.1.4(9y ago)022[1 issues](https://github.com/cundd/irlib/issues)MITJavaScript

Since Mar 26Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (7)Used By (0)

irlib
=====

[](#irlib)

> A simple JavaScript library

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

[](#installation)

With `npm`

```
npm install irlib --save-dev
```

or `Composer`

```
composer require cundd/irlib
```

Service Locator
---------------

[](#service-locator)

### Create the Service Locator

[](#create-the-service-locator)

```
var sl = new IrLib.ServiceLocator();
```

### Retrieve an instance

[](#retrieve-an-instance)

```
var controller = sl.get('registeredKey');
```

### Import a ES6 module and register it

[](#import-a-es6-module-and-register-it)

```
import App from './App.js';
sl.register('app', App);
```

### Register a factory method

[](#register-a-factory-method)

```
sl.register(
        'appView',
        function () {
        		return new Instance();
        }
)
```

### Register a controller with dependencies (inline)

[](#register-a-controller-with-dependencies-inline)

```
sl.registerMultiple({
	appController: IrLib.Controller.extend({
		needs: ['appView'],
		events: {
			click: function (e) {
				if (e.target.id === 'save') {
					this.appView.assignVariable('saved', this.appView.variables.saved + 1);
					this.appView.reload();
				}
			}
		}
	})
});
```

### Set the property name for the dependency

[](#set-the-property-name-for-the-dependency)

```
sl.registerMultiple({
	appController: IrLib.Controller.extend({
		needs: ['appView:view'],
		events: {
			click: function (e) {
				if (e.target.id === 'save') {
					this.view.assignVariable('saved', this.view.variables.saved + 1);
					this.view.reload();
				}
			}
		}
	})
});
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

3614d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/743122?v=4)[Daniel Corn](/maintainers/cundd)[@cundd](https://github.com/cundd)

---

Top Contributors

[![cundd](https://avatars.githubusercontent.com/u/743122?v=4)](https://github.com/cundd "cundd (152 commits)")

### Embed Badge

![Health badge](/badges/cundd-irlib/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M841](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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