PHPackages                             abe/laravel-prism - 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. abe/laravel-prism

ActiveLibrary

abe/laravel-prism
=================

New Laravel project setup.

v0.0.37(11mo ago)027[4 PRs](https://github.com/abrahamgreyson/laravel-prism/pulls)MITPHPPHP ^8.3|^8.4CI passing

Since Feb 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/abrahamgreyson/laravel-prism)[ Packagist](https://packagist.org/packages/abe/laravel-prism)[ Docs](https://github.com/abrahamgreyson/laravel-prism)[ GitHub Sponsors](https://github.com/abe)[ RSS](/packages/abe-laravel-prism/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (15)Versions (29)Used By (0)

Laravel Prism
=============

[](#laravel-prism)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d64e5f954ba503f3832c8c5267998f3c68f5f9a4651ddb193629f12199356f98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6162652f6c61726176656c2d707269736d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abe/laravel-prism)[![GitHub Tests Action Status](https://camo.githubusercontent.com/dbfa95df824e5fd9b589d5a6e8046d41698d357bf3babc7d4487c35e8de8066e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6162726168616d67726579736f6e2f6c61726176656c2d707269736d2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/abrahamgreyson/laravel-prism/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b58310f3bcf6a00fa4f1d33579c4d18f4102a8b85d848312689fa07daaf82ef3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6162726168616d67726579736f6e2f6c61726176656c2d707269736d2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/abrahamgreyson/laravel-prism/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/87ad5b9cc44b01bc946d806ecc50a7cdd56e0cc571773628019657bf459bc714/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6162652f6c61726176656c2d707269736d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abe/laravel-prism)

A Laravel package that sets up new projects with opinionated defaults and useful traits.

Quick Start
-----------

[](#quick-start)

1. Install the package:

```
composer require abe/laravel-prism
```

2. Run the installation command:

```
php artisan prism:install
```

This will guide you through configuring Laravel behaviors and optionally installing development tools like Telescope.

What's Included
---------------

[](#whats-included)

### Laravel Configuration

[](#laravel-configuration)

- **Immutable Dates**: Use immutable date objects for better consistency
- **Model Strict Mode**: Prevent lazy loading and mass assignment issues
- **Unified Responses**: Consistent API response format
- **Prohibit Destructive Commands**: Prevent accidental data loss in production

### Useful Traits

[](#useful-traits)

#### HasSnowflake

[](#hassnowflake)

Automatically generates snowflake IDs for your models:

```
use Abe\Prism\Traits\HasSnowflake;

class Product extends Model
{
    use HasSnowflake;

    // Snowflake ID will be automatically generated
}
```

#### HasResponse

[](#hasresponse)

Provides consistent response methods for controllers:

```
use Abe\Prism\Traits\HasResponse;

class ProductController extends Controller
{
    use HasResponse;

    public function show($id)
    {
        $product = Product::find($id);

        return $product
            ? $this->success($product)
            : $this->fail('Product not found', 404);
    }
}
```

### Optional Development Tools

[](#optional-development-tools)

- **Laravel Telescope**: Debug and monitor your application (optional)

Documentation
-------------

[](#documentation)

- [中文文档 (Chinese)](README_HANS.md)
- [Detailed Documentation](docs/)

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

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

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance79

Regular maintenance activity

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.1% 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 ~4 days

Total

24

Last Release

345d ago

PHP version history (2 changes)v0.0.1PHP ^8.3

v0.0.11PHP ^8.3|^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1341308?v=4)[刘阳](/maintainers/abrahamgreyson)[@abrahamgreyson](https://github.com/abrahamgreyson)

---

Top Contributors

[![abrahamgreyson](https://avatars.githubusercontent.com/u/1341308?v=4)](https://github.com/abrahamgreyson "abrahamgreyson (74 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelprismabeabrahamgreysonlaravel-prism

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/abe-laravel-prism/health.svg)

```
[![Health](https://phpackages.com/badges/abe-laravel-prism/health.svg)](https://phpackages.com/packages/abe-laravel-prism)
```

###  Alternatives

[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)[spatie/laravel-site-search

A site search engine

300129.1k](/packages/spatie-laravel-site-search)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[nativephp/desktop

NativePHP for Desktop

34020.6k3](/packages/nativephp-desktop)

PHPackages © 2026

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