Download the PHP package worksome/phpstan-request-factories without Composer
On this page you can find all versions of the php package worksome/phpstan-request-factories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worksome/phpstan-request-factories
More information about worksome/phpstan-request-factories
Files in worksome/phpstan-request-factories
Package phpstan-request-factories
Short Description A PHPStan rule for enforcing that every request has a corresponding factory.
License MIT
Homepage https://github.com/worksome/phpstan-request-factories
Informations about the package phpstan-request-factories
PHPStan Request Factories
A PHPStan rule for enforcing that every request has a corresponding factory.
Installation
You can install the package via composer:
If you have also installed phpstan/extension-installer
then everything will work out of the box.
Manual installation
If you don't want to use `phpstan/extension-installer`, include `extension.neon` in your project's PHPStan config:Usage
Choosing different namespaces
The request and factory namespaces are both configurable. They can be configured using the following parameters:
requestFactories.requestsNamespace
(default isApp\\Http\\Requests
)requestFactories.factoriesNamespace
(default isTests\\RequestFactories
)
For example:
Excluding request classes
If there are certain request classes that you want to exclude, you can exclude these using
the excludedRequestClasses
parameter.
For example:
Testing
Changelog
Please see GitHub Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Owen Voke
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of phpstan-request-factories with dependencies
illuminate/contracts Version ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0
phpstan/phpstan Version ^2.0
worksome/request-factories Version ^3.4