PHP Classes

How to Implement Laravel Validation String Length, Email Addresses, and IP Addresses Using the Package Laravel Simple Validation: Add validation rules to use in Laravel application

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-07-16 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 14 All time: 11,359 This week: 53Up
Version License PHP version Categories
laravel-simple-valid 1.0MIT/X Consortium ...5PHP 5, Libraries, Validation
Description 

Author

This package can add validation rules to use in the Laravel application.

It provides a class that implements several validation rules and can be used to validate values passed to requests processed by a Laravel application.

Currently it can validate:

- String values

- Email addresses

- IP addresses

- String value length

Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 36 packages by
Country: Taiwan Taiwan
Age: 31
All time rank: 21076 in Taiwan Taiwan
Week rank: 23 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 16x

Winner: 1x

Documentation

Build Status Coverage Status

Simple validation rule

What?

A simple validation to your Laravel 5.5+ Validation Rules. Including IP, e-mail validations and so on.

Install

Install with composer:

composer require lee/laravel-simple-validation

Usage

In your controllers, add the validation with your other rules:


use Lee\LaraSimpleValidation;

$request->validate([
    'email' => 'required|string|email'
    'ip' => ['required', new LaraSimpleValidation],
]);

  Files folder image Files (7)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetests (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (7)  /  src  
File Role Description
  Plain text file LaraSimpleValidation.php Class Class source

  Files folder image Files (7)  /  tests  
File Role Description
  Plain text file LaraSimpleValidationTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:0
All time:11,359
This week:53Up