Skip to content

denniscoorn/phpCssEmbed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhpCssEmbed

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

About

Pure php css embed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%