Download the PHP package riverside/php-waf without Composer
On this page you can find all versions of the php package riverside/php-waf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download riverside/php-waf
More information about riverside/php-waf
Files in riverside/php-waf
Download riverside/php-waf
More information about riverside/php-waf
Files in riverside/php-waf
Vendor riverside
Package php-waf
Short Description PHP Web Application Firewall
License MIT
Homepage https://github.com/riverside/php-waf
Package php-waf
Short Description PHP Web Application Firewall
License MIT
Homepage https://github.com/riverside/php-waf
Please rate this library. Is it a good library?
Informations about the package php-waf
php-waf
PHP Web Application Firewall
| Build | Stable | License |
|---|---|---|
Requirements
- PHP >= 7.0
Installation
If Composer is not installed on your system yet, you may go ahead and install it using this command line:
Next, add the following require entry to the composer.json file in the root of your project.
Finally, use Composer to install php-waf and its dependencies:
How to use
-
Configure your web server
-
Apache
- Nginx
-
- Create an Firewall instance
- waf.php
Available filters
| Filter | Description |
|---|---|
| Sql | SQL Injection |
| Crlf | CRLF Injection |
| Xss | Cross-site Scripting |
| Xml | XML Attacks |
Migration Guide to Version 2.0.0
What's changed
In version 2.0.0, I have made the following updates to improve consistency and adherence to PHP best practices:
- Namespace renamed
- Old namespace:
PhpWaf - New namespace:
Riverside\Waf
- Old namespace:
- Class names renamed
- Old names:
src/Filter/CRLF.php(ClassCRLF)src/Filter/SQL.php(ClassSQL)src/Filter/XML.php(ClassXML)src/Filter/XSS.php(ClassXSS)src/BaseFilter.php(ClassBaseFilter)
- New names:
src/Filter/Crlf.php(ClassCrlf)src/Filter/Sql.php(ClassSql)src/Filter/Xml.php(ClassXml)src/Filter/Xss.php(ClassXss)src/AbstractFilter.php(ClassAbstractFilter)
- Old names:
How to update your codebase
- Update class imports:
- Old way:
use PhpWaf\Firewall;use PhpWaf\Filter\CRLF;use PhpWaf\Filter\SQL;use PhpWaf\Filter\XML;use PhpWaf\Filter\XSS;
- New way:
use Riverside\Waf\Firewall;use Riverside\Waf\Filter\Crlf;use Riverside\Waf\Filter\Sql;use Riverside\Waf\Filter\Xml;use Riverside\Waf\Filter\Xss;
- Old way:
All versions of php-waf with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package riverside/php-waf contains the following files
Loading the files please wait ...