PHPackages                             protoqol/quasi - 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. protoqol/quasi

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

protoqol/quasi
==============

Generate smarter Laravel resources, directly, based on your database schema.

2.0.0(4mo ago)22721MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Mar 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Protoqol/Quasi)[ Packagist](https://packagist.org/packages/protoqol/quasi)[ Docs](https://github.com/protoqol/quasi)[ RSS](/packages/protoqol-quasi/feed)WikiDiscussions main Synced today

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

[![Quasi](https://camo.githubusercontent.com/d1da8ef1eb8a673a9fdf61558c8b689b2bff695eb1b0a8a582f10694edf007a2/68747470733a2f2f636d732e70726f746f716f6c2e6e6c2f6173736574732f31663236373930642d373963322d346165622d616232652d343533343832306333636234)](https://camo.githubusercontent.com/d1da8ef1eb8a673a9fdf61558c8b689b2bff695eb1b0a8a582f10694edf007a2/68747470733a2f2f636d732e70726f746f716f6c2e6e6c2f6173736574732f31663236373930642d373963322d346165622d616232652d343533343832306333636234)

[![Packagist](https://camo.githubusercontent.com/bd4926e3e20ff8a7a605fe2a5d8106115e4db8e6e5b31c016bcaf2d596605b55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70726f746f716f6c2f71756173692f74657374696e672e796d6c)](https://camo.githubusercontent.com/bd4926e3e20ff8a7a605fe2a5d8106115e4db8e6e5b31c016bcaf2d596605b55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70726f746f716f6c2f71756173692f74657374696e672e796d6c)[![Packagist](https://camo.githubusercontent.com/591a7ef328fa2758ef63d81d9dbd151562c30563ea73bcef8127cf8c87e2163c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f746f716f6c2f71756173692e737667)](https://camo.githubusercontent.com/591a7ef328fa2758ef63d81d9dbd151562c30563ea73bcef8127cf8c87e2163c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f746f716f6c2f71756173692e737667)

Features
--------

[](#features)

- **Smarter Resource Generation**: Automatically populate all columns in a Resource from your database table.
- **Table Name Guessing**: Guesses the table name based on the resource name, or you can specify it manually.
- **Model Integration**: Use `--model` to resolve the table name directly from an Eloquent model.
- **Advanced Filtering**: Use `--only` or `--except` to filter columns on the fly.
- **Relationship Discovery**: Automatically detects `_id` columns and adds commented-out `whenLoaded` placeholders.
- **Bulk Generation**: Generate resources for all tables in your database with a single command.
- **Customisable Stubs**: Publish and customise the resource stubs to match your project's style.
- **Fine-grained Control**: Exclude specific fields globally via the configuration file or rely on automatic sensitive data hiding.

---

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

[](#installation)

You can install the package via Composer:

```
composer require protoqol/quasi
```

You can publish the configuration file or the stubs with:

```
# Publish configuration
php artisan vendor:publish --tag=quasi-config

# Publish stubs for customization
php artisan vendor:publish --tag=quasi-stubs
```

---

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

You can create a resource by specifying the name. The table name will be guessed automatically.

```
# Table name is guessed based on the resource name (e.g., 'users' for UserResource).
php artisan make:qresource UserResource

# Explicitly provide the table name.
php artisan make:qresource UserResource --table=users

# Resolve table name from a model.
php artisan make:qresource UserResource --model=User
```

### Advanced Filtering

[](#advanced-filtering)

Filter which columns should be included in the generated resource.

```
# Only include specific columns.
php artisan make:qresource UserResource --only=id,name,email

# Exclude specific columns.
php artisan make:qresource UserResource --except=deleted_at,internal_notes
```

Note: Common sensitive fields like `password`, `token`, `secret`, and `remember_token` are automatically excluded.

### Bulk Generation

[](#bulk-generation)

Generate resources for your entire database at once.

```
# Generate resources for all tables.
php artisan make:qresource --all

# Generate resources AND collections for all tables.
php artisan make:qresource --all --collection
```

---

Feedback, suggestions or issues?
--------------------------------

[](#feedback-suggestions-or-issues)

Please open an issue on this repository. We're happy to hear back from you!

---

Developed by [Protoqol](https://protoqol.nl/).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance75

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

4

Last Release

138d ago

Major Versions

1.0.2 → 2.0.02026-02-14

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ba1710c6377f70664df04942ff140ee30a6323dfa762b63c2dacebbaa2ff0a7?d=identicon)[Protoqol](/maintainers/Protoqol)

---

Top Contributors

[![QuintenJustus](https://avatars.githubusercontent.com/u/31711158?v=4)](https://github.com/QuintenJustus "QuintenJustus (14 commits)")

---

Tags

laravelphpprotoqolquasilaravelresource generatorprotoqolquasi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/protoqol-quasi/health.svg)

```
[![Health](https://phpackages.com/badges/protoqol-quasi/health.svg)](https://phpackages.com/packages/protoqol-quasi)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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