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.0.3(2y ago)039MITPHPPHP &gt;=8.1

Since Aug 7Pushed 2y 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 1mo ago

READMEChangelog (3)DependenciesVersions (5)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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Total

3

Last Release

1007d 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 (5 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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M257](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M593](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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