apicrumbs/framework 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

apicrumbs/framework

最新稳定版本:v1.0.26

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 Source tags 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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固