Download the PHP package adrum/inertia-phpstan without Composer
On this page you can find all versions of the php package adrum/inertia-phpstan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adrum/inertia-phpstan
More information about adrum/inertia-phpstan
Files in adrum/inertia-phpstan
Download adrum/inertia-phpstan
More information about adrum/inertia-phpstan
Files in adrum/inertia-phpstan
Vendor adrum
Package inertia-phpstan
Short Description PHPStan extension to validate Inertia.js page existence on disk
License MIT
Package inertia-phpstan
Short Description PHPStan extension to validate Inertia.js page existence on disk
License MIT
Please rate this library. Is it a good library?
Informations about the package inertia-phpstan
Inertia PHPStan Extension
A PHPStan extension that validates Inertia.js page existence on disk when used in Laravel controllers.
Features
- Validates
Inertia::render()static calls - Validates
inertia()helper function calls - Validates
$this->inertia()method calls in controllers - Supports multiple page directory configurations
- Supports various file extensions (.vue, .jsx, .tsx, .js, .ts)
- Handles both dot notation (
Auth.Login) and slash notation (Auth/Login) for page names
Installation
Configuration
Add the extension to your phpstan.neon:
Usage
The extension will automatically validate that Inertia pages exist on disk when analyzing your controllers:
Page Directory Configuration
The extension looks for pages in these directories by default:
resources/js/Pagesresources/js/pagesresources/ts/Pagesresources/ts/pagesresources/vue/Pagesresources/vue/pagesresources/react/Pagesresources/react/pages
Supported File Extensions
.vue.jsx.tsx.js.ts
Example
See the examples/ directory for a sample controller and PHPStan configuration.
All versions of inertia-phpstan with dependencies
PHP Build Version
Package Version
The package adrum/inertia-phpstan contains the following files
Loading the files please wait ...