PHPackages                             reichwebconsulting/common-service-providers - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. reichwebconsulting/common-service-providers

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

reichwebconsulting/common-service-providers
===========================================

A set of ServiceProviderInterface implementations for Pimple

1.1.7(7y ago)079mitPHP

Since Jun 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/reichwebconsulting/common-service-providers)[ Packagist](https://packagist.org/packages/reichwebconsulting/common-service-providers)[ RSS](/packages/reichwebconsulting-common-service-providers/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (15)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/0b488e47174bc1ba25fbced13885ea2f72964a0cda197e07ae215f27b4335840/68747470733a2f2f706f7365722e707567782e6f72672f7265696368776562636f6e73756c74696e672f636f6d6d6f6e2d736572766963652d70726f7669646572732f762f737461626c65)](https://packagist.org/packages/reichwebconsulting/common-service-providers)[![Build Status](https://camo.githubusercontent.com/52ddd6f0bde2ab62e3674ef5bbdce07497e9de893c065064926fbb4e484a6889/68747470733a2f2f7472617669732d63692e6f72672f7265696368776562636f6e73756c74696e672f636f6d6d6f6e2d736572766963652d70726f7669646572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/reichwebconsulting/common-service-providers)[![License](https://camo.githubusercontent.com/0e90091794796619416ee13c234fb979f76cd1df2f102aa4d68a38f32d72fbac/68747470733a2f2f706f7365722e707567782e6f72672f7265696368776562636f6e73756c74696e672f636f6d6d6f6e2d736572766963652d70726f7669646572732f6c6963656e7365)](https://packagist.org/packages/reichwebconsulting/common-service-providers)[![Packagist(https://packagist.org/packages/reichwebconsulting/common-service-providers)](https://camo.githubusercontent.com/89fb6cba392681d0fdfd653b7392f6a39944d878b45404fd862d3fc2a298dd2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265696368776562636f6e73756c74696e672f636f6d6d6f6e2d736572766963652d70726f7669646572732e737667)](https://camo.githubusercontent.com/89fb6cba392681d0fdfd653b7392f6a39944d878b45404fd862d3fc2a298dd2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265696368776562636f6e73756c74696e672f636f6d6d6f6e2d736572766963652d70726f7669646572732e737667)

Do you use Pimple? Do you find yourself writing the same boilerplate code across multiple projects to access the same or similar resources? *Then this project is for you.*

**reichwebconsulting/common-service-providers** offers a set of `ServiceProviderInterface`implementations for creating instances of common shared resources. Stop writing the same database instantiation code. Add some configuration and move on.!

Requirements
------------

[](#requirements)

- [Composer](https://getcomposer.org/) must be installed to pull project dependencies.
- PHP 7.2 or higher.

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

[](#installation)

```
composer require reichwebconsulting/common-service-providers

```

`reichwebconsulting/common-service-providers` defines a number of ServiceProviderInterface implementations that are dependent on the presence of libraries that define those resources. See the `suggest` block in `composer.json`for a list of recommended dependencies you can use to fully leverage this project.

Contributors
------------

[](#contributors)

- [Brian Reich, Reich Web Consulting](https://github.com/reichwebconsulting)

License
-------

[](#license)

MIT License

Copyright (c) 2018 Reich Web Consulting

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases
--------

[](#releases)

### 1.1.3 ConfigurationFile Provider

[](#113-configurationfile-provider)

Added ConfigurationFile provider which will provide access to a configuration returned as an associative array.

### 1.1.4 Fix Monolog Name

[](#114-fix-monolog-name)

The Monolog Provider's "name" field was hardcoded to the name of the client project this component originally came from. Whoops!

### 1.1.5 Paths Provider

[](#115-paths-provider)

Added the `Paths` Service Provider, which provides named paths from the service provider configuration.

### 1.1.6 NamedStringProvider

[](#116-namedstringprovider)

Added the `NamedStringProvider`. The `NamedStringProvider` is a returned a function used to return named string from a string collection in the service configuration. For example the configuration could specify a key named `urls`, which contains a key/value pair of URLs used by the application. A `NamedServiceProvider` can be registered with `urls` as it's collection named, and the provider function can be used to retrieve the values by key.

The `Paths` service provider was refactored to extend `NamedStringProvider`, and the `Urls` provider was added as another common `NamedCollectionProvider`.

### 1.1.7 Monolog SwiftMailHandler

[](#117-monolog-swiftmailhandler)

Added the `SwiftMailHandler` to `MonologProvider`. This allows you to configure a Monolog logger to send through email using `Swifr Mailer`.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity71

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

Recently: every ~30 days

Total

14

Last Release

2799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/094902606806c697d6eb15794e0db692dc37f5bed9c7ce1af8968aefbd6c48be?d=identicon)[reichwebconsulting](/maintainers/reichwebconsulting)

---

Tags

containermonologpdophppsr-11service-providerservices

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/reichwebconsulting-common-service-providers/health.svg)

```
[![Health](https://phpackages.com/badges/reichwebconsulting-common-service-providers/health.svg)](https://phpackages.com/packages/reichwebconsulting-common-service-providers)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)[socloz/monitoring-bundle

A profiling/monitoring Symfony2 bundle for production servers - alerts on exceptions, logs profiling data &amp; sends data to statsd/graphite

6944.2k](/packages/socloz-monitoring-bundle)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)

PHPackages © 2026

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