Skip to content

onassar/PHP-Security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Security

Once again, this repository contains very little in way of actual code. It's core purpose is to provide functions that aid in the securing of input between the user and client.

A common use-case would be running any posted data through the encode function. This would encode the special characters into html entities, therefore making the input safe to be inserted into a database, written out to the buffer, or generally manipulate and interact with.

Sample Encoding

// sample posted data
$_POST = array(
    "name" => "Oliver O'Connor"
);

// secure and display
$post = encode($_POST);
print_r($post);
exit(0);

Sample Output

Array
(
    [name] => Oliver O'Connor
)

About

A collection of functions which are useful in the securing of data between a client and server transmission

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages