PHPackages                             crims/portal-api - 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. crims/portal-api

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

crims/portal-api
================

Centralized authentication and middleware library for CRIMS

1.0.2(3mo ago)2366AFL-3.0PHP

Since Aug 21Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/caesarb/portal-api)[ Packagist](https://packagist.org/packages/crims/portal-api)[ RSS](/packages/crims-portal-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Portal Api
==========

[](#portal-api)

- Contains Model Classes for Crims Users (Roles, Groups &amp; Shares)
- A Client to connect to our Laravel/Passport-based Authentication Server
- A User- and AuthServiceProvider to resolve `Illuminate\Support\Facades\Auth::user()`. Providers will self register once this package is required on `composer update` or `@php artisan package:discover --ansi`

Usage
-----

[](#usage)

In composer.json add to the require field:

"require": { "php": "^8.2", "crims/portal-api": "^1.0" ... }

Required Env Variables
----------------------

[](#required-env-variables)

Docker Container of the consuming microservice needs to pass:

PORTAL\_URL - Url of the Authentication Server

EXTERNAL\_ACCESS\_KEYS - Optional: listing of key-value pairs for Robot connections

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance78

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

3

Last Release

119d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/crims-portal-api/health.svg)

```
[![Health](https://phpackages.com/badges/crims-portal-api/health.svg)](https://phpackages.com/packages/crims-portal-api)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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