PHPackages                             a3gz/php-cli-tools - 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. [CLI &amp; Console](/categories/cli)
4. /
5. a3gz/php-cli-tools

ActiveLibrary[CLI &amp; Console](/categories/cli)

a3gz/php-cli-tools
==================

Command line tools to prepare Web application assets for deployment

3.1.0(1y ago)02.6k1MITPHP

Since Sep 13Pushed 1y agoCompare

[ Source](https://github.com/a3gz/php-cli-tools)[ Packagist](https://packagist.org/packages/a3gz/php-cli-tools)[ RSS](/packages/a3gz-php-cli-tools/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (24)Used By (1)

PHP CLI tools
=============

[](#php-cli-tools)

A set of tools to generate distributable versions of assets.

Tools
-----

[](#tools)

### Copy

[](#copy)

Copy a list of files as per a JSON specification file.

```
{
  "/path/to/src/file": "path/to/dist/file"
}

```

Use this tool to copy files without modifying them.

Minify
------

[](#minify)

Minifies the input file and saves the result in the destination directory.

Use this tool to minify HTML, Javascript and CSS files.

If you write SASS instead of vanilla CSS, then you may want to use the next tool in the box instead.

SASS to CSS
-----------

[](#sass-to-css)

Convert all `.scss` files found in the source directory and writes the corresponding `.css` files in the target. This tool uses `leafo/scssphp` to make the conversion.

Revision
--------

[](#revision)

It may be usefull to have a revision number generated each time we build assets so we can decide whether to push changes to a server or not.

```
composer run-script cli-revision path/to/directory [file-name]

```

This tool will create a file under `path/to/directory` with a timestamp as content. If `file-name` is given, the file will have that name otherwise it will fallback to `a3gz-php-cli-tools.revision`.

If the CI pipeline uses PHPloy, we can test this file for changes to deploy the generated assets: The line below will instruct PHPloy to deploy everything under `dist/` if the revision file changed since last revision.

```
include[] = 'dist/:path/to/directory/a3gz-php-cli-tools.revision'

```

For this to work we need to add the revision file to version control.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~89 days

Recently: every ~0 days

Total

21

Last Release

696d ago

Major Versions

1.2.0 → 2.0.02019-10-05

2.4.0 → 3.0.02024-05-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/71a4c7affb109a5e4a15bdeaf55b70e268d59b0101c8ebacf899cb8e237c4950?d=identicon)[a3gz](/maintainers/a3gz)

---

Top Contributors

[![a3gz](https://avatars.githubusercontent.com/u/84980?v=4)](https://github.com/a3gz "a3gz (75 commits)")

### Embed Badge

![Health badge](/badges/a3gz-php-cli-tools/health.svg)

```
[![Health](https://phpackages.com/badges/a3gz-php-cli-tools/health.svg)](https://phpackages.com/packages/a3gz-php-cli-tools)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[concrete5/core

Concrete core subtree split

20166.1k52](/packages/concrete5-core)

PHPackages © 2026

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