SamuelNunesDev / lumen-form-request-validation by samuel-nunes

A Simple Solution For Form Request Validation On Lumen
110
5
1
Package Data
Maintainer Username: samuel-nunes
Maintainer Contact: sammoc11@hotmail.com (Samuel Nunes)
Package Create Date: 2022-08-20
Package Last Update: 2023-07-15
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-18 03:01:54
Package Statistics
Total Downloads: 110
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Form Request Validation for Lumen

This small package contains a laravel-like solution for request form validation.

Contents

  • Form Request Validation for Lumen
  • Artisan Command make:request
  • Artisan Command make:rule

Installation

You can install the package via composer:

composer require samuel-nunes/lumen-form-request-validation

Next, you must load the Artisan commands:

// app/Console/Kernel.php
protected $commands = [
        \SamuelNunes\LumenFormRequestValidation\Console\Commands\RequestMakeCommand::class,
        \SamuelNunes\LumenFormRequestValidation\Console\Commands\RuleMakeCommand::class
    ];

Usage

You can use:

  • php artisan make:request to generate a new form request validation (it's works like laravel method).

  • php artisan make:rule to generate a new rule to use in your form request validation (it's works like laravel method too).

Credits

License

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