2017 © Pedro Peláez
 

library assets

Package for gathering some type of assets (js, css) and write once into document.

image

gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  • Tuesday, March 6, 2018
  • by gulch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 7 % Grown

The README.md

Coverage Status Scrutinizer Code Quality, (*1)

gulch/Assets

PHP Package for gathering some type of assets (js, css) and write once into document., (*2)

Special Thanks: Funtime Team., (*3)

Install

You will need Composer installed., (*4)

composer require gulch/assets

How to use

use gulch\Assets\Asset;
use gulch\Assets\Renderer\BodyCssRenderer;

$bodyCss = new Asset(new BodyCssRenderer);
$bodyCss->add('asset1.css')->add('asset2.css');
// ...
$bodyCss->add('asset3.css');

// ... and in your html template just write
$bodyCss->write();

Result, (*5)

<link href="asset1.css" rel="stylesheet" type="text/css" property="stylesheet">
<link href="asset2.css" rel="stylesheet" type="text/css" property="stylesheet">
<link href="asset3.css" rel="stylesheet" type="text/css" property="stylesheet">

The Versions

06/03 2018

dev-master

9999999-dev https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

css php javascript assets script styles preload stylesheets

06/03 2018

1.1.1

1.1.1.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

css php javascript assets script styles preload stylesheets

06/03 2018

1.1.0

1.1.0.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

css php javascript assets script styles preload stylesheets

29/01 2018

1.0.1

1.0.1.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

css php javascript assets script styles preload stylesheets

12/01 2018

1.0.0

1.0.0.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

css php javascript assets script styles preload stylesheets

06/12 2017

v0.2

0.2.0.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

css php javascript assets script styles preload stylesheets

08/04 2017

v0.1

0.1.0.0 https://github.com/gulch/assets

Package for gathering some type of assets (js, css) and write once into document.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

css php javascript assets script styles preload stylesheets