moflet / moflet
There is no license information available for the latest version (dev-master) of this package.
dev-master
2013-03-09 08:29 UTC
Requires
- php: >=5.3.3
- j4mie/paris: >=1.2.0
This package is not auto-updated.
Last update: 2024-04-13 11:05:07 UTC
README
Moflet is a Simple and Fast PHP framework.
Installation
Setup composer
$ cd /www/HOST/ # Project Directory
$ curl -s https://getcomposer.org/installer | php
Create composer.json
$ vi composer.json
{
"require": {
"moflet/moflet": "dev-master"
}
}
Install Moflet
$ php composer.phar install
Setup Project
$ php vendor/moflet/moflet/bin/mof-init
Apache configuration
$ vi httpd.conf
<VirtualHost *:80>
DocumentRoot /www/HOST/public/
ServerName HOST
ErrorLog logs/HOST.error_log
CustomLog logs/HOST.access_log common
<Directory /www/HOST/public/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|images|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]
</Directory>
</VirtualHost>