kaihempel / erecht24-laravel
Laravel integration for the eRecht24 legal texts API (imprint, privacy policy, social media privacy policy).
Requires
- php: ^8.3
- illuminate/console: ^12.0|^13.0
- illuminate/http: ^12.0|^13.0
- illuminate/routing: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- illuminate/view: ^12.0|^13.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.29
- mockery/mockery: ^1.6
- orchestra/testbench: ^10.11|^11.1
- pestphp/pest: ^3.8|^4.7
- pestphp/pest-plugin-laravel: ^3.2|^4.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.0.1
- 1.0.0
- dev-gh-issue-41
- dev-gh-issue-40
- dev-gh-issue-39
- dev-gh-issue-38
- dev-011-exceptions-troubleshooting-docs
- dev-010-german-docs-translation
- dev-009-readme-to-starlight-en
- dev-008-starlight-docs-scaffold
- dev-gh-issue-33
- dev-gh-issue-32
- dev-gh-issue-31
- dev-gh-issue-28
- dev-007-manager-resolve-language
- dev-gh-issue-7
This package is not auto-updated.
Last update: 2026-10-22 16:46:19 UTC
README
English | Deutsch
Laravel integration for the eRecht24 legal-texts API. The package keeps your imprint, privacy policy and social-media privacy policy in sync with your eRecht24 project and renders them from local files:
- eRecht24 sends a push notification to your application when a text changes.
- The push endpoint verifies the shared secret and queues a sync job.
- The job fetches the text from the API and stores it as plain HTML on a filesystem disk.
- Blade components or the
ERecht24facade read the stored file. Page views never call the API.
Requirements
- PHP 8.3 or newer
- Laravel 12 or 13
- An eRecht24 account with a project in the eRecht24 Projekt Manager, its API key and a plugin key
- A URL for your application that is reachable over the public internet (for push notifications)
- A queue worker, or
QUEUE_CONNECTION=sync - A filesystem disk for the stored texts (the default
localdisk works for a single server)
Installation
composer require kaihempel/erecht24-laravel php artisan vendor:publish --tag=erecht24-config
The service provider and the ERecht24 facade alias are auto-discovered. Publishing the config file is optional; every setting can be controlled from .env.
Quick start
APP_URL=https://www.example.com ERECHT24_API_KEY=your-api-key ERECHT24_PLUGIN_KEY=your-plugin-key
php artisan erecht24:register --write-env php artisan config:cache php artisan erecht24:status --test-push php artisan erecht24:sync
<x-erecht24::imprint />
Keep a queue worker running (php artisan queue:work) so that push notifications are processed.
Documentation
The full documentation (setup, configuration, usage, Artisan commands, push endpoint, deployment, security, troubleshooting) lives on the documentation site: https://erecht24-laravel.kuweh.de/en/
Disclaimer
This package is not affiliated with, endorsed by, or sponsored by eRecht24. eRecht24 is a trademark of its respective owner.
This package is technical integration software and not legal advice. You are responsible for the content of your legal texts and for your eRecht24 account and API setup.
License
MIT, see LICENSE.md.