PHPackages                             vitorsreis/sift - 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. vitorsreis/sift

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

vitorsreis/sift
===============

AI-optimized PHP tool wrapper with intelligent output control.

v1.0.0(1mo ago)101↓100%MITPHPPHP ^8.3CI passing

Since Apr 9Pushed 1mo agoCompare

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

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

 [![Sift](resources/logo.svg)](resources/logo.svg)

 **AI-optimized PHP tool wrapper with intelligent output control.**

 [![PHP Version](https://camo.githubusercontent.com/0473d3c50b3dcd3865707f9134dbc8c2c039aa284fcdd2df91b399861c7a0f0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669746f7273726569732f736966743f636f6c6f723d373737626234)](https://packagist.org/packages/vitorsreis/sift) [![Packagist Downloads](https://camo.githubusercontent.com/92bde9514e66489cf4a5003a92e5227864e51a1fa924ea7245edd344c79c9153/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669746f7273726569732f736966743f636f6c6f723d323536336562)](https://packagist.org/packages/vitorsreis/sift) [![Tests](https://camo.githubusercontent.com/1ea3c45c54ca57b3eb7de5e93c95919d6e6105e850bf4ff35d086ac2888e35f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7669746f7273726569732f736966742f63692e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473)](https://github.com/vitorsreis/sift/actions/workflows/ci.yml) [![License](https://camo.githubusercontent.com/70e630a6a95b611244735410049920d5017a05aff19912622546202ad2af69bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7669746f7273726569732f736966743f636f6c6f723d313661333461)](https://github.com/vitorsreis/sift/blob/master/LICENSE.md)

[![Sift preview](resources/preview.svg)](resources/preview.svg)

---

Sift is a complete PHP CLI wrapper that provides controlled execution of PHP tools with structured, token-optimized output designed specifically for AI agents and automated workflows.

Why Sift
--------

[](#why-sift)

- **Token Reduction**: Dramatically reduce token consumption with intelligent output sizing
- **Complete Control**: Only pre-mapped commands and arguments are allowed
- **Smart Rendering**: Three output modes tuned for different needs (compact/normal/full)
- **Standardized Output**: Unified structure across all tools
- **Process Visibility**: Optional real-time progress display that doesn't affect final output

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

[](#installation)

Install Sift as a development dependency:

```
composer require --dev vitorsreis/sift
```

Or download the [latest PHAR release](https://github.com/vitorsreis/sift/releases).

Quick Start
-----------

[](#quick-start)

Initialize a project config:

```
vendor/bin/sift init
```

Run a tool through Sift:

```
vendor/bin/sift phpstan analyse src
```

AI Setup
--------

[](#ai-setup)

If you use coding agents, you can reference [AI\_INSTRUCTIONS.md](docs/AI_INSTRUCTIONS.md) from your project's AI instructions so the agent learns to use Sift in a token-efficient way.

Example note in `AGENTS.md`:

```
Use the [Sift Instructions](vendor/vitorsreis/sift/docs/AI_INSTRUCTIONS.md) before running tests, linters, static analysis, and other supported PHP tools.
```

Supported Tools
---------------

[](#supported-tools)

- `phpunit` - PHPUnit test runner
- `pest` - Pest PHP testing framework
- `paratest` - Parallel testing
- `phpstan` - Static analysis
- `phpcs` / `phpcbf` - Code standards checking
- `psalm` - Static analysis tool
- `rector` - Automated refactoring
- `pint` - Laravel Pint code formatter
- `composer` - Composer package manager `audit`, `licenses`, `outdated`, and `show` subcommands

Documentation
-------------

[](#documentation)

**[Full Documentation](docs/README.md)**

License
-------

[](#license)

Released under the [MIT license](LICENSE.md).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

31d ago

### Community

Maintainers

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

---

Top Contributors

[![vitorsreis](https://avatars.githubusercontent.com/u/97206761?v=4)](https://github.com/vitorsreis "vitorsreis (131 commits)")

---

Tags

agentaicliphptoolingphpcliaiAgenttooling

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/vitorsreis-sift/health.svg)

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

###  Alternatives

[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[renoki-co/php-helm

PHP Helm Processor is a process wrapper for Kubernetes' Helm v3 CLI. You can run programmatically Helm v3 commands, directly from PHP, with a simple syntax.

1310.5k](/packages/renoki-co-php-helm)

PHPackages © 2026

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