PHPackages                             siriondev/consellrep - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. siriondev/consellrep

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

siriondev/consellrep
====================

Composer package per a la integració amb el procés de validació de la Identitat Digital Republicana del Consell per la República Catalana

v1.1.0(4y ago)05GPL-3.0PHPCI failing

Since Apr 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/SirionDev/consellrep-package)[ Packagist](https://packagist.org/packages/siriondev/consellrep)[ RSS](/packages/siriondev-consellrep/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Package - Identitat Digital Republicana
=======================================

[](#package---identitat-digital-republicana)

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

[](#installation)

*This package can be used with Laravel 8.0 or higher.*

Install the package via composer:

```
composer require siriondev/consellrep
```

The service provider will automatically get registered. You may manually add the service provider in your `config/app.php` file:

```
'providers' => [
    // ...
    Siriondev\ConsellRepublica\Providers\ConsellRepublicaProvider::class,
];
```

### Config and Translations

[](#config-and-translations)

You should publish the translations and the `config/cxr.php` config file with:

```
php artisan vendor:publish --tag="consellrep-config"
php artisan vendor:publish --tag="consellrep-translations"
```

### Migrations

[](#migrations)

You may also want to publish the migration to add the `idrepublicana` field into your users table:

```
php artisan vendor:publish --tag="consellrep-migrations"
```

### Clear your config cache

[](#clear-your-config-cache)

```
php artisan optimize
```

Usage
-----

[](#usage)

### Validator

[](#validator)

You can use the `idrepublicana` rule to check whether the user input is valid or not.

```
public function rules()
{
    return [
        'id' => 'required|idrepublicana'
    ];
}
```

You can also set parameters to check whether the IDR is valid, active, underaged, or just check the format.

```
public function rules()
{
    return [
        'id' => 'required|idrepublicana:active,valid,underaged,format'
    ];
}
```

### Facade

[](#facade)

You can also use the IdentitatDigitalRepublicana Facade. The `validate` method returns an object that can be used to check different attributes from the IDR.

```
use Siriondev\ConsellRepublica\Facades\IdentitatDigitalRepublicana;

class Controller extends BaseController
{
    public function register(Request $request)
    {
        $idr = IdentitatDigitalRepublicana::validate($request->id);

        if ($idr->getStatus()) {    // Request OK

            $idr->isValid();        // IDR is valid

            $idr->isActive();       // IDR is active

            $idr->isUnderaged();    // IDR is underaged

            $idr->isFormat();       // IDR format correct (C-999-99999)

        } else {

            $idr->getMessage();     // Get the error message
        }
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~41 days

Total

2

Last Release

1813d ago

### Community

Maintainers

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

---

Top Contributors

[![gerardforcada](https://avatars.githubusercontent.com/u/19436470?v=4)](https://github.com/gerardforcada "gerardforcada (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/siriondev-consellrep/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

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