PHPackages                             pirabyte/erecht24-laravel - 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. pirabyte/erecht24-laravel

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

pirabyte/erecht24-laravel
=========================

Laravel integration for the eRecht24 Rechtstexte SDK.

v1.0.4(1mo ago)08[1 PRs](https://github.com/pirabyte/erecht24-laravel/pulls)MITPHPPHP ^8.2CI passing

Since Jul 4Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (7)Used By (0)

eRecht24 Laravel
================

[](#erecht24-laravel)

Laravel integration for the `erecht24/rechtstexte-sdk` package.

This package is a thin service layer around the official SDK. It fetches supported legal texts and returns DTOs so your application can decide how to render, cache, store, or publish them.

Installation
------------

[](#installation)

```
composer require pirabyte/erecht24-laravel
```

Publish the configuration file:

```
php artisan vendor:publish --tag=erecht24-config
```

Configuration
-------------

[](#configuration)

Set the required API key:

```
ERECHT24_API_KEY=
```

Optional configuration:

```
# Only set this if eRecht24 provided a plugin key for your integration.
ERECHT24_PLUGIN_KEY=
ERECHT24_LANGUAGE=de
ERECHT24_CACHE_ENABLED=true
ERECHT24_CACHE_TTL=3600
```

`ERECHT24_PLUGIN_KEY` may be left unset when you only have an API key. `ERECHT24_CACHE_STORE` and `ERECHT24_CACHE_PREFIX` are also available in the published config.

Usage
-----

[](#usage)

Use the service directly:

```
use Pirabyte\ERecht24Laravel\ERecht24;
use Pirabyte\ERecht24Laravel\Enums\LegalTextType;

$data = app(ERecht24::class)->document(LegalTextType::PrivacyPolicy, 'de');

echo $data->html;
```

Or use the facade:

```
use Pirabyte\ERecht24Laravel\Facades\ERecht24;

$html = ERecht24::privacyPolicy()->html;
```

Available service methods:

```
$erecht24->imprint();
$erecht24->privacyPolicy();
$erecht24->privacyPolicySocialMedia();
$erecht24->document(LegalTextType::Imprint);
$erecht24->html(LegalTextType::PrivacyPolicy);
$erecht24->isConfigured();
$erecht24->clearCache();
```

Supported Documents
-------------------

[](#supported-documents)

Only document types supported by `erecht24/rechtstexte-sdk` are exposed:

- `imprint`
- `privacy_policy`
- `privacy_policy_social_media`

Terms of Service documents are not supported by this package because the SDK does not expose them.

Caching
-------

[](#caching)

Successful responses are cached when `erecht24.cache.enabled` is true. Cache keys use this format:

```
erecht24:privacy_policy:de

```

Use `clearCache()` to forget all supported document cache keys, or pass a `LegalTextType` to clear a single document type.

Disclaimer
----------

[](#disclaimer)

Pirabyte 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 is not legal advice. Users are responsible for validating their legal texts and their eRecht24 account/API setup.

License
-------

[](#license)

This wrapper package is open-sourced software licensed under the MIT license.

It depends on `erecht24/rechtstexte-sdk`, which has its own license and terms.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

48d ago

### Community

Maintainers

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

---

Top Contributors

[![felix-exon](https://avatars.githubusercontent.com/u/24978665?v=4)](https://github.com/felix-exon "felix-exon (5 commits)")

---

Tags

erecht24laravellaravel-packagelaravellegalprivacy policyeRecht24Rechtstexteimprint

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pirabyte-erecht24-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/pirabyte-erecht24-laravel/health.svg)](https://phpackages.com/packages/pirabyte-erecht24-laravel)
```

###  Alternatives

[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90157.6k](/packages/emargareten-inertia-modal)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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