PHPackages                             sukohi/encore - 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. sukohi/encore

ActiveLibrary

sukohi/encore
=============

07PHP

Since Jun 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Encore)[ Packagist](https://packagist.org/packages/sukohi/encore)[ RSS](/packages/sukohi-encore/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Encore
======

[](#encore)

A PHP package mainly developed for Laravel to skip the same task during an access.

Installation&amp;settings for Laravel
=====================================

[](#installationsettings-for-laravel)

After installation using composer, add the followings to the array in app/config/app.php

```
'providers' => array(
    ...Others...,
    'Sukohi\Encore\EncoreServiceProvider',
)

```

Also

```
'aliases' => array(
    ...Others...,
    'Encore' => 'Sukohi\Encore\Facades\Encore',
)

```

Usage
=====

[](#usage)

```
$data = Encore::get('numbers', function(){  // Called

    return [
        '1' => 'one',
        '2' => 'two',
        '3' => 'three',
    ];

});
print_r($data);

$data = Encore::get('numbers', function(){  // Not called here

    return [
        '1' => 'one',
        '2' => 'two',
        '3' => 'three',
    ];

});
print_r($data);

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2015 Sukohi Kuhoh

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-encore/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-encore/health.svg)](https://phpackages.com/packages/sukohi-encore)
```

PHPackages © 2026

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