PHPackages                             gcgov/framework-service-user-crud - 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. [Framework](/categories/framework)
4. /
5. gcgov/framework-service-user-crud

ActiveFramework-service[Framework](/categories/framework)

gcgov/framework-service-user-crud
=================================

Implement standard CRUD routes to manage the user collection. Even if your app doesn't provide a custom user model (`\\app\\models\\user`), your auth or database service may provide you with a standard user model that implements (`\\gcgov\\framework\\interfaces\\auth\\user`).

v1.1.0(3w ago)045MITPHPPHP &gt;=8.1CI failing

Since Aug 7Pushed 3w ago1 watchersCompare

[ Source](https://github.com/gcgov/framework-service-user-crud)[ Packagist](https://packagist.org/packages/gcgov/framework-service-user-crud)[ RSS](/packages/gcgov-framework-service-user-crud/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)DependenciesVersions (8)Used By (0)

User CRUD Service
=================

[](#user-crud-service)

Service to extend gcgov/framework
---------------------------------

[](#service-to-extend-gcgovframework)

### Primary purpose

[](#primary-purpose)

- Implement standard CRUD routes to manage the user collection. Even if your app doesn't provide a custom user model (`\app\models\user`), your auth or database service may provide you with a standard user model that implements (`\gcgov\framework\interfaces\auth\user`).

### User Model Standard and Customization

[](#user-model-standard-and-customization)

- The class fully qualified domain name returned by `\gcgov\framework\services\request::getUserClassFqdn()` shall be used to select the correct user model for purposes of authentication services and the user crud service. The class returned by `request::getUserClassFqdn` must implement `\gcgov\framework\interfaces\auth\user`. It will return the first class available in this list, in order.
    1. `\app\models\user`
    2. Database provider user model
        - `\gcgov\framework\services\mongodb\models\auth\user`

### Impact to application

[](#impact-to-application)

- **Router**
    - **User Routes** Adds standard CRUD user controller that will interface with the application's user model.
        - Adds route `/user` - GET all users; Required Roles: `User.Read`
        - Adds route `/user/{id}` - GET one user by id or 'new'; Required Roles: `User.Read`
        - Adds route `/user/{id}` - POST save user; Required Roles: `User.Read`, `User.Write`
        - Adds route `/user/{id}` - DELETE user; Required Roles: `User.Read`, `User.Write`
    - Adds authentication guard
        - All routes in app with authentication=true will be guarded by this guard. The HTTP Authorization header is required and it's access token is validated by the jwt service.
        - Provided user routes require authentication and `User.Read`/`User.Write` roles.

Installation:
-------------

[](#installation)

- Require using Composer
- Add namespace `\gcgov\framework\services\usercrud` to `\app\app->registerFrameworkServiceNamespaces()`

Implementation
--------------

[](#implementation)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance94

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~345 days

Total

4

Last Release

26d ago

### Community

Maintainers

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

---

Top Contributors

[![andrewsauder](https://avatars.githubusercontent.com/u/1380472?v=4)](https://github.com/andrewsauder "andrewsauder (7 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (3 commits)")

### Embed Badge

![Health badge](/badges/gcgov-framework-service-user-crud/health.svg)

```
[![Health](https://phpackages.com/badges/gcgov-framework-service-user-crud/health.svg)](https://phpackages.com/packages/gcgov-framework-service-user-crud)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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