PHPackages                             michael4d45/laravel-resource-checker - 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. michael4d45/laravel-resource-checker

ActiveLibrary

michael4d45/laravel-resource-checker
====================================

A Laravel package to check migrations against Filament resources and models

1.2.0(2mo ago)0338↓50%MITPHPPHP ^8.3

Since Jan 9Pushed 2mo agoCompare

[ Source](https://github.com/Michael4d45/Laravel-Resource-Checker)[ Packagist](https://packagist.org/packages/michael4d45/laravel-resource-checker)[ RSS](/packages/michael4d45-laravel-resource-checker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (5)Used By (0)

Laravel Migration Resource Checker
==================================

[](#laravel-migration-resource-checker)

A Laravel package that compares Filament resources and models against migrations using AST parsing to ensure consistency.

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

[](#installation)

Install the package via Composer:

```
composer require michael4d45/laravel-resource-checker
```

The package will automatically register its service provider and the command will be available.

Usage
-----

[](#usage)

Run the command to check your migrations, resources, and models:

```
php artisan check:migrations-resources
```

### Options

[](#options)

- `--output=`: Specify an output path for the JSON report (default: as configured in `config/migration-resource-checker.php`, or `reports/migration_resource_report.json`)
- `--json-only`: Only output the report JSON to stdout (useful for piping into `jq`)
- `--fix-missing-properties`: Automatically add missing @property annotations to model PHPDoc
- `--fix-missing-property-read`: Automatically add missing @property-read annotations for relationships to model PHPDoc
- `--fix-wrong-property-read`: Automatically fix wrong @property-read property names to snake\_case
- `--fix-wrong-model-doc-types`: Automatically fix wrong PHPDoc property types to match migrations
- `--fix-add-fields-to-resources`: Automatically add missing fields to resource form schemas
- `--fix-add-fields-to-model-docs`: Automatically add missing @property annotations for fields to model PHPDoc

Features
--------

[](#features)

- Parses migrations to extract table schemas or reads the DB schema if db is available
- Analyzes Filament resource forms
- Checks model properties and relationships
- Generates reports on inconsistencies
- Provides automatic fixing options for common issues

Configuration
-------------

[](#configuration)

You can publish the config file to customize the default output path and enable/disable specific checking sections:

```
php artisan vendor:publish --provider="Michael4d45\LaravelResourceChecker\Providers\LaravelResourceCheckerServiceProvider" --tag=config
```

This will copy the config file to `config/migration-resource-checker.php` where you can modify settings.

### Section Configuration

[](#section-configuration)

You can enable or disable specific sections of the checking process:

```
'enabled_sections' => [
    'migrations' => true,    // Parse migrations/database schema
    'resources' => true,    // Parse Filament resources
    'models' => true,       // Parse model files and PHPDoc
    'report' => true,       // Generate JSON report
],
```

This allows you to:

- Focus on specific areas (e.g., only check migrations and models)
- Skip sections that are not relevant to your project
- Speed up execution by disabling unnecessary checks

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

60d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2262f27ff08e3a2649bcc587627ab4a14d3f26d2d2466b3d31d2f5284957c1a?d=identicon)[Michael4d45](/maintainers/Michael4d45)

---

Top Contributors

[![Michael4d45](https://avatars.githubusercontent.com/u/2423882?v=4)](https://github.com/Michael4d45 "Michael4d45 (22 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/michael4d45-laravel-resource-checker/health.svg)

```
[![Health](https://phpackages.com/badges/michael4d45-laravel-resource-checker/health.svg)](https://phpackages.com/packages/michael4d45-laravel-resource-checker)
```

###  Alternatives

[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[graham-campbell/analyzer

Checks if referenced classes really exist.

29594.5k112](/packages/graham-campbell-analyzer)[laravel/ranger

Laravel Ranger is a powerful introspection library for Laravel applications.

5138.9k4](/packages/laravel-ranger)[stillat/proteus

Provides utilities for parsing and updating Laravel-style PHP configuration files.

17287.4k22](/packages/stillat-proteus)

PHPackages © 2026

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