PHPackages                             apurba-labs/laravel-agl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. apurba-labs/laravel-agl

ActiveLibrary[Security](/categories/security)

apurba-labs/laravel-agl
=======================

Agentic Governance Layer for Laravel 13

v0.1.1(2mo ago)145MITPHPPHP ^8.4

Since May 11Pushed 2mo agoCompare

[ Source](https://github.com/apurba-labs/laravel-agl)[ Packagist](https://packagist.org/packages/apurba-labs/laravel-agl)[ RSS](/packages/apurba-labs-laravel-agl/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Laravel AGL (Agentic Governance Layer)
======================================

[](#laravel-agl-agentic-governance-layer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/31ad3343932208a37ac8eea50ed9320c00adc03774ff2636ab8456e454c4f2df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170757262612d6c6162732f6c61726176656c2d61676c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apurba-labs/laravel-agl)[![Total Downloads](https://camo.githubusercontent.com/ee91be5c5b27a49ab2ebce1cb77448b3ce6b9f6c0612a4e3f9d0bf350999e71c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6170757262612d6c6162732f6c61726176656c2d61676c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apurba-labs/laravel-agl)

Laravel AGL is a governance-first framework for building AI-assisted workflows in Laravel applications.

It helps developers add:

- AI reasoning pipelines
- policy enforcement
- human approval flows
- risk scoring
- governance audit trails

to applications powered by Gemma, Ollama, or other LLMs.

Built for:

- enterprise approval systems
- institutional workflows
- compliance-sensitive applications
- local/private AI deployments

---

Why Laravel AGL?
================

[](#why-laravel-agl)

Most AI integrations focus only on generation.

Laravel AGL focuses on governance.

Instead of allowing agents to operate without boundaries, Laravel AGL introduces:

- policy-aware reasoning
- approval escalation
- audit visibility
- risk-aware execution

This enables organizations to safely integrate AI into sensitive workflows.

---

Features
========

[](#features)

- Local AI reasoning support
- Policy-based workflow enforcement
- Human-in-the-loop escalation
- Risk scoring pipelines
- Governance audit logging
- Laravel-native developer experience
- Midnight ZK-proof integration hooks

---

Installation
============

[](#installation)

```
composer require apurba-labs/laravel-agl
```

---

Quick Start
===========

[](#quick-start)

```
use ApurbaLabs\Agl\Facades\AGL;

$result = AGL::policy('alumni-verification')
    ->requireZkProof()
    ->evaluate([
        'name' => 'John Doe',
        'graduation_year' => 2010,
    ]);

if ($result['approved']) {
    // Continue workflow
}
```

---

Example Use Cases
=================

[](#example-use-cases)

- Alumni verification systems
- AI-assisted approval workflows
- NGO transparency platforms
- Financial governance pipelines
- Internal compliance systems

---

Philosophy
==========

[](#philosophy)

Laravel AGL is built around a simple principle:

> “AI can recommend. Governance decides.”

---

Related Projects
================

[](#related-projects)

ProjectPurpose[`gotihub-agl`](https://github.com/apurba-labs/laravel-agl)Full governance platform[`gotihub-midnight-bridge`](https://github.com/apurba-labs/laravel-iam)Midnight ZK-proof integration[`laravel-iam`](https://github.com/apurba-labs/gotihub-midnight-bridge)Identity &amp; role governance[`laravel-approval-engine`](https://github.com/apurba-labs/laravel-approval-engine)Approval Workflow Engine---

License
=======

[](#license)

MIT License

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

69d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf451535411e28149e4b7f65d90625f54be2dc4f9a37bd119eee6204d3f73566?d=identicon)[apurbasingh](/maintainers/apurbasingh)

---

Tags

middlewarelaravelsecurityaillmcompliancegovernanceagentic-ai

### Embed Badge

![Health badge](/badges/apurba-labs-laravel-agl/health.svg)

```
[![Health](https://phpackages.com/badges/apurba-labs-laravel-agl/health.svg)](https://phpackages.com/packages/apurba-labs-laravel-agl)
```

###  Alternatives

[laravel-chronicle/core

Tamper-evident audit ledger for Laravel applications.

1213.7k7](/packages/laravel-chronicle-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
