PHPackages                             ulrack/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ulrack/services

Abandoned → [grizz-it/services](/?search=grizz-it%2Fservices)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ulrack/services
===============

A services implementation for PHP applications.

3.4.0(5y ago)05093MITPHPPHP ^7.3

Since Jan 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ulrack/services)[ Packagist](https://packagist.org/packages/ulrack/services)[ RSS](/packages/ulrack-services/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (19)Used By (3)

DEPRECATION NOTICE: this package has been moved and improved at [grizz-it/services](https://github.com/grizz-it/services)
=========================================================================================================================

[](#deprecation-notice-this-package-has-been-moved-and-improved-at-grizz-itservices)

[![Build Status](https://camo.githubusercontent.com/333aea00c28f5fcf2505b16a153000cd9851b70d7518bf323ecb9f5e51ed43d7/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f73657276696365732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/services)

Ulrack Services
===============

[](#ulrack-services)

This package contains a services implementation. These services can be configured for a project to create a configured depency injection layer. The services are ran through a compiler to create workable data for the factories. The factories are used to retrieve assembled objects for the project. Both the compiler and factory can be extended by creating compiler extensions and factory extensions. On top of that, existing compilers and factories can be extended and altered with hooks.

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

[](#installation)

To install the package run the following command:

```
composer require ulrack/services

```

Usage
-----

[](#usage)

### Registry

[](#registry)

To start, the [ServiceRegistry](src/Component/Registry/ServiceRegistry.php) needs to be created. The ServiceRegistry is the object on which all service definitions are registered, before they are compiled. To create the ServiceRegistry use the following snippet:

```
