PHPackages                             fawno/sanitize - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. fawno/sanitize

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

fawno/sanitize
==============

Simple PHP function for sanitize strings

2411.16.2(1y ago)013MITPHPPHP &gt;=7.4

Since Nov 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/fawno/sanitize)[ Packagist](https://packagist.org/packages/fawno/sanitize)[ RSS](/packages/fawno-sanitize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![GitHub Workflow](https://github.com/fawno/sanitize/actions/workflows/php.yml/badge.svg)](https://github.com/fawno/sanitize/actions/workflows/php.yml)[![GitHub license](https://camo.githubusercontent.com/5bb3804ed90008009a79414e4f9f7e87a17fefe5980d8990bed336635415b578/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661776e6f2f73616e6974697a65)](https://github.com/fawno/sanitize/blob/master/LICENSE)[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/5f1930d9f6bc46020553c132e7bf389ddfca85dc4a43d55abc08d7a53d6b4ee9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6661776e6f2f73616e6974697a65)](https://github.com/fawno/sanitize/tags)[![Packagist](https://camo.githubusercontent.com/f356eb0e4ae66044603a4c1e1e2497ae08f19f5e65db7098106a3065f1804819/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661776e6f2f73616e6974697a65)](https://packagist.org/packages/fawno/sanitize)[![Packagist Downloads](https://camo.githubusercontent.com/3c8fcf4b3bf932eef63db79f1f3162ffe7a6936275ed3a5aee52c04f013fb3bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661776e6f2f73616e6974697a65)](https://packagist.org/packages/fawno/sanitize/stats)[![GitHub issues](https://camo.githubusercontent.com/38c9c942c295f1deb829676c2f0eb85477c6309467a08cbf36c995050537b8ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6661776e6f2f73616e6974697a65)](https://github.com/fawno/sanitize/issues)[![GitHub forks](https://camo.githubusercontent.com/7abbd237224ba3007c14f1291a87e063ef47304bb26a9160a16123e010bb4559/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6661776e6f2f73616e6974697a65)](https://github.com/fawno/sanitize/network)[![GitHub stars](https://camo.githubusercontent.com/4b885b99b3a53d3ace983360c3f1cfc7152b3b08ce1c084260a5865b006973d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6661776e6f2f73616e6974697a65)](https://github.com/fawno/sanitize/stargazers)

sanitize
========

[](#sanitize)

Simple PHP function for sanitize strings

Table of contents
=================

[](#table-of-contents)

- [Installation](#installation)
    - [Composer install](#composer-install)
    - [Manual install](#manual-install)
- [Usage](#usage)

Installation
------------

[](#installation)

### Composer install

[](#composer-install)

You can install this plugin into your application using [composer](https://getcomposer.org):

- Add fawno/sanitize package to your project:

    ```
      composer require fawno/sanitize
    ```
- Load the function Fawno\\sanitize in your project

    ```
