https://github.com/lvancrayelynghe/cssprites
Simple CSS Sprites generator
https://github.com/lvancrayelynghe/cssprites
css-sprites-generator phar
Last synced: 5 months ago
JSON representation
Simple CSS Sprites generator
- Host: GitHub
- URL: https://github.com/lvancrayelynghe/cssprites
- Owner: lvancrayelynghe
- License: mit
- Created: 2015-10-30T12:52:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-22T19:58:47.000Z (over 9 years ago)
- Last Synced: 2025-05-22T10:22:50.655Z (about 1 year ago)
- Topics: css-sprites-generator, phar
- Language: PHP
- Size: 51.8 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSSPrites
[](LICENSE)
[](https://travis-ci.org/Benoth/cssprites)
[](https://scrutinizer-ci.com/g/Benoth/cssprites/code-structure)
[](https://scrutinizer-ci.com/g/Benoth/cssprites)
[](https://insight.sensiolabs.com/projects/da68ab1e-0d70-4042-8f48-c4995df72c6d)
This package is compliant with [PSR-1], [PSR-2] and [PSR-4]. If you notice compliance oversights,
please send a patch via pull request.
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
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](https://github.com/Benoth/cssprites/releases/download/1.0.1/cssprites.phar).
```bash
wget https://github.com/Benoth/cssprites/releases/download/1.0.1/cssprites.phar
```
To install globally put `cssprites.phar` in `/usr/bin`.
```bash
chmod +x cssprites.phar && sudo mv cssprites.phar /usr/local/bin/cssprites
```
### Composer global
```bash
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
``` bash
$ vendor/bin/phpunit
```
## License
The MIT License (MIT). Please see [License File](https://github.com/Benoth/cssprites/blob/master/LICENSE) for more information.