benoth / cssprites
Simple CSS Sprites generator
1.0.1
2015-12-17 13:48 UTC
Requires
- php: >=5.4
- imagine/imagine: ~0.6
- jbroadway/urlify: ^1.0
- league/container: ~1.3
- symfony/console: ~2.7
- symfony/finder: ~2.7
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is not auto-updated.
Last update: 2025-03-21 23:29:24 UTC
README
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.