PHPackages                             ceedcv-maya/shared-platform-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. ceedcv-maya/shared-platform-laravel

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

ceedcv-maya/shared-platform-laravel
===================================

Cross-cutting platform utilities for Laravel microservices: PostgreSQL FDW migrations helpers, locale providers, shared contracts.

v0.5.3(1w ago)0374↑774.3%MITPHPPHP ^8.4

Since May 25Pushed 6d agoCompare

[ Source](https://github.com/Maya-AQSS/shared-platform-laravel)[ Packagist](https://packagist.org/packages/ceedcv-maya/shared-platform-laravel)[ Docs](https://github.com/Maya-AQSS/shared-platform-laravel)[ RSS](/packages/ceedcv-maya-shared-platform-laravel/feed)WikiDiscussions main Synced 1w ago

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

ceedcv-maya/shared-platform-laravel
===================================

[](#ceedcv-mayashared-platform-laravel)

Cross-cutting platform utilities for Laravel microservices: PostgreSQL FDW migrations helpers, locale providers, shared contracts.

Part of the [ceedcv-maya/maya\_platform](https://github.com/Maya-AQSS/maya_platform) mono-repo. Distributed independently for reuse outside the Maya ecosystem.

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

[](#installation)

```
composer require ceedcv-maya/shared-platform-laravel
```

Provides PostgreSQL FDW migration helpers and locale resolution traits used across Laravel microservices.

AbstractFdwRepository
---------------------

[](#abstractfdwrepository)

Base class for repositories that provide read-only access to PostgreSQL Foreign Data Wrapper tables. Extend it and implement `modelClass()` to get `findById`, `findByIdOrFail`, `exists`, `pluckForFilter`, and `all` for free.

```
class StudyTypeRepository extends AbstractFdwRepository
{
    protected function modelClass(): string
    {
        return StudyType::class;
    }
}
```

### Excepciones documentadas

[](#excepciones-documentadas)

The following code sites are **exempt** from the mandatory repository-layer rule and may access Eloquent/DB directly:

- `AppServiceProvider::boot()` — guard/driver registration (`Auth::viaRequest`, `Auth::extend`) must run in boot, before the repository layer is available.
- Keycloak / JWT user resolver closures — resolved during the authentication bootstrap, before the HTTP kernel dispatches to a controller.
- Database connection bootstrap — `database.php` config and initial connection establishment happen before the service container is fully wired.

These exemptions are architectural and intentional; do not expand them without an explicit ADR.

TypeScript / build notes
------------------------

[](#typescript--build-notes)

PSR-4 autoload from `src/`. Service providers are registered via Laravel package discovery (no manual provider registration needed).

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

Reporting issues
----------------

[](#reporting-issues)

The canonical source lives in [Maya-AQSS/maya\_platform](https://github.com/Maya-AQSS/maya_platform). File issues there; this read-only split repo is only the published artifact.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance99

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

9

Last Release

8d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ee6f9d4827e5bc99f207850bcdf2697b65c01719e66fa4ea66d443046cbbb3e?d=identicon)[GGEdu](/maintainers/GGEdu)

---

Tags

laravelpostgresMayaplatformmicroservicesceedcvfdw

### Embed Badge

![Health badge](/badges/ceedcv-maya-shared-platform-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ceedcv-maya-shared-platform-laravel/health.svg)](https://phpackages.com/packages/ceedcv-maya-shared-platform-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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