samsonos/php_htaccess

SamsonPHP htaccess creating module

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/samsonos/php_htaccess

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

This package is not auto-updated.

Last update: 2025-10-11 21:43:30 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