New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

noitran/lumen-form-requests

Missing form requests functionality for lumen, ported from laravel framework.
4,750 5

Larablocks Analysis

noitran/lumen-form-requests works with Laravel 5 (latest release v0.1.1, Mar 8, 2019), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Mar 8, 2019)
  • 0 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Mar 8, 2019.
  • No releases in the last 12 months.
  • First released: Jan 21, 2019.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require noitran/lumen-form-requests
Latest Version:v0.1.1
PHP:>=7.1.3
Laravel:5
License:MIT
Last Updated:Feb 10, 2020
Links: GitHub  ·  Packagist
Maintainer: noitran

lumen-form-requests

Quality Score Software License Latest Version Total Downloads

Missing form requests functionality for lumen, ported from laravel framework.

Installation

  • Install as composer package
composer require noitran/lumen-form-requests
  • Open your bootstrap/app.php and register as service provider
$app->register(Noitran\Form\Providers\FormRequestServiceProvider::class);

Usage

Refer to the official laravel documentation about form request usage

https://laravel.com/docs/5.7/validation#form-request-validation

Example Request

<?php

namespace App\Http\Requests;

use Noitran\Microservice\Foundation\Http\Requests\Request;

class CreateUserRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        $rules = [
            'email' => [
                'required',
                'email',
                'unique:users,email',
            ],
            'password' => [
                'required',
            ],
        ];
    }
}

Usage in Controller

<?php

namespace App\Http\Controllers;

use App\Http\Requests\CreateUserRequest;
use App\Http\Controllers\Controller;

class UsersController extends Controller
{
    /**
     * Store a new user.
     *
     * @param CreateUserRequest $request
     * @return Response
     */
    public function store(CreateUserRequest $request)
    {
        // store user
    }
}

Related Packages

bwt-team/laravel-api

Package helping with API development

11,545 1
nebo15/lumen.rest

Components for fast building REST API for Lumen

3,797 1
ngabor84/lumen-api-query-parser

A query parser for REST-APIs based on laravel's lumen framework

1,494 3
nextdots/api-exceptions

JSON exceptions for your API

385 0
lujo/lumen-rest

Lumen package for creating simple REST API

97 1

Version History

Version Released PHP Laravel License
v0.1.1 >=7.1.3 5.6 - 5.8 MIT
v0.1.0 >=7.1.3 5.6 - 5.7 MIT