samsonos / php_htaccess
SamsonPHP htaccess creating module
dev-master
2014-12-11 13:52 UTC
Requires
- samsonos/php_core: 1.*
Requires (Dev)
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: 2.0.*@dev
This package is not auto-updated.
Last update: 2024-12-21 17:43:23 UTC
README
#SamsonPHP module for automatic creating htaccess rules
##Using module in your project
To use SamsonPHP framework in your project you must add its dependency in your composer.json
:
"require": { "samsonos/php_htaccess": "*" },
For parsing e404 rules from your .txt file you must create configuration and call method error404()
Example usage:
// Create configuration class class HtaccessConfig extends \samson\core\Config { public $__module = 'htaccesscreate'; public $domain = 'example.com'; } /* * * * */ // Call parsing method m('htaccesscreate')->error404('myfile.txt');
Developed by SamsonOS