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. nomanur/sanctum-crud

ActiveLibrary

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

a sanctum starter for laravel

v1.0.4(2y ago)194↓33.3%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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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

Total

5

Last Release

937d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c11c7eb3a08494bec414a2528da1f645eb80999cb0842343f2d870f4766a5ea?d=identicon)[nomanur](/maintainers/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

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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