PHPackages                             getsky/phalcon-autoload-services - 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. getsky/phalcon-autoload-services

ActiveLibrary[Framework](/categories/framework)

getsky/phalcon-autoload-services
================================

Components for automatic registration services in Dependency Injection

v1.1.0(11y ago)1549042MITPHPPHP &gt;=5.4

Since Jan 20Pushed 11y ago5 watchersCompare

[ Source](https://github.com/JimmDiGrizli/phalcon-autoload-services)[ Packagist](https://packagist.org/packages/getsky/phalcon-autoload-services)[ RSS](/packages/getsky-phalcon-autoload-services/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (2)

Component for automatic registration of services in DI [![Build Status](https://camo.githubusercontent.com/33de5788ec44e16fa3671b1939f199ca0b71f566ea9edc529026a576830ec02c/68747470733a2f2f7472617669732d63692e6f72672f4a696d6d44694772697a6c692f7068616c636f6e2d6175746f6c6f61642d73657276696365732e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/JimmDiGrizli/phalcon-autoload-services) [![Dependency Status](https://camo.githubusercontent.com/f3f57aef2efc40f66615368e0b616616faefeedc5df51492c8296fe8f627e477/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533376338393035313463313538306138363030303130612f62616467652e737667)](https://www.versioneye.com/user/projects/537c890514c1580a8600010a)
================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#component-for-automatic-registration-of-services-in-di--)

This component allows to register services in DI with the settings file.

The main features of the component:

- Services can be initialized with a string, object or service provider;
- Services are connected via a configuration file;
- Services can be registered as "shared" services;

Requirements:

- PHP 5.4
- Phalcon Framework

Phalcon framework:

Using
-----

[](#using)

For registration services necessary to execute the code:

```
$services = new Ini('services.ini');
$dic = new FactoryDefault();

$registrant = new Registrant($services);
$registrant->setDi($dic);
$registrant->registration();
```

Configuring Services
--------------------

[](#configuring-services)

There are three ways to register services:

1. By the class name. This method does not allow to pass arguments to a constructor or adjust parameters.

    ```
    [response]
    string = "Phalcon\Http\Response"
    ```
2. Registering an instance directly. When using this method the container is placed dependency already finished object.

    ```
    [request]
    object = "Phalcon\Http\Response"
    ```
3. Through the service provider. Which must implement the interface `GetSky\Phalcon\AutoloadServices\Provider`. According to the plan, providers are intermediaries for registration of anonymous functions in the container dependency, but have the opportunity to realize any other way that supports Phalcon.

    ```
    [route]
    provider = "RouteProvider"
    ```

For the second and third method possible to specify which arguments are passed to the constructor and invoke methods since its inception and prior to placement in the DI. Below is an example of how it can be implemented on the ini:

```
[first-service]
provider = "SomeNamespace\FirstClass"
arg.0.service = "config"
arg.1.var = "24"
arg.2.di = 1
arg.3.s-service = "shared-service"
arg.4.object.object = "SoeNamespace\SecondClass"
arg.4.object.arg.0.var = "42"
arg.4.object.call.0.method = "run"
```

In the above example, we register the service `SomeNamespace\FirstClass`under the name `first-service ` and pass 5 arguments: the service `config`, variable `24`, DI (object implements `DiInterface`), service `shared-services` caused by the method ` getShared` and an instance of `SomeNamespace\SecondClass`, which was first created with transfer `42` and calling `run`.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~130 days

Total

3

Last Release

4237d ago

### Community

Maintainers

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

---

Tags

frameworkdependency-injectiondiphalcon

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/getsky-phalcon-autoload-services/health.svg)

```
[![Health](https://phpackages.com/badges/getsky-phalcon-autoload-services/health.svg)](https://phpackages.com/packages/getsky-phalcon-autoload-services)
```

###  Alternatives

[phalcon/devtools

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

1.3k2.0M54](/packages/phalcon-devtools)[mouf/mouf

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.

55146.0k17](/packages/mouf-mouf)[joomla/di

Joomla DI Package

15391.2k11](/packages/joomla-di)[phalcon/incubator-mailer

Phalcon Incubator Mailer Adapters

1318.1k2](/packages/phalcon-incubator-mailer)

PHPackages © 2026

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