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.5k1MITPHP

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 1mo ago

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

36

—

LowBetter than 82% of packages

Maintenance34

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

650d 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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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