PHPackages                             eserozvataf/scabbia2-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. eserozvataf/scabbia2-services

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

eserozvataf/scabbia2-services
=============================

Scabbia2 Services Component

v0.1.2(10y ago)225Apache-2.0PHPPHP &gt;=5.6.0

Since Sep 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/eserozvataf/scabbia2-services)[ Packagist](https://packagist.org/packages/eserozvataf/scabbia2-services)[ Docs](http://www.scabbiafw.com/)[ RSS](/packages/eserozvataf-scabbia2-services/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Scabbia2 Services Component
===========================

[](#scabbia2-services-component)

[This component](https://github.com/eserozvataf/scabbia2-services) is a tiny dependency management container implementation allow you to share, produce and access instances/variables easily.

[![Build Status](https://camo.githubusercontent.com/20607f958f13656c2720456f3aa7f852027384df7982c947a86c219c3b4b45ba/68747470733a2f2f7472617669732d63692e6f72672f657365726f7a76617461662f73636162626961322d73657276696365732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/eserozvataf/scabbia2-services)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3cd5c82e3acd994c22ec8a8cb06314e12953ea6cfdd11b0c88fee44168b54409/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657365726f7a76617461662f73636162626961322d73657276696365732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eserozvataf/scabbia2-services/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/ec32d541cbed4a8f73f48ff79361344fa5b679e7d67ac1dad4e9e103184be1ea/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d73657276696365732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/eserozvataf/scabbia2-services)[![Latest Stable Version](https://camo.githubusercontent.com/54bbee78bc4a6f56280c8359c605fc13b5adbbcfa7c21e80b67c818ebb895d6f/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d73657276696365732f762f737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-services)[![Latest Unstable Version](https://camo.githubusercontent.com/5249f2ff94b4039a9bc20cc86e13168ef7879fefce18d7851ca384e845f9c522/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d73657276696365732f762f756e737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-services)[![Documentation Status](https://camo.githubusercontent.com/1ebeb3aa2c5cce31b6bf29a03a59cd40727e8fe235ba9ca28824ef1330a81328/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73636162626961322d646f63756d656e746174696f6e2f62616467652f3f76657273696f6e3d6c6174657374)](https://readthedocs.org/projects/scabbia2-documentation)

Usage
-----

[](#usage)

### Basic Key/Value Container

[](#basic-keyvalue-container)

```
use Scabbia\Services;

$container = new Services();

$container['key'] = 'value';

echo $container['key'];
```

### Singleton Access

[](#singleton-access)

```
use Scabbia\Services;

$container = Services::getCurrent();

$container['key'] = ['sample', 'array'];

var_dump($container['key']);
```

### Setting a Factory

[](#setting-a-factory)

```
use Scabbia\Services;

$container = Services::getCurrent();

$container->setFactory('key', function () {
    return ['time' => microtime(true)];
});

var_dump($container['key']);
var_dump($container['key']); // will be different than previous one
```

### Decorating

[](#decorating)

```
use Scabbia\Services;

$container = Services::getCurrent();

$container['key'] = 'test';

$container->decorate('key', function ($value) {
    return $value . 'ing';
});

$container->decorate('key', function ($value) {
    return strtoupper($value);
});

var_dump($container['key']); // returns 'TESTING'
```

Links
-----

[](#links)

- [List of All Scabbia2 Components](https://github.com/eserozvataf/scabbia2)
- [Documentation](https://readthedocs.org/projects/scabbia2-documentation)
- [Twitter](https://twitter.com/eserozvataf)
- [Contributor List](contributors.md)
- [License Information](LICENSE)

Contributing
------------

[](#contributing)

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the [eserozvataf/scabbia2-services](https://github.com/eserozvataf/scabbia2-services) repository.

- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub issues.
- To support: [![Donate](https://camo.githubusercontent.com/630a83896c8ab4a5af0f79046098e3d8713112304fd119d86fa5957a0ecc5159/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f657365726f7a76617461662e737667)](https://gratipay.com/eserozvataf/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad4a7ec4c200bd6939df5aac1149f7d8d95aa5b8730a2276981f449c0c12fb18?d=identicon)[eserozvataf](/maintainers/eserozvataf)

---

Top Contributors

[![eser](https://avatars.githubusercontent.com/u/866558?v=4)](https://github.com/eser "eser (12 commits)")

---

Tags

servicesscabbialarukediscabbia2scabbiafw

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/eserozvataf-scabbia2-services/health.svg)

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

###  Alternatives

[sylius/registry

Services registry.

6211.0M40](/packages/sylius-registry)[cloudfoundry-community/cf-helper-php

Cloudfoundry helper in php

1868.6k1](/packages/cloudfoundry-community-cf-helper-php)[whitecube/laravel-prices

Manage acquisition, selling &amp; renting prices for products and services in your Laravel Application

121.6k](/packages/whitecube-laravel-prices)

PHPackages © 2026

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