PHPackages                             sansanlabs/laravel-inertia-permission - 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. sansanlabs/laravel-inertia-permission

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

sansanlabs/laravel-inertia-permission
=====================================

Generate TypeScript types from Spatie Laravel Permission for Inertia.js (React &amp; Vue)

v0.0.2(today)00MITPHPPHP ^8.4CI passing

Since Jun 20Pushed todayCompare

[ Source](https://github.com/sansanlabs/laravel-inertia-permission)[ Packagist](https://packagist.org/packages/sansanlabs/laravel-inertia-permission)[ Docs](https://github.com/sansanlabs/laravel-inertia-permissions)[ GitHub Sponsors](https://github.com/SanSanLabs)[ RSS](/packages/sansanlabs-laravel-inertia-permission/feed)WikiDiscussions main Synced today

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

Generate TypeScript types from Spatie Laravel Permission for Inertia.js (React &amp; Vue)
=========================================================================================

[](#generate-typescript-types-from-spatie-laravel-permission-for-inertiajs-react--vue)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d4af8213c8fcc6c45c3158292172ce944b4749169efa1f4aac394206875013cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e73616e6c6162732f6c61726176656c2d696e65727469612d7065726d697373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sansanlabs/laravel-inertia-permission)[![GitHub Tests Action Status](https://github.com/spatie/package-skeleton-laravel/actions/workflows/run-tests.yml/badge.svg)](https://github.com/sansanlabs/laravel-inertia-permission/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://github.com/spatie/package-skeleton-laravel/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/sansanlabs/laravel-inertia-permission/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/638ba004e63806efdfa1d2964ef26e64a7afce0ae78ccc42a698a82266ee55cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e73616e6c6162732f6c61726176656c2d696e65727469612d7065726d697373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sansanlabs/laravel-inertia-permission)

---

This repo can be used to scaffold a Laravel package. Follow these steps to get started:

1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
3. Have fun creating your package.
4. If you need help creating a package, consider picking up our [Laravel Package Training](https://laravelpackage.training) video course.

---

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/d7f26d1155fe87eaf7316120ab13df33a13607eaf39c890056b69a8dce07de16/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f3a7061636b6167655f6e616d652e6a70673f743d31)](https://spatie.be/github-ad-click/:package_name)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require sansanlabs/laravel-inertia-permission
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-inertia-permission-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-inertia-permission-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-inertia-permission-views"
```

Usage
-----

[](#usage)

```
$:variable = new SanSanLabs\InertiaPermission();
echo $:variable->echoPhrase('Hello, VendorName!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Edi Kurniawan](https://github.com/:author_username)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/192882599?v=4)[SanSan Labs](/maintainers/sansanlabs)[@sansanlabs](https://github.com/sansanlabs)

---

Top Contributors

[![edikurniawan-dev](https://avatars.githubusercontent.com/u/50087198?v=4)](https://github.com/edikurniawan-dev "edikurniawan-dev (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelsansanlabslaravel-inertia-permissions

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sansanlabs-laravel-inertia-permission/health.svg)

```
[![Health](https://phpackages.com/badges/sansanlabs-laravel-inertia-permission/health.svg)](https://phpackages.com/packages/sansanlabs-laravel-inertia-permission)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k33.0M877](/packages/spatie-laravel-data)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124581.3k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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