https://github.com/thecodingmachine/service-provider-template
The project is a template to quick-start universal service provider packages (packages providing service providers based on container-interop/service-provider)
https://github.com/thecodingmachine/service-provider-template
Last synced: 3 months ago
JSON representation
The project is a template to quick-start universal service provider packages (packages providing service providers based on container-interop/service-provider)
- Host: GitHub
- URL: https://github.com/thecodingmachine/service-provider-template
- Owner: thecodingmachine
- Created: 2016-10-20T12:57:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T10:08:17.000Z (almost 8 years ago)
- Last Synced: 2025-02-16T12:30:29.614Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project contains sample README and PHP files to quickstart a "container-interop/service-provider". Use it as a base to start your own service-provider package.
[](https://packagist.org/packages/yourvendorname/yourpackagename)
[](https://packagist.org/packages/yourvendorname/yourpackagename)
[](https://packagist.org/packages/yourvendorname/yourpackagename)
[](https://travis-ci.org/yourvendorname/yourpackagename)
[](https://coveralls.io/github/yourvendorname/yourpackagename?branch=master)
# XXX universal module
This package integrates XXX in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.
## Installation
```
composer require yourvendorname/yourpackagename
```
Once installed, you need to register the [`YourVendor\XXXServiceProvider`](src/XXXServiceProvider.php) into your container.
If your container supports [thecodingmachine/discovery](https://github.com/thecodingmachine/discovery) integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.
## Introduction
This service provider is meant to **[fill purpose here]**.
## Expected values / services
This *service provider* expects the following configuration / services to be available:
| Name | Compulsory | Description |
|-----------------------------|------------|----------------------------------------|
| `configuration_value` | *no* | Definition |
| `service_name` | *yes* | Definition |
## Provided services
This *service provider* provides the following services:
| Service name | Description |
|-----------------------------|--------------------------------------|
| `service_name` | Definition |
## Extended services
This *service provider* extends those services:
| Name | Compulsory | Description |
|-----------------------------|------------|----------------------------------------|
| `service_name` | *yes* | Definition |
Project template courtesy of thecodingmachine/service-provider-template