Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jascha030/service-provider

Copy of container-interop/service-providers for usage in personal projects.
https://github.com/jascha030/service-provider

di php psr-11 service-provider

Last synced: about 1 month ago
JSON representation

Copy of container-interop/service-providers for usage in personal projects.

Awesome Lists containing this project

README

        

# Service Provider

Copy of [container-interop/service-providers](https://github.com/container-interop/service-provider), which seems unmaintained, but states that is still a work in progress.
Because of this, I made a copy with some slight edits, to use in personal projects.

## Installation

```sh
composer require jascha030/service-provider
```

## The interface

The interface is pretty self explainitory, read the README.md of [container-interop/service-providers](https://github.com/container-interop/service-provider) for more info.

```php

*/
public function getFactories(): iterable;

/**
* @return iterable
*/
public function getExtensions(): iterable;
}
```