ptachoire/cssembed

Css url embed library.

Installs: 339 046

Dependents: 24

Stars: 11

Watchers: 2

Forks: 8

Open Issues: 1

Language: PHP

v1.0.2 2013-07-22 20:01 UTC

README

PhpCssEmbed embed data uri in css part

Build Status

Usage

Use embed css with a file

<?php
    $pce = new \CssEmbed\CssEmbed();
    echo $pce->embedCss( $css_file );

Or directly with css content

<?php
    $pce = new \CssEmbed\CssEmbed();
    $pce->setRootDir( '/path/to/files' );
    echo $pce->embedString( $css_content );

Unit Tests

phpunit

Thanks

Files structure inspired by Geocoder from William Durand