Download the PHP package ovac/guardrails without Composer

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

Guardrails

Total Downloads Tests PHP Laravel

What is Guardrails?

Guardrails is an operational approvals engine for Laravel. Capture every high‑risk change, route it through the right reviewers, and apply the update only after the required signatures land. You decide which attributes are guarded, who can approve, and how many voices it takes to ship a change.

Why teams reach for Guardrails

How it fits together

  1. Mark attributes as guarded or intercept controller payloads.
  2. Use Flow::make() / FlowBuilder to describe who can sign each step.
  3. Guardrails persists the request (requests → steps → signatures) and emits events as people approve or reject.
  4. Once the final step meets its threshold, Guardrails applies the captured changes to your model for you.

Quickstart

Online Docs & Tools

Install via Composer:

  1. Register the service provider (if not auto‑discovered):

  2. Publish assets:

  3. Run migrations:

60‑Second Example

Guard a model and require a quick two‑man rule (initiator + one peer):

When the initiator supplies a justification (for example through a form field), pass it into the guardrails context before saving:

Prefer controllers? Intercept without touching models:

Configurable controller flows (no code changes)

Keep controllers tiny and let ops override steps from config/guardrails.php. The helper will (a) look for guardrails.flows.<feature>.<action>, (b) fall back to your coded flow when missing, and (c) merge handy meta defaults (like summary/hint) onto every step.

Why Teams Use It

Use Cases (with examples)

1) Publish a blog post — one more editor must approve

2) Delete a user account — two steps, different roles

3) Refund an order — one of finance OR operations

4) Sensitive setting change — peer with same permission must co‑sign

5) Multi‑step escalation — ops first, then execs

API (3 endpoints)

UI

A minimal page at /{page_prefix} consumes the API for reviewers. Publish and customize the Blade view.

Docs

Highlights worth reading next:

How It Works (Data Flow)

Keep approvals close to where changes happen (models) or intercept in controllers. Steps define who can sign and how many signatures you require.

Extending Migrations and Models

Use events like ApprovalRequestCaptured to populate new columns or meta. See Auditing & Changelog.

Search keywords: "laravel approval workflow", "laravel multi signature approvals", "human in the loop approvals", "laravel model guarded changes", "laravel approval steps thresholds", "spatie permissions approval flow", "controller intercept approvals", "two-man rule laravel".

Documentation Website

Guardrails ships build scripts instead of doc sources so the Composer install stays slim. The GitHub Pages deployment uses scripts/docs-site/build-docs-site.js to assemble a Docusaurus bundle from resources/docs on demand.

Tests & Coverage

Run the full suite with Pest (quiet mode by default):

Generate coverage locally when you need instrumentation or Clover output for CI:

See the Full Testing Guide for environment setup, Laravel Testbench tips, and additional testing recipes.

Support

If this package saves you time, please consider:


All versions of guardrails with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0 || ^12.0 || ^13.0
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 ovac/guardrails contains the following files

Loading the files please wait ...