PHPackages                             sproutwp/sprout\_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. sproutwp/sprout\_services

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sproutwp/sprout\_services
=========================

A service container &amp; provider used by Sprout

04PHP

Since Jun 12Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Sprout Services
===============

[](#sprout-services)

*The module, by default, loads on the `init` hook with a priority of `10`, if you launch it too early, it will not be compatible with other Sprout Modules.*

A services container &amp; provider used by the Sprout Framework

### How to load

[](#how-to-load)

If you're inside Sprout, it'll handle it for you! If you're using it as a standalone package, you must initialize `SproutServices\SproutServicesInit` and call `loadModule`.

### How to use

[](#how-to-use)

Register your object as a service:

```
SproutServices\Wrappers\SproutServicesWrappers::registerService( 'myService', new TestService );

```

Retrieve it:

```
SproutServices\Wrappers\SproutServicesWrappers::getService( 'myService' );

```

Even if it will be spoken about in the documentation, there's a lot of mumbo jumbo in the back-end such as determining service identity to ensure it cannot be overwriten by objects that are not alike, so it is safe (as much as PHP allows without strong return types in interfaces) to use for dependencies, e.g: you'll always get an object that does the same thing, but you must enforce it throught interfaces.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.2% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51598561?v=4)[sproutwp](/maintainers/sproutwp)[@sproutwp](https://github.com/sproutwp)

---

Top Contributors

[![themeflame](https://avatars.githubusercontent.com/u/9643236?v=4)](https://github.com/themeflame "themeflame (12 commits)")[![sproutwp](https://avatars.githubusercontent.com/u/51598561?v=4)](https://github.com/sproutwp "sproutwp (7 commits)")

### Embed Badge

![Health badge](/badges/sproutwp-sprout-services/health.svg)

```
[![Health](https://phpackages.com/badges/sproutwp-sprout-services/health.svg)](https://phpackages.com/packages/sproutwp-sprout-services)
```

###  Alternatives

[goaop/goaop-laravel-bridge

Integration bridge for Go! AOP framework

9421.2k](/packages/goaop-goaop-laravel-bridge)[intvent/eboekhouden-php

A PHP framework agnostic package for E-boekhouden.nl

1210.8k](/packages/intvent-eboekhouden-php)

PHPackages © 2026

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