Skip to content

A port of the security class from CodeIgniter 3 for general use

License

Notifications You must be signed in to change notification settings

voku/Security-Core

 
 

Repository files navigation

Security Core

Security Core was created by, and is maintained by Graham Campbell, and is a port of the security class from CodeIgniter 3 for general use. Laravel wrappers for this package exist as Laravel Security and Laravel Binput. Feel free to check out the change log, releases, security policy, license, code of conduct, and contribution guidelines.

StyleCI Status Build Status Coverage Status Quality Score Software License Latest Version

Installation

Security Core requires PHP 7.0-7.4.

To get the latest version, simply require the project using Composer:

$ composer require graham-campbell/security-core

Usage

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

<?php

use GrahamCampbell\SecurityCore\Security;

// $clean = '<span xss=removed>X</span>';
$clean = (new Security)->clean('<span/onmouseover=confirm(1)>X</span>');

For usage in Laravel, check out Laravel Security and Laravel Binput.

Security

If you discover a security vulnerability within this package, please send an email to Graham Campbell at graham@alt-three.com. All security vulnerabilities will be promptly addressed. You may view our full security policy here.

License

Security Core is licensed under The MIT License (MIT).


Get professional support for Security Core with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

About

A port of the security class from CodeIgniter 3 for general use

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%