PHPackages                             devrabiul/laravel-php-inspector - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. devrabiul/laravel-php-inspector

ActiveLibrary[Testing &amp; Quality](/categories/testing)

devrabiul/laravel-php-inspector
===============================

A Laravel package to inspect PHP code for version compatibility using PHPCompatibility and PHP\_CodeSniffer.

v1.2(9mo ago)147↓93.8%1[1 PRs](https://github.com/devrabiul/laravel-php-inspector/pulls)MITPHPPHP &gt;=8.0

Since Oct 6Pushed 5mo agoCompare

[ Source](https://github.com/devrabiul/laravel-php-inspector)[ Packagist](https://packagist.org/packages/devrabiul/laravel-php-inspector)[ Docs](https://github.com/devrabiul/laravel-php-inspector)[ RSS](/packages/devrabiul-laravel-php-inspector/feed)WikiDiscussions main Synced today

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

🕵️ LaravelPhpInspector
======================

[](#️-laravelphpinspector)

**LaravelPhpInspector** is a developer tool for Laravel that helps you check your project’s **PHP 8.4** and **Laravel 12** compatibility.
It uses **PHP\_CodeSniffer** and the **PHPCompatibility** ruleset under the hood to scan your code and highlight deprecated functions, syntax issues, and Laravel helper changes.

[![Latest Stable Version](https://camo.githubusercontent.com/1e0e302d8b9727965405bd3aeee4c7d348f01dd4607937ef8776f18892beeb9e/68747470733a2f2f706f7365722e707567782e6f72672f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f722f762f737461626c65)](https://packagist.org/packages/devrabiul/laravel-php-inspector)[![Total Downloads](https://camo.githubusercontent.com/77a209a7da16ff7ccc2afb95d13cab63130e08b77a6dc3322152c6a4a70d009d/68747470733a2f2f706f7365722e707567782e6f72672f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f722f646f776e6c6f616473)](https://packagist.org/packages/devrabiul/laravel-php-inspector)[![Monthly Downloads](https://camo.githubusercontent.com/af4a831762050f6531c46a8a8b747f6311fb8f11fda27c1d9caadae1c16c77f1/68747470733a2f2f706f7365722e707567782e6f72672f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f722f642f6d6f6e74686c79)](https://packagist.org/packages/devrabiul/laravel-php-inspector)[![GitHub license](https://camo.githubusercontent.com/fca254bddab990e1cbcda0948331221a91d2e3796f910b6e63bf8c0b962543be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f72)](https://camo.githubusercontent.com/fca254bddab990e1cbcda0948331221a91d2e3796f910b6e63bf8c0b962543be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f72)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/devrabiul/laravel-php-inspector)[![GitHub Repo stars](https://camo.githubusercontent.com/db139a655b0a23c413bd2f7d7afbca5dc045328114322e59b5ff80508cba88a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f723f7374796c653d736f6369616c)](https://camo.githubusercontent.com/db139a655b0a23c413bd2f7d7afbca5dc045328114322e59b5ff80508cba88a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f723f7374796c653d736f6369616c)

---

🚀 Live Demo
-----------

[](#-live-demo)

👉 [Try the Live Demo](https://packages.rixetbd.com/devrabiul/laravel-php-inspector)

[![Live Demo Thumbnail](https://camo.githubusercontent.com/b7aee67573b9b54de7831001a2eb97bbcde169eded1b9c132142ac7629aac1df/68747470733a2f2f7061636b616765732e726978657462642e636f6d2f73746f726167652f6170702f7075626c69632f7061636b6167652f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f722e77656270)](https://camo.githubusercontent.com/b7aee67573b9b54de7831001a2eb97bbcde169eded1b9c132142ac7629aac1df/68747470733a2f2f7061636b616765732e726978657462642e636f6d2f73746f726167652f6170702f7075626c69632f7061636b6167652f64657672616269756c2f6c61726176656c2d7068702d696e73706563746f722e77656270)

---

✨ Features
----------

[](#-features)

- ✅ Detects deprecated PHP functions, classes, and syntax
- ✅ Highlights Laravel helpers and validation rules that need updating
- ✅ Compatible with **PHP 8.4**
- ✅ Works with **Laravel 10, 11, and 12**
- ✅ Excludes `vendor/`, `node_modules/`, and public assets by default
- ✅ Provides Artisan command for easy inspection

---

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require devrabiul/laravel-php-inspector --dev
```

Then publish the package config:

```
php artisan vendor:publish --provider="Devrabiul\LaravelPhpInspector\LaravelPhpInspectorServiceProvider"
```

---

⚙️ Usage
--------

[](#️-usage)

Run the inspector to check your Laravel app for PHP compatibility:

```
php artisan phpinspector-compat:check
```

### Available Options

[](#available-options)

- **`--php=`** → Target PHP version (overrides config) Example:

    ```
    php artisan phpinspector-compat:check --php=8.4
    ```
- **`--path=`** → Specific path to scan (overrides config) Example:

    ```
    php artisan phpinspector-compat:check --path=app/Models
    ```

By default, the command scans your entire Laravel project (excluding `vendor/`, `storage/`, and `*.blade.php` files).

---

🎯 Get Started Today!
--------------------

[](#-get-started-today)

Experience the magic of LaravelPhpInspector and enrich your Laravel application with modern PHP compatibility checks.

- 🔗 **GitHub:** [devrabiul/laravel-php-inspector](https://github.com/devrabiul/laravel-php-inspector)
- 🔗 **Live Demo:** [laravel-php-inspector.rixetbd.com](https://laravel-php-inspector.rixetbd.com)
- 🔗 **Packagist:** [packagist.org/packages/devrabiul/laravel-php-inspector](https://packagist.org/packages/devrabiul/laravel-php-inspector)

---

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions! Please fork the repository, make your changes, and submit a pull request. For feature requests or issues, [open a GitHub issue](https://github.com/devrabiul/laravel-php-inspector/issues).

---

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT license](LICENSE).

---

🌱 Treeware
----------

[](#-treeware)

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/devrabiul/laravel-php-inspector) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

---

📬 Contact
---------

[](#-contact)

For support or inquiries, feel free to reach out: 📧

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

3

Last Release

271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eaf28cb5d9d5d87660cbe335e7b82a08bc7801a40556c3a99740e22282d9e17?d=identicon)[devrabiul](/maintainers/devrabiul)

---

Top Contributors

[![devrabiul](https://avatars.githubusercontent.com/u/112581088?v=4)](https://github.com/devrabiul "devrabiul (9 commits)")[![rabiul6am](https://avatars.githubusercontent.com/u/128285760?v=4)](https://github.com/rabiul6am "rabiul6am (1 commits)")

---

Tags

compatibilityphpphpcslaravelcode qualityphp-versionphp-inspector

### Embed Badge

![Health badge](/badges/devrabiul-laravel-php-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/devrabiul-laravel-php-inspector/health.svg)](https://phpackages.com/packages/devrabiul-laravel-php-inspector)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.3k](/packages/slevomat-coding-standard)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22134.3M759](/packages/phpcompatibility-phpcompatibility-wp)[tightenco/duster

Automatic configuration for Laravel apps to apply Tighten's standard linting &amp; code standards.

5972.8M251](/packages/tightenco-duster)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.8k](/packages/sci3ma-symfony-grumphp)[exakat/exakat

The smart static analyzer for PHP

437.8k](/packages/exakat-exakat)

PHPackages © 2026

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