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

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

nomanur/sanctum-crud
====================

a sanctum starter for laravel

v1.0.4(2y ago)197↓87.5%MITPHPPHP ^7.4|^8.1

Since Oct 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nomanur/sanctum-crud)[ Packagist](https://packagist.org/packages/nomanur/sanctum-crud)[ Docs](https://github.com/nomanur/sanctum-crud)[ RSS](/packages/nomanur-sanctum-crud/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

A Laravel starter kit with sanctum
==================================

[](#a-laravel-starter-kit-with-sanctum)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2c48f1fc101cd111b3b7cc773f4576d55d3d2d5c3bb2b0fccdd2b5b994417a95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6d616e75722f73616e6374756d2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nomanur/sanctum-crud)[![Total Downloads](https://camo.githubusercontent.com/af1f46318361e09c225e82156597fb03ded4d12f0c358b6bde22bfb22211503d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6d616e75722f73616e6374756d2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nomanur/sanctum-crud)[![GitHub Actions](https://github.com/nomanur/sanctum-crud/actions/workflows/main.yml/badge.svg)](https://github.com/nomanur/sanctum-crud/actions/workflows/main.yml/badge.svg)

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

[](#installation)

You can install the package via composer:

```
composer require nomanur/sanctum-crud
```

Usage
-----

[](#usage)

Add this in User Model

```
    public function roles() {
        return $this->belongsToMany(Role::class, 'user_roles');
    }
```

After That

```
    php artisan migrate
```

run that to generate migration and which will also seed role in roles table.

```
    php artisan sanctumcrud:route
```

all the routes will be added in your routes\\api.php and check php artisan route:list to see all the routes.

After That

```
    php artisan vendor:publish
```

Publish Nomanur\\SanctumCrud\\SanctumCrudServiceProvider

And

```
    php artisan migrate
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [nomanur](https://github.com/nomanur)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

5

Last Release

989d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29956256?v=4)[Nomanur Rahman](/maintainers/nomanur)[@nomanur](https://github.com/nomanur)

---

Top Contributors

[![nomanur](https://avatars.githubusercontent.com/u/29956256?v=4)](https://github.com/nomanur "nomanur (13 commits)")

---

Tags

nomanursanctum-crud

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nomanur-sanctum-crud/health.svg)

```
[![Health](https://phpackages.com/badges/nomanur-sanctum-crud/health.svg)](https://phpackages.com/packages/nomanur-sanctum-crud)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[althinect/filament-spatie-roles-permissions

3481.1M10](/packages/althinect-filament-spatie-roles-permissions)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.2k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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