shinobicorp/laravel-stassets

This package is abandoned and no longer maintained. The author suggests using the metrique/laravel-cdnify package instead.

A laravel4 package to easily switch between Local and CDN assets, based on environment

dev-master 2016-02-07 00:30 UTC

This package is not auto-updated.

Last update: 2016-06-10 12:50:14 UTC


README

Not actively maintained, use http://github.com/metrique/laravel-cdnify

A laravel4 package to help switch between Local and CDN static assets depending on the current environment.

Install

  1. Require "shinobicorp/laravel-stassets": "dev-master" in your composer.json file.
  2. Run composer install
  3. Add 'ShinobiCorp\Stassets\StassetsServiceProvider' Service Provider to app/config/app.php in the providers array.
  4. Add 'Stasset' => 'ShinobiCorp\Stassets\StassetFacade' Alias to app/config/app.php in the aliases array.
  5. Publish the config with php artisan config:publish shinobicorp/laravel-stassets

Usage

  • Stassets::get('path/to/your/asset.file');
  • Create and edit new environment configurations under app/config/packages/shinobicorp/laravel-stassets for eg: app/config/packages/shinobicorp/laravel-stassets/production/stassets.php