2017 © Pedro Peláez
 

library encore

image

sukohi/encore

  • Monday, June 8, 2015
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Encore

A PHP package mainly developed for Laravel to skip the same task during an access., (*1)

Installation&settings for Laravel

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

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

Also, (*3)

'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., (*4)

Copyright 2015 Sukohi Kuhoh, (*5)

The Versions

08/06 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi