Download the PHP package fernandozueet/php-sanitize without Composer

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

FZ PHP SANITIZE

Sanitize php values.




Documentation




Requirements




Installation

Install this package with composer:




Mode of use Array

Output:




Mode of use Individual

Output:




Mode of use Laravel

Laravel 5.8 or superior




Custom filter

1- Create class filter

2- Create a function in another pho file to call the filter

3- Use filter

Output:




Filters




striptags

Strip HTML and PHP tags from a string.

striptags(string $allowable_tags = "")

Output:




cnpj

Format the cnpj format number.

cnpj()

Output:




cpf

Format the cpf format number.

cpf()

Output:




numeric

Numbers.

numeric()

Output:




alphanumeric

Letters from a to z and numbers.

alphanumeric(bool $spaces = false)

Output:




alpha

Letters from a to z.

alpha(bool $spaces = false)

Output:




url

filter_var FILTER_SANITIZE_URL

url()

Output:




email

filter_var FILTER_SANITIZE_EMAIL

email()

Output:




strtolower

Make a string lowercase.

strtolower()

Output:




strtoupper

Make a string uppercase.

strtoupper()

Output:




ucwords

Uppercase the first character of each word in a string.

ucwords(string $delimiters = " \t\r\n\f\v")

Output:




ucfirst

Make a string's first character uppercase.

ucfirst()

Output:




lcfirst

Make a string's first character lowercase.

lcfirst()

Output:




rtrim

Removes blanks (or other characters) from the beginning of the string.

rtrim(string $charlist = " \t\n\r\0\x0B")

Output:




ltrim

Removes blanks (or other characters) from the beginning of the string.

ltrim(string $charlist = " \t\n\r\0\x0B")

Output:




trim

Removing space at the beginning and end of a string.

trim(string $charlist = " \t\n\r\0\x0B")

Output:




date

Date format.

date(string $format = 'Y-m-d')

Output:




type

Format a types.

type(string $type)

$type: string bool int float array object

Output:




numberFormat

Format a number with grouped thousands.

numberFormat(int $decimals = 0, string $decimalpoint = '.', string $separator = ',')

Output:




pregReplace

Perform a regular expression search and replace.

pregReplace($pattern, $replacement)

http://php.net/manual/en/function.preg-replace.php

Output:




filterVar

Filters a variable with a specified filter.

filterVar(int $filter = FILTER_DEFAULT, $options = null)

http://php.net/manual/en/function.filter-var.php




Contributing

Please see CONTRIBUTING for details.

Security

If you discover security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The FZ Php Sanitize is licensed under the MIT license. See License File for more information.


All versions of php-sanitize with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
laravel/helpers Version ^1.3
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 fernandozueet/php-sanitize contains the following files

Loading the files please wait ....