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. [Admin Panels](/categories/admin)
4. /
5. michael4d45/laravel-resource-checker

ActiveLibrary[Admin Panels](/categories/admin)

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

A Laravel package to check migrations against Filament resources and models

v1.3.2(1mo ago)0577↓81.3%MITPHPPHP ^8.3

Since Jan 9Pushed 1mo 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 today

READMEChangelogDependencies (22)Versions (8)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 90% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

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

Recently: every ~14 days

Total

7

Last Release

50d ago

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

v1.1.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2423882?v=4)[Michael Harvey](/maintainers/Michael4d45)[@Michael4d45](https://github.com/Michael4d45)

---

Top Contributors

[![Michael4d45](https://avatars.githubusercontent.com/u/2423882?v=4)](https://github.com/Michael4d45 "Michael4d45 (25 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

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20203.9k22](/packages/pimcore-studio-backend-bundle)

PHPackages © 2026

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