apicrumbs/framework

High-signal RAG context for PHP AI agents.

Maintainers

Package info

github.com/apicrumbs/framework

pkg:composer/apicrumbs/framework

Fund package maintenance!

apicrumbs

Statistics

Installs: 43

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 7

v1.0.26 2026-05-07 16:05 UTC

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.