Skip to content

lvancrayelynghe/cssprites

Repository files navigation

CSSPrites

Software License Build Status Coverage Status Quality Score SensioLabsInsight

This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.

Simple CSS Sprites generator.

Requirements

The following versions of PHP are supported:

  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0

Installation

Phar file

Download the cssprites.phar.

wget https://github.com/Benoth/cssprites/releases/download/1.0.1/cssprites.phar

To install globally put cssprites.phar in /usr/bin.

chmod +x cssprites.phar && sudo mv cssprites.phar /usr/local/bin/cssprites

Composer global

composer global require benoth/cssprites

Usage

Short version

Go in your sprite's images directory and run cssprites generate and just answer the few asked questions on how you want your sprite generated.

You can also run with -i path/to/images and -n for non interactive mode.

Long version

@todo

Testing

$ vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.