PHPackages                             mashkin/stash-serviceprovider - 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. [Caching](/categories/caching)
4. /
5. mashkin/stash-serviceprovider

Abandoned → [dijky/stash-service-provider](/?search=dijky%2Fstash-service-provider)Library[Caching](/categories/caching)

mashkin/stash-serviceprovider
=============================

Silex ServiceProvider integrating the Stash caching component

v1.0.0(9y ago)1731MITPHPPHP &gt;=5.3.2

Since Sep 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Mashkin/StashServiceProvider)[ Packagist](https://packagist.org/packages/mashkin/stash-serviceprovider)[ Docs](http://github.com/Mashkin/StashServiceProvider)[ RSS](/packages/mashkin-stash-serviceprovider/feed)WikiDiscussions master Synced 1mo ago

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

StashServiceProvider
====================

[](#stashserviceprovider)

Silex ServiceProvider integrating the Stash caching component

Usage
-----

[](#usage)

```
// Register the Mashkin\Silex\Provider\StashServiceProvider\ServiceProvider
$app->register(new StashServiceProvider());

// Set options for default driver
$app['stashes.options'] = array();
$app['stashes.driver.class'] = array();

if(Stash\Driver\Apc::isAvailable()) {
    $app['stashes.driver.class']['default'] = 'Apc';
	$app['stashes.options']['default'] = array(
		'ttl' => 24*60*60,
		'namespace' => sha1($app['name'])
	);
} else {
    $app['stashes.driver.class']['default'] = 'FileSystem';
	$app['stashes.options']['default'] = array(
		'path' => __DIR__ . '/cache/stash/',
		'dirSplit' => 2,
		'filePermissions' => 0666,
		'dirPermissions' => 0777
	);
}

// ...

$app['stashes']['default'] instanceof Stash\Pool    // true
$app['stash'] === $app['stashes']['default']        // true
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3537d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47c3b6c0ca4169d985fd3339e43e4870c7632386c9a974dfa5c8f67fa77a68ad?d=identicon)[Mashkin](/maintainers/Mashkin)

---

Top Contributors

[![Mashkin](https://avatars.githubusercontent.com/u/1668814?v=4)](https://github.com/Mashkin "Mashkin (21 commits)")

---

Tags

abandonedcacheextensionsilexstashsilex-extension

### Embed Badge

![Health badge](/badges/mashkin-stash-serviceprovider/health.svg)

```
[![Health](https://phpackages.com/badges/mashkin-stash-serviceprovider/health.svg)](https://phpackages.com/packages/mashkin-stash-serviceprovider)
```

###  Alternatives

[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)[undefinedor/yii2-cached-active-record

The cached activeRecord for the Yii2 framework

102.6k](/packages/undefinedor-yii2-cached-active-record)

PHPackages © 2026

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