Fork me on GitHub

Step 1: Download/Install Munee using composer

Add meenie/Munee to your composer.json file:

{
    "require": {
        "meenie/Munee": "*"
    }
}

If you haven't already, download Composer

$ curl -s http://getcomposer.org/installer | php

Now install Munee

$ php composer.phar install

Important: Make sure the cache folder inside vendor/meenie/Munee is writable by the server.


Step 2: Use Munee in your library

Create a file called munee.php that is web accessible and paste in the following

<?php
// Include the composer autoload file
require 'vendor/autoload.php';
// Echo out the response
echo \Munee\Dispatcher::run(new \Munee\Request());

Note: Update the correct path to the autoload.php file.


Step 3: Create A RewriteRule rule - Optional

Open the .htaccess file in your webroot and paste in the following:

#### Munee .htaccess Code Start ####
RewriteRule ^(.*\.(?:css|less|scss|js|coffee|jpg|png|gif|jpeg))$ munee.php?files=/$1 [L,QSA,NC]
#### Munee .htaccess Code End ####