vitorsreis/sift
Composer 安装命令:
composer require vitorsreis/sift
包简介
Agent tooling and skills layer for PHP projects.
README 文档
README
Composer-native skills and agent-friendly tooling for PHP projects.
Sift helps PHP teams make coding agents more useful with less repeated context.
It adds two Composer-first workflows:
composer skills: install and manage reusable agent skills inside the project.composer sift <tool>: run PHP tools with compact, normalized, agent-friendly output.
Instead of pasting the same project rules, commands, testing conventions, and huge terminal logs into every session, Sift keeps instructions and tool results structured. Agents can start from a small summary and inspect stored history only when they need more detail.
Why Sift
- Manage skills through Composer for the open agent target set, including a standard shared target, Cursor, Claude Code, GitHub Copilot, Gemini CLI, OpenCode, Antigravity, Windsurf, and project or global installs.
- Reduce wasted tokens by replacing raw tool output with compact summaries and paginated history.
- Run 15+ PHP tools through one command layer.
- Keep automation safer with read-only Composer reports, dry-run refactors, safe formatter modes, blocked arguments, timeouts, and redacted history.
- Use the same core everywhere through
composer sift,composer skills,vendor/bin/sift, or the PHAR.
Quick Start
Install Sift globally:
composer global config allow-plugins.vitorsreis/sift true
composer global require vitorsreis/sift
Or install Sift in a single project:
composer config allow-plugins.vitorsreis/sift true
composer require --dev vitorsreis/sift
After installation, initialize Sift in your project:
composer sift init
Skills
Sift brings a Composer workflow for agent instructions:
composer skills find composer skills add owner/repo@skill
Supported skill sources:
- bundled skills, such as
sift; - local paths;
- GitHub shorthand, such as
owner/repo; - GitHub URLs.
Other commands include init, list, find, use, update / upgrade, and remove. In terminal mode, composer skills opens a bannered help screen and composer skills find opens an interactive search with typeahead, arrow-key selection, and Enter-to-select before install.
Without a scope flag, composer skills add installs to project skill directories, including the standard .agents/skills target for Cursor, Gemini CLI, GitHub Copilot, OpenCode, Antigravity, Amp, Replit, and other shared project installs. It accepts multi-value flags such as --agent standard cursor and --skill pr-review commit. Use --global / -g for user-level installs, --subagent reviewer for Eve subagents, or omit --agent in terminal mode to choose agents interactively; existing target folders in the current scope are preselected and Sift prompts for Project or Global scope when applicable.
Tools
Use composer sift tools list to check availability in your project and composer sift <tool> to run with compact
output.
For test runners, Sift injects machine-readable reports when needed. If the runner exits before those reports are written, the normalized payload reports the native error message and keeps raw stdout/stderr in extra.
Supported tools:
pestphpunitparatestphpstanpsalmphpcsphpcbfpintrectormagoinfectiondeptracphp-cs-fixerphpmdcomposer-require-checkercomposer-unusedparallel-lintcomposer audit|licenses|outdated|show|validate
Documentation
License
Released under the MIT license.
vitorsreis/sift 适用场景与选型建议
vitorsreis/sift 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 12, 最近一次更新时间为 2026 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「cli」 「tooling」 「Agent」 「ai」 「skills」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vitorsreis/sift 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vitorsreis/sift 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vitorsreis/sift 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Firefly III Data Import Tool.
PHP CS Fixer w/ additional fixers based off of permafrost-dev/phpcsfixer-preset
Slim starter / Slim skeleton package to boost your development with Slim framework
Generates a trait to help ease the access of custom repo methods
Alfabank REST API integration
Developer utilities for Nawasara Laravel projects: in-browser Tinker REPL, query inspector, and a quick-action launcher.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-25