PhpSec
A PHP security library - no longer actively maintained
Install / Use
/learn @phpsec/PhpSecREADME
phpSec is no longer actively maintained
This project is now live on Subspace! Subspace is the open-development platform where projects are maintained collectively through voting.
phpSec - PHP security library
- phpSec is a open-source PHP security library that takes care of the common security tasks a web developer faces.
Features
- Data encryption
- XSS filter
- Password hashing
- Secure session handler
- CSRF protection
- Yubikey integration
- Authy integration
- Random data generator
Installing
phpSec is now a PSR-0 compatible library. this means that it can easilly be installed and loaded using Composer. You can also install phpSec manually, or using Git.
Installing using Composer
To install using Composer just add phpSec to your composer.json file in your project directory.
{
"require": {
"phpsec/phpsec":"0.6.*"
}
}
Then all you need to do is to run $ php composer.phar install .
phpSec can then be loaded using the Composer autoloader.
require 'vendor/autoload.php';
Installing manually/Git
Download, checkout or peferrably add phpSec as a Git submodule. To add an autoloader to your project there is one example here. This can be initialized like this:
<?php
require_once 'SplClassLoader.php';
$classLoader = new SplClassLoader('phpSec', '/var/www/vendor/phpSec/lib');
$classLoader->register();
If you already have a PSR-0 compatible autoloader for your project there is no need to add another. All you have to do is to register the phpSec namespace to the phpSec/lib folder.
For documentation on how to use the various phpSec functionality, take alook at the phpsec/doc repository.
System requirements
- PHP >= 5.3.7
- Mcrypt, if you want to encrypt stuff.
Getting help / Contact
- phpSec manual
- [phpSec issues] (https://github.com/phpsec/phpSec/issues/)
- Twitter (@xqus)
- Website
- E-mail: larsen@xqus.com
License
phpSec is open-sourced software licensed under the MIT License.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR





