2017 © Pedro Peláez
 

library asset

Endroid Asset

image

endroid/asset

Endroid Asset

  • Sunday, July 15, 2018
  • by endroid
  • Repository
  • 1 Watchers
  • 1 Stars
  • 366 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 74 % Grown

The README.md

Asset

By endroid, (*1)

Latest Stable Version Build Status Total Downloads License, (*2)

Library for quick and easy asset management., (*3)

Read the blog for more information on why I created this library., (*4)

  • ControllerAsset: generates the string from a controller action and parameters.
  • TemplateAsset: generates the string from a template and parameters.
  • FileAsset: generates the string by loading the contents of a file.
  • UrlAsset: simply contains a string which is returned when requested.
  • DataAsset: simply contains a string which is returned when requested.
  • CacheAsset: wraps any of the above in a cache to optimize performance.

All implement AssetInterface and provide the method: getData()., (*5)

Usage

The easiest way to work with assets is by letting the factory create assets for you. This allows you to create your assets without worrying about the necessary dependencies., (*6)

$dataAsset = $assetFactory->create([
   'controller' => CoverController::class,
   'parameters' => ['title' => 'My PDF', 'date' => new DateTime()],
   'cache_key' => 'cover',
   'cache_expires_after' => 3600,
   'cache_clear' => true, // use to purge any previously cached data
]);

Installation

Use Composer to install the library., (*7)

bash $ composer require endroid/asset, (*8)

When you use Symfony, the installer makes sure that services are automatically wired., (*9)

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading., (*10)

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code., (*11)

The Versions

15/07 2018

dev-master

9999999-dev https://github.com/endroid/asset

Endroid Asset

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony asset endroid manifest

11/06 2018
28/05 2018
28/05 2018
09/04 2018

1.0.1

1.0.1.0 https://github.com/endroid/asset

Endroid Asset

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony asset endroid manifest

08/04 2018

1.0.0

1.0.0.0 https://github.com/endroid/asset

Endroid Asset

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony asset endroid manifest

06/08 2017

1.0.5

1.0.5.0 https://github.com/endroid/Asset

Endroid Asset

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

bundle symfony asset endroid manifest

06/08 2017

1.0.4

1.0.4.0 https://github.com/endroid/Asset

Endroid Asset

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

bundle symfony asset endroid manifest

27/06 2017

1.0.3

1.0.3.0 https://github.com/endroid/Asset

Endroid Asset

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

bundle symfony asset endroid manifest

27/06 2017

1.0.2

1.0.2.0 https://github.com/endroid/Asset

Endroid Asset

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

bundle symfony asset endroid manifest