ichikaway/securephp

SecurePHP is the PHP library for security. Delete control characters(ex. null byte) and invalid array keyname(_SERVER, _GET, etc)

dev-master 2017-12-25 02:59 UTC

This package is not auto-updated.

Last update: 2024-11-19 08:02:41 UTC


README

  • check input data(POST,GET,COOKIE,SERVER,REQUEST) and delete invalid data.
    • delete control byte char(ex. null byte)
    • delete invalid key name(ex. array('_SERVER' =>....) )

Usage:

include bootstrap.php of SecurePHP library. require_once('securephp/Config/bootstrap.php');

Composer

If you want to install with composer,

{
	"require": {
		"ichikaway/securephp": "dev-master"
	},
	"autoload": {
		"files": ["vendor/ichikaway/securephp/Libs/SecureInputFilter.php"]
	}
}

and require autoload.php and execute method.

require('vendor/autoload.php');
SecureInputFilter::clean_input_data();