Download the PHP package jijoel/sanitization-filters without Composer

On this page you can find all versions of the php package jijoel/sanitization-filters. 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 sanitization-filters

Sanitization Filters

This is a collection of custom sanitization filters to be used in conjunction with Waavi/Sanitizer.

Example

Given a data array with the following format:

We can easily format it using our Sanitizer and the some of Sanitizer's default filters:

Which will yield:

Available Filters

Filter Description
alpha Alphabetic characters only (a-z)
address Street Addresses
country Capitalize country name (or abbreviation)
date Date values
limit Trims the input at a given limit
lower Converts the given string to all lowercase
money Sets the given string to two decimal places
name Converts the string to a Proper Name (eg, Foo O'Bar)
number Returns the numeric part of the given string
phone A US Telephone number
proper Converts the given string to Proper (Title) Case
state Capitalize state name (or abbreviation)
strip Remove some problematic characters from input. These include: ' ? ; -- / &
title-case Converts the given string to Title Case
upper Converts the given string to all uppercase
zip Converts to a US zip code

Installation

Install with composer:

composer require jijoel/sanitization-filters

We also include a Laravel service provider, via auto-discovery. For versions of Laravel prior to 5.5, add it to your providers array in config/app.php:

Usage

It's recommended to sanitize your data in a FormRequest object before applying rules. The Waavi/Sanitizer package includes a SanitizesInput trait, which handles this automatically for you.

Please note that at this time, in order for this to work, the Sanitizer facade must exist.


All versions of sanitization-filters with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.0
nesbot/carbon Version ~1.0|~2.0
waavi/sanitizer Version ^1.0.8
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 jijoel/sanitization-filters contains the following files

Loading the files please wait ....