samsonos/php_htaccess

SamsonPHP htaccess creating module

dev-master 2014-12-11 13:52 UTC

This package is not auto-updated.

Last update: 2024-11-09 17:09:00 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