Download the PHP package milpa/framework without Composer

On this page you can find all versions of the php package milpa/framework. 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 framework

Milpa

# milpa/framework The `composer create-project` starting point for a Milpa app: a runtime where **every capability is a declared Operation**, reachable from the terminal, from MCP and from a TUI at once. No database. No web framework. No command framework. What you get is a substrate an agent can operate, and a plugin system to grow it. ## What `coa` is `coa` does not implement any command. It boots the kernel, collects the operations that packages and plugins declared, projects them onto the terminal and runs one: That listing is **derived**, not written. Install a plugin that declares operations and they appear — in `coa`, in the MCP tool registry, and in a TUI — with no edit to any file of this app. ## The one idea A capability is declared **once**, as an `Operation`: a name, a description, an input schema, a handler, and whether it mutates. Return it from a plugin's `operations()` and you are done. A **projector** turns that declaration into each surface's own shape — a command, an MCP tool, a TUI form — and a **renderer** materialises it. Neither of them is something you write. The corollary is the point: you never write the same capability twice, and you cannot have a capability that the terminal offers and an agent cannot reach. ## Consent is part of the declaration `mutating` says the operation changes something. `requiresConfirmation` says the change cannot be undone, and on the terminal that means a **signature over this exact call** — the operation, these arguments, this host: The declaration travels with the operation, so every surface applies the same rule. It is not a flag the terminal invented. ## Two screens `shell` lists the operations grouped by whether they read or change something, opens one with Enter, lets you fill its fields and runs it — the same coercion and the same verdict the CLI uses. An operation that demands a **signature** is not run from there: a signature names *this* call and is produced with a key that lives outside the screen, so the form refuses and prints the exact `coa … --sign` line instead. `Esc` goes back. Neither is an operation, and neither pretends to be: an operation runs with what it was given and answers. These converse. Piped or in CI they print one frame and exit — whether there is a terminal is a fact of the destination, not of the screen. ## The agent `milpa/ai-gateway` ships the loop that alternates model ↔ tools. `coa agent` is the line that calls it, and what it hands the model is not a separate catalogue: it is **this app's operations**, the same ones an MCP client sees. Without a key it says so and stops. There is no demo mode: an agent that answers something plausible without having called anything teaches you to trust answers nobody produced. The answer comes back with how many steps it took and how many tools it had, because "the agent replied" does not distinguish using your app from replying from memory. **Your own model works too.** Point it at anything OpenAI-compatible — an Ollama on your LAN, a vLLM, a proxy — and no token leaves the building: A declared endpoint wins over any provider key sitting in the environment: whoever pointed their agent at a local model does not want a forgotten `ANTHROPIC_API_KEY` sending it elsewhere — and billing them. It is a **terminal** operation only. An agent running over HTTP with the server's credentials is a different decision, and this template does not take it for you. ### The agent is governed, and 0.13 closed the loop that measurement demanded Three authorities sit between the model and your app, each answering exactly one question: - **The floor** (`SessionPolicy`): does this need permission or a signature? No autonomy mode skips a signature. - **The intent contract** (ADR-0044): does a concrete operation even exist yet? An operation that declares `namedTarget` gets enforced **before** the permission policy — `auto` waives asking permission, not understanding what was asked. An unnamed target pauses the session with a formal question that carries the operation and its arguments; the human's *yes* names that target and only that target. - **The second opinion** (`agent.secondOpinion` in `config/app.php`): does this concrete call go beyond what was asked? Its denial removes the option from the session's table and the loop continues with a different world. And one rule that keeps all of it honest: **operations that adjudicate sessions are not tools of the adjudicated**. `agent:answer` and `agent:mode` exist so a human governs the agent — they are filtered out of the agent's own catalogue, because an agent that can answer its own pause or raise its own autonomy is not governed; it is narrating governance. When `agent.conditionalCatalog` is on, the run's result also says what the classifier decided (`classifier: reads|changes|no-verdict|unreachable`) — the same reason `compacted` is reported: anything that silently changes what the model sees, gets said. ## Serving operations over HTTP The fourth surface. `config/http.php` names which operations get a route — and it is **empty**: `coa` and MCP run on the machine of whoever invokes them; an HTTP route can be called by anyone who reaches the server. Exposing everything by default would turn installing a plugin into publishing an API nobody decided on. Same doctrine as `config/plugins.php`: what runs is a versioned decision. ### Identity, so the protected ones can be served too Most operations worth exposing declare `scopes` — all twelve `plugins.*` do. This app wires the three pieces that make them servable, in `config/boot.php`: 1. a **token store** (`milpa/data`, file-backed by default — change the driver in `config/app.php`), 2. a **verifier** that turns `Authorization: Bearer …` into an actor with scopes, 3. a **policy** (`milpa/auth`) that decides whether that actor may run *this* operation. Mint a token, expose the operation, call it: A token with the wrong scopes gets a 403 that names what was missing. `token:list` never prints the secret or its hash, `token:revoke` takes effect on the next request, and the three token operations are **terminal-only**: whoever can mint a token can mint one with every scope. Remove those three lines from `config/boot.php` and the app still runs whole over the terminal and MCP — it just cannot expose anything that declares scopes, and the boot says so. ## Hooks Every operation — from the terminal, the TUI, HTTP or MCP — runs through one seam that announces it: `operation.executed` fires on **every** outcome — answered, served from a listener, stopped, thrown. An audit trail with holes is worse than none: it teaches you to trust an incomplete list. And the event carries the surface it came in through, because the same operation arriving over HTTP and on the machine's own terminal does not always deserve the same answer. ## What is opt-in, and why The box is deliberately small. Two examples of what it does **not** include: - **Filesystem and shell primitives.** A framework that installs an agent with a shell by default is a security decision, not a packaging one. `read`/`write`/`edit`/`grep`/`shell` live in a separate plugin you install on purpose. - **The remote plugin operations.** `plugins:list`, `:show`, `:enable` and `:disable` are here. `:install`, `:update` and `:remove` appear only once you wire a `PluginInstallerInterface` — an app that never reaches the network does not grow the operations that would. ## Layout `config/plugins.php` is a list, not a scan. What runs in this app is a versioned decision — a plugin that installs itself from the network is an attack surface, not a convenience. ## Coming from an app you created before 0.21 Your app is not broken — it boots exactly as it did and every command still works. It is *frozen*: 26 of the 29 files in its `src/` were copied in the day you created it, and copied code never receives an improvement again. From 0.21 those files ship as `milpa/app-runtime` instead. **[UPGRADING.md](UPGRADING.md)** walks the migration: how to find out whether you edited any of them first, then four steps and one check. Verified on a real 0.20.0 app — 29 operations before, the same 29 after. ## Coming from `milpa/skeleton` `milpa/skeleton` was the previous `composer create-project` target and is now **abandoned** — this package replaces it. Two entry points both saying *start here* is a second source of truth, and the one a newcomer lands on decides what they believe Milpa is. An app you already created from the skeleton keeps working: what it runs is your code, not that package. If you are starting a new one, start here. What the skeleton brought and this does not are `milpa/auth` and `milpa/data` — add them when your app needs them, which is the point of a floor you build up from. Its one unique capability, the HTTP projection of operations, now lives in `milpa/console` (with the auth-backed policy in `milpa/admin`). ## What this is NOT It is not a web framework and it will not become one. There is no ORM, no template engine, no router-with-batteries. `milpa/data` is here for one job — storing API tokens — and its four drivers (file, sqlite, mysql, memory) are as much persistence as this floor takes a position on. `milpa/http` ships routing **contracts**; bring your own PSR-7 implementation (this app ships `nyholm/psr7`) and your own persistence. ## License Apache-2.0 © Rodrigo Vicente - TeamX Agency --- Milpa is designed, built, and maintained by **[Rodrigo Vicente - TeamX Agency](https://teamx.agency/?utm_source=github&utm_medium=readme&utm_campaign=milpa&utm_content=framework)**.

All versions of framework with dependencies

PHP Build Version
Package Version
Requires milpa/app-runtime Version ^0.4 || ^0.5 || ^0.6 || ^0.7
milpa/command Version ^0.5 || ^0.6
milpa/console Version ^0.7
milpa/core Version ^0.6.2 || ^0.7
milpa/live-tui Version ^0.4 || ^0.5 || ^0.6 || ^0.7
milpa/plugin Version ^0.8 || ^0.9
milpa/runtime Version ^0.7.1
milpa/tool-runtime Version ^0.9
nyholm/psr7 Version ^1.8
nyholm/psr7-server Version ^1.1
php Version >=8.3
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 milpa/framework contains the following files

Loading the files please wait ...