PHPackages                             benoth/cssprites - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. benoth/cssprites

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

benoth/cssprites
================

Simple CSS Sprites generator

1.0.1(10y ago)32491[2 issues](https://github.com/Benoth/cssprites/issues)MITPHPPHP &gt;=5.4

Since Oct 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Benoth/cssprites)[ Packagist](https://packagist.org/packages/benoth/cssprites)[ RSS](/packages/benoth-cssprites/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

CSSPrites
=========

[](#cssprites)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/5c569e19592d345c25a9e67dd490b6a1c897298e81855d41ff0db004ca08ba24/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f42656e6f74682f6373737072697465732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Benoth/cssprites)[![Coverage Status](https://camo.githubusercontent.com/40c908c411ae5cca08c3e6e5f4e132b5588580aff816cf8da4600fa828dfd295/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f42656e6f74682f6373737072697465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Benoth/cssprites/code-structure)[![Quality Score](https://camo.githubusercontent.com/f505fb5d128afbe76d513387f1a31d61b379176fcc3043a13b85c98eed225865/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f42656e6f74682f6373737072697465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Benoth/cssprites)[![SensioLabsInsight](https://camo.githubusercontent.com/b454e4ea736aa324fd7f05ce47ddb5d4a4745fb0b9f4b1ea5b8d657a38129f35/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64363037306530622d323030382d343262372d613265642d6537313839383135666439312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/da68ab1e-0d70-4042-8f48-c4995df72c6d)

This package is compliant with [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) and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

Simple CSS Sprites generator.

Requirements
------------

[](#requirements)

The following versions of PHP are supported:

- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0

Installation
------------

[](#installation)

### Phar file

[](#phar-file)

Download the [cssprites.phar](https://github.com/Benoth/cssprites/releases/download/1.0.1/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)

```
composer global require benoth/cssprites
```

Usage
-----

[](#usage)

### Short version

[](#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

[](#long-version)

@todo

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/Benoth/cssprites/blob/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

2

Last Release

3805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f504a912e2ce0089dda1b1fd22e1da40fe19a4457c9491ee556989e25d263626?d=identicon)[Benoth](/maintainers/Benoth)

---

Top Contributors

[![lvancrayelynghe](https://avatars.githubusercontent.com/u/1170965?v=4)](https://github.com/lvancrayelynghe "lvancrayelynghe (19 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

css-sprites-generatorphar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/benoth-cssprites/health.svg)

```
[![Health](https://phpackages.com/badges/benoth-cssprites/health.svg)](https://phpackages.com/packages/benoth-cssprites)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
