PHPackages                             thiagoprz/lgpd - 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. thiagoprz/lgpd

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

thiagoprz/lgpd
==============

LGPD support package for Laravel

0.0.11(5y ago)111293MITPHPPHP ^7.1.3

Since Mar 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thiagoprz/lgpd)[ Packagist](https://packagist.org/packages/thiagoprz/lgpd)[ RSS](/packages/thiagoprz-lgpd/feed)WikiDiscussions main Synced 2d ago

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

LGPD Laravel Package
====================

[](#lgpd-laravel-package)

LGPD support package for Laravel

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

[](#installation)

`composer require thiagoprz/lgpd`

- Add service provider (only if not using package auto discovery enabled) on config/app.php:

```
...
'providers' => [
    ...
    \Thiagoprz\Lgpd\LgpdServiceProvider::class,
],
...

```

- Migrate tables:

`php artisan migrate`

- Add routes for terms implementation (api.php or web.php):

```

// LGPD CRUD resources (GET, POST, PATCH and DELETE already implemented)
Route::resource('lgpdterm', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermController');
Route::resource('lgpdtermitem', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermItemController');
Route::resource('lgpduseracceptance', 'Thiagoprz\Lgpd\Http\Controllers\LgpdUserAcceptanceController');

// LGPD Active Term
Route::get('lgpd/active', 'Thiagoprz\Lgpd\Http\Controllers\LgpdTermController@active');

```

- Publish CRUD views to implement forms and management of the Terms and acceptance items.

` php artisan vendor:publish --provider="Thiagoprz\Lgpd\LgpdServiceProvider"`

Views will be stored in `resources/views/vendor/lgpd`.

Tables
------

[](#tables)

- lgpd\_terms: LGPD terms

    ColumnTypeDescriptionNullableidbigintID (auto increment)NotermtextTerms textNopublishing\_datedatetimeDate and time when the version of the terms will become mandatoryNoversionvarcharVersion of the termsYescreated\_atdatetimeDate and time of creationNoupdated\_atdatetimeDate and time of last updateYes
- lgpd\_term\_items: LGPD terms acceptance items

    ColumnTypeDescriptionNullableidbigintID (auto increment)Nolgpd\_term\_idbigintTerm IDNotermvarchar(400)Acceptance term textNocreated\_atdatetimeDate and time of creationNoupdated\_atdatetimeDate and time of last updateYes
- lgpd\_user\_acceptance: Record of acceptance by the user

    ColumnTypeDescriptionNullableidbigintID (auto increment)Nolgpd\_term\_idbigintTerm IDNouser\_idbigintUser IDNocreated\_atdatetimeDate and time of creationNoupdated\_atdatetimeDate and time of last updateYes

Goal
----

[](#goal)

The goal of the project is to allow the creation of a text of terms and to contain one or more accepted ones containing the specificities of the terms presented. For example: in projects that have financial transactions it will often be necessary to indicate the terms of use of the tool itself plus the terms of use of the gateway or bank linked to the collection and payment process, these two terms can be presented together but ideally the system needs specify that the clauses of each have been accepted by the user.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

11

Last Release

1875d ago

### Community

Maintainers

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

---

Top Contributors

[![thiagoprz](https://avatars.githubusercontent.com/u/1896302?v=4)](https://github.com/thiagoprz "thiagoprz (12 commits)")

### Embed Badge

![Health badge](/badges/thiagoprz-lgpd/health.svg)

```
[![Health](https://phpackages.com/badges/thiagoprz-lgpd/health.svg)](https://phpackages.com/packages/thiagoprz-lgpd)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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