PHPackages                             neat/service - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. neat/service

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

neat/service
============

Neat Service components

0.4.0(4y ago)03.0k[2 issues](https://github.com/neat-php/service/issues)2MITPHPPHP ^7.2 || ^8.0

Since Jul 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/neat-php/service)[ Packagist](https://packagist.org/packages/neat/service)[ RSS](/packages/neat-service/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (11)Used By (2)

Neat Service components
=======================

[](#neat-service-components)

[![Stable Version](https://camo.githubusercontent.com/01d46c86ddb5d8aedea5c786660bc0b7300d4ca86d1b6c62e64d0c9c7f0766f1/68747470733a2f2f706f7365722e707567782e6f72672f6e6561742f736572766963652f76657273696f6e)](https://packagist.org/packages/neat/service)[![Build Status](https://camo.githubusercontent.com/61e2b9bda84ec1c7d239b6d41f1a87a89232ff5b38e1e7903d5f2a3494480998/68747470733a2f2f7472617669732d63692e6f72672f6e6561742d7068702f736572766963652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/neat-php/service)[![codecov](https://camo.githubusercontent.com/eb5e068945947ae15e503d5ae1ef698d6fe4471d07a8cbb32c646c03a41ccc0e/68747470733a2f2f636f6465636f762e696f2f67682f6e6561742d7068702f736572766963652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/neat-php/service)

Neat service components provide a clean and expressive API for your application to provide, access and inject services and other dependencies. The [PSR-11](https://www.php-fig.org/psr/psr-11/)container interface is implemented for optimal interoperability.

Getting started
---------------

[](#getting-started)

To install this package, simply issue [composer](https://getcomposer.org) on the command line:

```
composer require neat/service

```

Service Container
-----------------

[](#service-container)

The included service container allows you to register and retrieve service instances using factories and preset instances.

```
