apicrumbs/framework
Composer 安装命令:
composer require apicrumbs/framework
包简介
High-signal RAG context for PHP AI agents.
README 文档
README
🍪 ApiCrumbs Framework
The Wikipedia of Context for the PHP Ecosystem.
ApiCrumbs is a community-driven Data Logistics Layer. It solves the "Dirty Data" problem by refining messy APIs, 500MB+ CSVs, and web scrapes into High-Signal Markdown "Crumbs" designed specifically for LLM context windows.
Our mission: 10,000 community-maintained Crumbs to ground AI reasoning in reality.
🚀 Quick Start (XAMPP 8.2 Optimized)
ApiCrumbs is built for local-first development. It natively solves the "cURL Error 60" SSL handshake issue on Windows using the Native CA Store.
1. Installation
bash
composer require apicrumbs/framework
2. Initialize the Framework
php
require 'vendor/autoload.php';
use ApiCrumbs\Framework\ApiCrumbs;
use ApiCrumbs\Crumbs\Geo\PostcodeCrumb;
use ApiCrumbs\Crumbs\Finance\HmrcCrumb;
$engine = new ApiCrumbs();
// Register your "Senses"
$engine->withCrumbs([
new PostcodeCrumb(),
new HmrcCrumb()
]);
// Stitch a multi-source data trail (The "Grand Stitch")
$context = $engine->stitch("SW1A1AA");
echo $context; // Token-optimized Markdown ready for your LLM
🛠️ The Foundry CLI (php crumb)
The crumb binary is your cockpit for managing the data supply chain.
🔍 Diagnose & Verify
Check your SSL health, PHP environment, and local Crumb code quality.
bash
php vendor/bin/crumb doctor
📦 Install from the Global Registry
Download any connector from the 10,000-strong Wikipedia of Context.
bash
php vendor/bin/crumb install:crumb finance/hmrc-spending
🛠️ Scaffold a New Crumb
Create a new API or high-volume CSV connector instantly.
bash
# Standard API Crumb
php vendor/bin/crumb make VatCheck finance
# Memory-lean CSV Streamer (XAMPP Safe)
php vendor/bin/crumb make GovtSpending finance --csv
📊 Bench & Trace
Prove your Token ROI and visualize the data lineage of a stitch.
bash
# See how much money you save on LLM tokens
php vendor/bin/crumb bench finance/hmrc "01234567"
# Trace the "Silent Anchors" (Source/Info tags)
php vendor/bin/crumb trace "geo/postcode,weather/meteo" "SW1A1AA"
🤝 Join the 10,000 Crumb Mission
We don't just want users; we want Librarians of Context.
💡 Suggest a New Crumb
Got an idea for a connector? Push it directly to the Global Roadmap from your terminal.
bash
php vendor/bin/crumb suggest "Companies House Officers" finance "Need to trace director relationships"
🚀 Submit Your Code
Finished a local Crumb? Submit it to the public registry and see your GitHub Avatar in the Hall of Senses.
bash
php vendor/bin/crumb submit MyNewCrumb finance
💎 Sponsoware Model
The data and code is Free. The Roadmap is Sponsored.
- Roadmap Sponsor ($250/mo): Frequency: Daily Data Freshness Access: Public GitHub Shards Requests: Custom Sector Requests
🚀 The "Request-a-Shard" Feature Top-tier sponsors don't just watch the Foundry; they direct it. Request specialized recipes (e.g., "Deep-Dive Social Care Audit" or "SME Supply Chain Health") for any UK town or sector. We print the books; you get the edge.
Sponsor the Mission on GitHub →
🏗️ Technical Pillars
- Token Refinement: Reduces raw JSON noise by ~90% using the
transform()logic. - Silent Grounding: Injects reference
Sourcetags to reduce LLM hallucinations. - Memory Safety: Uses PHP Generators for "Big Data" CSV processing on standard laptops.
- Native SSL: Zero-config cURL verification for Windows/XAMPP environments.
Ground your AI. Build the trail. Follow the crumbs.
apicrumbs/framework 适用场景与选型建议
apicrumbs/framework 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 apicrumbs/framework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 apicrumbs/framework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-25