定制 vitorsreis/sift 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vitorsreis/sift

最新稳定版本:v1.0.0

Composer 安装命令:

composer require vitorsreis/sift

包简介

AI-optimized PHP tool wrapper with intelligent output control.

README 文档

README

Sift

AI-optimized PHP tool wrapper with intelligent output control.

PHP Version Packagist Downloads Tests License

Sift preview

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

  • 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

Install Sift as a development dependency:

composer require --dev vitorsreis/sift

Or download the latest PHAR release.

Quick Start

Initialize a project config:

vendor/bin/sift init

Run a tool through Sift:

vendor/bin/sift phpstan analyse src

AI Setup

If you use coding agents, you can reference 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

  • 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

Full Documentation

License

Released under the MIT license.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固