PHPackages                             emerap/il18\_config - 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. emerap/il18\_config

ActiveLibrary[Caching](/categories/caching)

emerap/il18\_config
===================

Cache interface for integration into third-party library

012PHP

Since Oct 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/emerap/il18_config)[ Packagist](https://packagist.org/packages/emerap/il18_config)[ RSS](/packages/emerap-il18-config/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Basic usage
-----------

[](#basic-usage)

Create class and extending from \\Emerap\\Il18Config.

```
use \Emerap\Il18Config\Il18Config;

class ClassName extends Il18Config {

  /**
     * {@inheritdoc}
     */
    public static function getLibraryId() {
      return 'library_id';
    }

    /**
     * {@inheritdoc}
     */
    public static function getServicesJson() {
      return __DIR__ . '/services.yml';
    }

    /**
     * Get cache instance.
     *
     * @return Service
     *   Service instance.
     */
    public function cache() {
      return self::getService('service_id');
    }
}

```

Create class implement \\Emerap\\Il18Config\\Il18ConfigInterface and use trait \\Emerap\\Il18Config\\Il18ConfigTrait.

```
use Emerap\Il18Config\Il18ConfigInterface;
use Emerap\Il18Config\Il18ConfigTrait;

class ClassName implements Il18ConfigInterface {

  use Il18ConfigTrait;

  /**
     * {@inheritdoc}
     */
    public static function getLibraryId() {
      return 'library_id';
    }

    /**
     * {@inheritdoc}
     */
    public static function getServicesJson() {
      return __DIR__ . '/services.yml';
    }

    /**
     * Get cache instance.
     *
     * @return Service
     *   Service instance.
     */
    public function cache() {
      return self::getService('service_id');
    }
}

```

Copyright © 2016 \[ [Pokhodyun Alexander](https://vk.com/karbunkul)\]

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/3145812?v=4)[Pokhodyun Alexander](/maintainers/karbunkul)[@karbunkul](https://github.com/karbunkul)

### Embed Badge

![Health badge](/badges/emerap-il18-config/health.svg)

```
[![Health](https://phpackages.com/badges/emerap-il18-config/health.svg)](https://phpackages.com/packages/emerap-il18-config)
```

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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