PHPackages                             laranail/ai-compliance - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. laranail/ai-compliance

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laranail/ai-compliance
======================

AI compliance for Laravel apps: markdown-authored policy documents with versioning and draft/publish, consent records, provider registry, disclosure surfaces, and automated compliance checks.

00[1 PRs](https://github.com/laranail/ai-compliance/pulls)PHPCI failing

Since Jul 11Pushed 1mo agoCompare

[ Source](https://github.com/laranail/ai-compliance)[ Packagist](https://packagist.org/packages/laranail/ai-compliance)[ RSS](/packages/laranail-ai-compliance/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

laranail/ai-compliance
======================

[](#laranailai-compliance)

[![Packagist Version](https://camo.githubusercontent.com/0733f42795603ff26769b3ae8146b2cf3921d87a06deae9f9be160fe363bc8a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e61696c2f61692d636f6d706c69616e6365)](https://packagist.org/packages/laranail/ai-compliance)[![Tests](https://github.com/laranail/ai-compliance/actions/workflows/tests.yml/badge.svg)](https://github.com/laranail/ai-compliance/actions/workflows/tests.yml)[![Static analysis](https://github.com/laranail/ai-compliance/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/laranail/ai-compliance/actions/workflows/static-analysis.yml)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

> AI compliance for Laravel apps: markdown-authored policy documents with versioning and draft/publish, consent records, provider registry, disclosure surfaces, and automated compliance checks.

Requires PHP `^8.4.1 || ^8.5` and Laravel `^13.0`.

Install
-------

[](#install)

```
composer require laranail/ai-compliance
php artisan laranail::ai-compliance.install
```

The npm bindings for React/Vue apps ship in lockstep: `npm install @laranail/ai-compliance-react` (or `-vue`, or the framework-agnostic core).

Quick start
-----------

[](#quick-start)

The install command publishes the editable policy markdown, migrates, seeds the checklist, and imports every policy as published version 1.0. From there:

```
   {{-- before any model output --}}
                 {{-- the consent panel --}}
```

```
use Simtabi\Laranail\AiCompliance\Facades\AiConsent;

if (AiConsent::allows($user, 'smart_summaries')) {
    $response = AiConsent::provider('support-assistant')
        ->forSubject($user)
        ->send('POST', $endpoint, $payload);     // do-not-train flag + inference log
}
```

```
php artisan laranail::ai-compliance.audit        # run the compliance checks
```

See [Getting started](docs/getting-started.md) for the full tour.

Documentation
------------------------------------------------------

[](#documentation)

Full documentation lives at **[opensource.simtabi.com/documentation/laranail/ai-compliance](https://opensource.simtabi.com/documentation/laranail/ai-compliance/)**.

### Guides

[](#guides)

- [Installation](docs/installation.md) — requirements, install, publishing the policy files
- [Getting started](docs/getting-started.md) — the policy pipeline, endpoints, and facade in five minutes
- [Configuration](docs/configuration.md) — placeholders, locales, routes, shortcodes, tables
- [Architecture](docs/architecture.md) — how the pipeline works and why it is shaped this way
- [Release](docs/release.md) — versioning, tags, and the release pipeline

### Reference

[](#reference)

- [Policy pipeline](docs/tools/policy-pipeline.md) — files, frontmatter, shortcodes, placeholders, fallback, cache
- [Policy versioning](docs/tools/policy-versioning.md) — documents, versions, draft/publish, sync, staleness, the editing api
- [Consent](docs/tools/consent.md) — the AiConsent facade, append-only records, guests, re-consent
- [Blade components](docs/tools/blade-components.md) — disclosure, gate, policy, preferences, server-side islands
- [Livewire](docs/tools/livewire.md) — the interactive preferences panel and re-consent prompt
- [JS SDK](docs/tools/js-sdk.md) — @laranail/ai-compliance: boot client, consent api, island hydrator
- [React](docs/tools/react.md) — @laranail/ai-compliance-react bindings
- [Vue](docs/tools/vue.md) — @laranail/ai-compliance-vue bindings
- [Checklist](docs/tools/checklist.md) — the seeded items, classification, evidence, staleness, dashboard
- [Checks](docs/tools/checks.md) — the automated checks, scheduling, and alerting
- [Activity log](docs/tools/activity-log.md) — event coverage, hash chain, retention, read auditing
- [Filament](docs/tools/filament.md) — the admin plugin: policy editor, registry, consent log, checklist
- [Exports and reports](docs/tools/exports-and-reports.md) — pseudonymized log exports, the auditor report, re-consent

### Recipes

[](#recipes)

- [Customizing policies](docs/recipes/customizing-policies.md) — publish and edit the shipped markdown
- [Translating policies](docs/recipes/translating-policies.md) — add locales and track re-translation work
- [Gating features by consent](docs/recipes/gating-features-by-consent.md) — allows() and the ai.consent middleware
- [Writing custom checks](docs/recipes/writing-custom-checks.md) — automate your own checklist items
- [Do-not-train enforcement](docs/recipes/do-not-train-enforcement.md) — consent-aware provider calls
- [Auditor handover](docs/recipes/auditor-handover.md) — the evidence bundle in four commands

Stability
---------

[](#stability)

Pre-1.0: the API surface described in the docs is what 1.0 will ship; the boot payload carries a `contract` integer so the JS packages fail loudly on mismatch rather than misreading state. No breaking config or schema changes are planned inside 1.x.

Local development
-----------------

[](#local-development)

`composer install` resolves everything from Packagist; `composer test`, `composer lint`, `npm install && npx vitest run`. See [CONTRIBUTING.md](CONTRIBUTING.md).

Sister packages
---------------

[](#sister-packages)

Part of the [laranail](https://github.com/laranail) family: [package-tools](https://github.com/laranail/package-tools) (the service provider base this package builds on), [console](https://github.com/laranail/console), and [db-tools](https://github.com/laranail/db-tools).

Community
---------

[](#community)

Questions and ideas: [GitHub Issues](https://github.com/laranail/ai-compliance/issues).

Contributing &amp; security
---------------------------

[](#contributing--security)

See [CONTRIBUTING.md](CONTRIBUTING.md). Report vulnerabilities per [SECURITY.md](SECURITY.md).

License
-------

[](#license)

[MIT](LICENSE) © Simtabi LLC.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance60

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3108393?v=4)[Simtabi](/maintainers/simtabi)[@simtabi](https://github.com/simtabi)

---

Top Contributors

[![imanimanyara](https://avatars.githubusercontent.com/u/19682005?v=4)](https://github.com/imanimanyara "imanimanyara (1 commits)")

---

Tags

aicomplianceconsenteu-ai-actgdprlaravelossphp

### Embed Badge

![Health badge](/badges/laranail-ai-compliance/health.svg)

```
[![Health](https://phpackages.com/badges/laranail-ai-compliance/health.svg)](https://phpackages.com/packages/laranail-ai-compliance)
```

###  Alternatives

[myclabs/array-comparator

Array comparator

20205.0k](/packages/myclabs-array-comparator)[anlutro/menu

Dynamic menu builder.

191.7k1](/packages/anlutro-menu)

PHPackages © 2026

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