Download the PHP package artisanpack-ui/compliance without Composer

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

ArtisanPack UI — Compliance

Compliance toolkit for Laravel: GDPR / CCPA / LGPD consent management, data subject rights (erasure + portability), DPIA + processing-activity records, data minimization (anonymization + pseudonymization), retention policies, plus compliance monitoring and reporting.

This package is part of the ArtisanPack UI Security 2.0 split — the privacy / compliance features previously bundled inside artisanpack-ui/security 1.x live here in 2.0+.

Features

Installation

Run the migrations to create the 17 compliance tables:

(Optional) Publish the config to override table names, route prefix, deletion strategies, or default formats:

Quick start

Record consent

Check consent in a route

Process an erasure request

Run compliance checks

The default service provider listeners log every consent / erasure / data-export / check / violation event to your application log, so you get an out-of-the-box audit trail without wiring anything up yourself.

Models

Model Table Purpose
ConsentPolicy consent_policies Versioned legal text + processing details per purpose
ConsentRecord consent_records Per-user consent state with policy reference
ConsentAuditLog consent_audit_logs Immutable consent change history
ProcessingActivity processing_activities GDPR Art. 30 record of processing activities
DataProtectionAssessment data_protection_assessments Art. 35 DPIA
AssessmentRisk assessment_risks Single risk within a DPIA
RiskMitigation risk_mitigations Mitigation measure against a risk
ErasureRequest erasure_requests Art. 17 right-to-be-forgotten request
ErasureLog erasure_logs Per-handler audit row for an erasure run
PortabilityRequest portability_requests Art. 20 data portability request
ExportSchema export_schemas Schema definition for portable exports
RetentionPolicy retention_policies Rule for how long a category is retained
CollectionPolicy collection_policies Rule for what fields may be collected per purpose
ComplianceViolation compliance_violations Violation raised by a check
ComplianceCheckResult compliance_check_results Single execution of a check
ComplianceScore compliance_scores Aggregate compliance posture snapshot
ScheduledComplianceReport scheduled_compliance_reports Cron-driven recurring report

Extending

The package ships pluggable interfaces so you can add organization-specific behaviour without forking:

Register implementations in your service provider; the orchestrators discover them via the container.

AI features

The compliance package ships three optional AI trigger surfaces powered by artisanpack-ui/ai. Every one of these is high-stakes — output must be reviewed by qualified legal counsel before it goes anywhere near production.

Feature key Agent Default model Purpose
compliance.privacy_policy_draft PrivacyPolicyDraftAgent claude-opus-4-7 Draft a starter privacy policy from declared processing activities.
compliance.dpia_assistance DpiaAssistanceAgent claude-opus-4-7 Enumerate risks, mitigations, and stakeholder impacts for a DPIA.
compliance.consent_text ConsentTextSuggestionAgent claude-sonnet-4-6 Suggest plain-language consent text with reading-level score and jurisdiction notes.

Non-negotiable guardrails

Every host that surfaces these agents MUST:

  1. Render an un-dismissable "requires legal review" banner on every draft. The banner is not decorative — every agent output carries requires_legal_review: true and a review_checklist array, and both must be shown to the user before they can view the body.
  2. Gate viewing the draft behind an acknowledgement checkbox. Users cannot see the generated content until they confirm they understand the draft is not legal advice.
  3. Never overwrite an existing draft. Persist every run as a new AiDraft row — the model itself blocks updates via a booted() guard. This preserves the full version history for legal review.

Installing the AI dependency

artisanpack-ui/ai is a soft dependency — the compliance package boots without it, and the AI surfaces stay unregistered. To enable them:

Then set your provider credentials (see the ai package README) and toggle the features in config/artisanpack/ai.php:

Triggering an agent from Livewire

Listen for the result on the browser side:

Saving a draft after acknowledgement:

The Livewire component rejects any save where metadata.acknowledged is not true.

Triggering from React or Vue

Hit the REST endpoints directly — they are mounted at /api/v1/compliance/ai/* and gated by auth:sanctum:

Endpoint Method Purpose
/api/v1/compliance/ai/features GET Feature-toggle state map.
/api/v1/compliance/ai/privacy-policy-draft POST Run PrivacyPolicyDraftAgent.
/api/v1/compliance/ai/dpia-assistance POST Run DpiaAssistanceAgent.
/api/v1/compliance/ai/consent-text POST Run ConsentTextSuggestionAgent.

Every response follows the shape { feature: string, output: object } on success or { feature: string, error: string, message: string } on failure. Error codes: feature_disabled (403), missing_credentials (503), invalid_input (422), internal_error (500).

Documentation

Requirements

Sibling packages

Package Scope
artisanpack-ui/security-full Meta-package — pulls in the full security suite (all seven packages below) in a single require
artisanpack-ui/security Core: input sanitization, output escaping, KSES, CSP, security headers
artisanpack-ui/rbac Roles, permissions, hierarchy, Blade directives, Gate integration
artisanpack-ui/security-auth 2FA, password complexity, account lockout, sessions
artisanpack-ui/security-advanced-auth WebAuthn, SSO, social login, biometric, device fingerprinting
artisanpack-ui/secure-uploads File validation, malware scanning, signed-URL serving
artisanpack-ui/security-analytics Event logging, anomaly detection, SIEM, dashboards

License

MIT — see LICENSE.

Contributing

As an open-source project, this package is open to contributions from anyone. Please read through the contributing guidelines to learn more about how you can contribute to this project.


All versions of compliance with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
artisanpack-ui/core Version ^1.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 artisanpack-ui/compliance contains the following files

Loading the files please wait ...