sukohi / encore
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sukohi/encore
Requires
- php: >=5.4.0
 - illuminate/support: 4.2.*
 
This package is not auto-updated.
Last update: 2025-10-25 23:32:12 UTC
README
A PHP package mainly developed for Laravel to skip the same task during an access.
Installation&settings 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
$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
This package is licensed under the MIT License.
Copyright 2015 Sukohi Kuhoh