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

04

Since Jun 12Compare

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

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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)

### 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

[gerardojbaez/messenger

Messenger functionality for Laravel 5.2.

728.5k](/packages/gerardojbaez-messenger)[hollyit/filament-static-assets

Improved handling of stylesheets and javascript files for Filament

1512.9k](/packages/hollyit-filament-static-assets)

PHPackages © 2026

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