Download the PHP package milpa/governance without Composer

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

Milpa

# Milpa Governance > **Governance-as-contract** for the Milpa PHP framework: immutable ADRs compile into a > **Governance Profile** and an inspectable **Governance Plan**. The core law: *an enforced gate is > only honest if its mechanism actually guards the subject* — the validator refuses a profile that > claims `enforced` without a real, allow-listed mechanism behind it. [![CI](https://github.com/getmilpa/governance/actions/workflows/ci.yml/badge.svg)](https://github.com/getmilpa/governance/actions/workflows/ci.yml) [![Packagist](https://img.shields.io/packagist/v/milpa/governance.svg)](https://packagist.org/packages/milpa/governance) [![PHP](https://img.shields.io/badge/php-%E2%89%A5%208.3-777bb4.svg)](https://www.php.net/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) [![Docs](https://img.shields.io/badge/docs-API%20reference-blue.svg)](https://getmilpa.github.io/governance/) `milpa/governance` answers one question honestly: does this system's declared law actually enforce itself, or is `enforced` just a label? It takes the full corpus of immutable, ADR-backed `GovernanceDecision` objects plus the `GovernanceProfile` that names which of them currently govern, and produces two things: a **verdict** (`GovernanceValidator::validate()` throws a `GovernanceException` the instant a claim is unproven — a duplicate decision id, a dangling `supersedes`, a supersession cycle, a reference to a decision that is `rejected` or `superseded` (declared or derived), or an `enforced` gate — the profile's own or one declared inside an ADR's policies — with no allow-listed `boundTo`) and a **plan** (`GovernanceCompiler::compile()` derives the honest `GovernancePlan` — decisions, rules, gates, and required artifacts — from that same corpus). Supersession is *derived*, never mutated: an ADR file stays `accepted` forever; ending up `superseded` is a calculated effect of the plan, so the audit trail never lies about what a decision's file actually said. ## Install ## What it is (and isn't) Milpa Governance is the **engine**: it validates and compiles a governance contract you give it — an array of `GovernanceDecision` value objects plus a `GovernanceProfile`. It is **pure**: no I/O, no wall clock, deterministic (the same input compiles to the same `GovernancePlan`, byte for byte). It does **not** read files: a host implements `GovernanceRepositoryInterface` (`decisions(): array`, `profile(): GovernanceProfile`) to load a `.milpa/governance/` directory — ADRs plus a `profile.json` — and hands the resulting objects to the engine. ## Quick example `compile()` calls `validate()` first — a plan is never built from an unproven contract — then derives, from the **full** decision corpus (including superseded and historical lineage, so the plan can show it honestly): one `GovernanceRule` per active decision, the merged `GovernanceGate`s and `RequiredArtifact`s (from the profile itself and from `kind: 'gate'` / `kind: 'artifact'` policies declared inside each ADR), and a `planHash` that binds this exact compilation. A `rejected`, `proposed`, or `deprecated` decision never enters the plan — not as a decision entry, and none of its policies govern anything. ## The value objects | Value object | Role | |-------|------------| | `GovernanceDecision` | An immutable ADR: `id`, `title`, `DecisionStatus` (`proposed`\|`accepted`\|`rejected`\|`superseded`\|`deprecated`), what it `supersedes`, what it `governs`, its derived `policies`, and a `contentHash` that seals its content. | | `GovernanceProfile` | The law's table of contents: the `decisionIds` that currently govern, the typed `GovernanceGate`s and `RequiredArtifact`s, and the profile's own `schemaVersion`/`name`/`version`. | | `GovernanceGate` | A checkpoint: an `id`, a `description`, an `EnforcementTier` (`enforced`\|`advisory`\|`convention`\|`deferred`), and the `boundTo` mechanism an `enforced` gate must name to be honest. | | `GovernancePlan` | The compiled, inspectable law: decisions (with derived `effectiveStatus`/`supersededBy`), rules, gates, artifacts, actors, assumptions, and the `planHash` that binds the whole compilation. `toArray()` is the deterministic, serializable shape. | | `GovernanceManifest` | The `{id: contentHash}` immutability seal, ksorted and hashed — `verifyIntegrity()` detects drift against the current hashes, `immutabilityViolations()` detects a decision that changed or disappeared since a prior base manifest. | | `GovernanceException` | Every contract break, one named factory per cause (`profileMissing`, `decisionDuplicate`, `supersessionCycle`, `enforcementUnproven`, …) — each message names what broke, why, and the fix. | ## Anatomy of a governance contract A contract lives in `.milpa/governance/`: immutable ADRs (`adr/*.md`) plus a `profile.json`. The engine consumes them through the host's `GovernanceRepositoryInterface` — it never reads the directory itself. This is the minimal shape (generic — an example service, not any real repo's law): **`.milpa/governance/adr/0001-tests-are-the-contract.md`** **`.milpa/governance/profile.json`** Compiling this contract yields a `GovernancePlan` whose `tests` gate is honestly `enforced` because `ci:test:unit` is an allow-listed mechanism (`GovernanceValidator::DEFAULT_BOUND_TO`). Change `boundTo` to something not on the allow-list and `validate()` throws — the wall that stops an aspirational gate. ## Requirements - PHP **≥ 8.3** - No runtime dependencies — the engine is dependency-free by design (`milpa/core` is a dev-only dependency, used solely to generate the API reference). ## Documentation **Full API reference: [getmilpa.github.io/governance](https://getmilpa.github.io/governance/)** — generated straight from the source DocBlocks and dressed with the Milpa design system. ## Contributing Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Please report security issues via [SECURITY.md](SECURITY.md), and note that this project follows a [Code of Conduct](CODE_OF_CONDUCT.md). ## License [Apache-2.0](LICENSE) © 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=governance)**.

All versions of governance with dependencies

PHP Build Version
Package Version
Requires 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/governance contains the following files

Loading the files please wait ...