sukohi / encore
dev-master
2015-06-08 17:47 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2024-11-09 18:22:10 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