dev-master
9999999-dev
MIT
The Development Requires
- illuminate/container 4.1.*
- illuminate/support 4.1.*
- phpunit/phpunit 3.7.*
- mockery/mockery dev-master@dev
- satooshi/php-coveralls dev-master
by Ross Masters
Wallogit.com
2017 © Pedro Peláez
Providers helpers that make linking to frontend assets easy, based on your current environment., (*2)
This package is not interested in any compilation steps, pre-processing, minification, etc. Use grunt, gulp or Assetic for that., (*3)
Aims to provide configurable links for assets that are:, (*4)
/public/assets)http://static.example.com/)Install using Composer: composer require rmasters/lasset:dev-master, (*5)
This library uses the new PSR-4 autoloader. You might need to update composer itself to use this -
composer self-update, (*6)
url(), function.Usage:, (*7)
use Lasset\Manager;
$manager = new Manager;
$manager->configure(['environments' => [...]]);
$manager->addProvider('testing', new HostProvider([...]));
$manager->setDefault(APP_ENV);
echo $manager->url('bootstrap/dist/css/bootstrap.min.css');
// Or to get a specific environment's url
echo $manager->getProvider('testing')->url('jquery/jquery.min.js');
Bundled in this framework is a ServiceProvider and Facade for integration into Laravel 4. This adds the following functionality:, (*8)
lasset.manager keyapp/config/packages/rmasters/lasset/config.php
App::env()) will be set as the default
Lasset environment.To enable these, simply register the service provider and optionally alias the
facade in app/config/app.php:, (*9)
'providers' => array(
// ...
'Lasset\Laravel\LassetServiceProvider',
),
'aliases' => array(
'Lasset' => 'Lasset\Laravel\Facades\Lasset',
),
MIT