Download the PHP package marrow/ai-context without Composer

On this page you can find all versions of the php package marrow/ai-context. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-context

Marrow # Marrow AI Context Generates `AGENTS.md` — a live, accurate map of a [Marrow](https://github.com/marrow-framework/core) app for AI coding agents and human contributors. [![CI](https://img.shields.io/github/actions/workflow/status/marrow-framework/ai-context/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/marrow-framework/ai-context/actions/workflows/ci.yml) [![Packagist Version](https://img.shields.io/packagist/v/marrow/ai-context?style=flat-square&label=packagist)](https://packagist.org/packages/marrow/ai-context) [![Packagist Downloads](https://img.shields.io/packagist/dt/marrow/ai-context?style=flat-square&color=blue)](https://packagist.org/packages/marrow/ai-context) [![PHP 8.2+](https://img.shields.io/badge/PHP-8.2%2B-777BB4?style=flat-square&logo=php&logoColor=white)](https://php.net) [![License MIT](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)](LICENSE)

Generates AGENTS.md — a live, accurate map of an Marrow app (modules, routes, config) plus Marrow-specific conventions and gotchas — for AI coding agents (Claude Code, Cursor, Copilot, ...) and human contributors to read before exploring the codebase.

ai:context is available immediately after composer require — no manual registration step, no config file. The package declares its own module via extra.marrow.modules in its own composer.json, picked up automatically by Marrow's package auto-discovery at boot.

Why

An agent (or a new contributor) exploring an unfamiliar codebase burns a lot of turns re-discovering things a maintainer already knows: which routes exist, which modules are actually active (not just the ones listed in config/modules.php — package auto-discovery adds more), where the framework's own documentation actually lives once it's a vendor/ dependency rather than a monorepo checkout, and a handful of Marrow-specific behaviors that aren't obvious from reading any single file in isolation. AGENTS.md front-loads all of that.

What it generates

Re-run it after adding/removing a route or module — it always overwrites the whole file, so the live sections never drift from reality. The static conventions section doesn't change between runs; only the introspected data does.

AGENTS.md has five sections:

  1. App — name, environment, Marrow version, PHP version.
  2. Enabled modules — every module actually registered right now, including ones no config/modules.php entry mentions (auto-discovered from an installed package), with their imports/exports/commands.
  3. Routes — method, URI, name, controller action, and middleware for every registered route (same data as php forge route:list --json).
  4. Config files present — every file under config/.
  5. Framework documentation — this package locates the installed marrow/framework package's own docs/ directory (by reflecting on a framework class's file location — works whether it's a real Composer install or a symlinked path repository) and reads every .md file in it, extracting each one's title and first paragraph into an index with clickable paths. This is read from whatever documentation actually ships with the installed framework version, not a bundled copy that could drift out of sync with it.
  6. Marrow conventions & gotchas — a hand-maintained list of real, previously-undiscovered behaviors (routing being module-only, middleware colon-parameters always arriving as strings, Auditable needing manual wiring, and others) that otherwise cost real debugging time to find — its doc cross-references also resolve to the actual installed path.

If the framework's docs/ directory can't be located (an install that excludes docs from the package, for instance), section 5 is skipped and a warning is printed — the rest of the file is still written normally.

Requirements

PHP 8.2+, marrow/framework.

License

MIT — see LICENSE.


Made with ❤️ by [Aure Dulvresse](https://github.com/AureDulvresse)

All versions of ai-context with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
marrow/framework Version ^3.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marrow/ai-context contains the following files

Loading the files please wait ...