Download the PHP package kishieel/laravel-form-request-unit without Composer

On this page you can find all versions of the php package kishieel/laravel-form-request-unit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-form-request-unit

Laravel Form Request Unit

Integration

Helpers for laravel form request unit testing. It allows you to keep your controller tests clean and focus on testing their proper purpose by taking form request assertions to separate tests.

Installation

You can install the package via composer:

Usage

Rules Validation

With FormRequestValidator trait you may test your FormRequest without direct request to controller. Mentioned trait provide validate method which takes FormRequest and data which should be validated as arguments.

As a result you will get ValidatorResponse which provide passes and errors methods. First method allow you to determinate whether data passes validation against form request rules. Second method may be used when you expected validation fail and want to determinate whether data failed against expected rule.

Selective Validation

With a very complex FormRequest, you may want to test data against only specified rules. You may achieve this by passing array of rule keys as third parameter of validate method.

Authorization Validation

With FormRequestValidator you may validate FormRequest authorization method. Result will be available via passes method on validation result.

Testing Custom Validation Rules

In case of custom validation rules you may use FormRequestCreator to create FormRequest on runtime and test it against your data. FormRequestCreator takes rules array and authorization callback as constructor arguments. Arguments are optional. You may use setRules and setAuthorization methods if you prefer.

Contributing

Before any pull request to master branch please run cs fixer and unit test.

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-form-request-unit with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/contracts Version ^7.0|^8.0
illuminate/support Version ^7.0|^8.0
illuminate/validation Version ^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kishieel/laravel-form-request-unit contains the following files

Loading the files please wait ....