Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.98 KB

README.md

File metadata and controls

56 lines (44 loc) · 1.98 KB

GitHub Workflow GitHub license GitHub tag (latest SemVer) Packagist Packagist Downloads GitHub issues GitHub forks GitHub stars

sanitize

Simple PHP function for sanitize strings

Table of contents

Installation

Composer install

You can install this plugin into your application using composer:

  • Add fawno/sanitize package to your project:

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

    <?php
      require 'vendor/autoload.php';
      use function Fawno\sanitize;

TOC

Manual install

  • Download sanitize.php and save it to an accessible path of your project.
  • Load the function Fawno\sanitize in your project
    <?php
      require 'sanitize.php';
      use function Fawno\sanitize;

TOC

Usage

  use function Fawno\sanitize;
  echo sanitize('Álava');

TOC