PHPackages                             graham-campbell/security-core - 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. [Framework](/categories/framework)
4. /
5. graham-campbell/security-core

Abandoned → [voku/anti-xss](/?search=voku%2Fanti-xss)ArchivedLibrary[Framework](/categories/framework)

graham-campbell/security-core
=============================

Security Core Is A Wrapper Of voku/anti-xss For General Use

v5.0.0(1y ago)291.7M↓10.9%62MITPHPPHP ^8.1CI passing

Since Dec 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GrahamCampbell/Security-Core)[ Packagist](https://packagist.org/packages/graham-campbell/security-core)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ Fund](https://tidelift.com/funding/github/packagist/graham-campbell/security-core)[ RSS](/packages/graham-campbell-security-core/feed)WikiDiscussions 5.0 Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (31)Used By (2)

Security Core
=============

[](#security-core)

Security Core was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), wrapper of [voku/anti-xss](https://github.com/voku/anti-xss) for general use. Laravel wrappers for this package exist as [Laravel Security](https://github.com/GrahamCampbell/Laravel-Security) and [Laravel Binput](https://github.com/GrahamCampbell/Laravel-Binput). Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Security-Core/releases), [security policy](https://github.com/GrahamCampbell/Security-Core/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).

[![Banner](https://user-images.githubusercontent.com/2829600/71477094-0f3c7780-27e0-11ea-8a35-139e4445155e.png)](https://user-images.githubusercontent.com/2829600/71477094-0f3c7780-27e0-11ea-8a35-139e4445155e.png)

[![Build Status](https://camo.githubusercontent.com/08b722bf7a5be9f184d7848e2a82d2f566e0f03785aa2b37dd2e979e4ee349b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f47726168616d43616d7062656c6c2f53656375726974792d436f72652f74657374732e796d6c3f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Security-Core/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/b9848c6ec9f8d5ba937b29ebd1528895a748aad834e7b9eb7f52c25a3322aaee/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136333534393636372f736869656c64)](https://github.styleci.io/repos/163549667)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/4892d89728bf09b5a37ba1f47715ffc0ed60b559c1d8c290694a941432dc137e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67726168616d2d63616d7062656c6c2f73656375726974792d636f72653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graham-campbell/security-core)[![Latest Version](https://camo.githubusercontent.com/9922cbfaad36d762f42b288dbd3b71c5aeeef3b24fa15320eacf428f4aac8bac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f53656375726974792d436f72653f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Security-Core/releases)

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

[](#installation)

This version requires [PHP](https://www.php.net/) 8.1-8.4.

To get the latest version, simply require the project using [Composer](https://getcomposer.org/):

```
$ composer require "graham-campbell/security-core:^5.0"
```

Usage
-----

[](#usage)

To sanitize your string, simply call the `clean` method on the `Security` class.

```
