Skip to content
Pure php css embed
PHP CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.scrutinizer.yml
.travis.yml
LICENSE
autoload.php.dist
composer.json
phpunit.xml.dist
readme.md

readme.md

PhpCssEmbed

PhpCssEmbed embed data uri in css part

Build Status Scrutinizer Code Quality

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

You can’t perform that action at this time.