Install

Clone a project skeleton into your new applications directory:

sudo git clone https://github.com/discophp/project.git your-project && cd your-project

Then install the framework and dependencies via composer:

sudo composer install

 

Or you can do the 1 liner:

sudo composer create-project discophp/project your-project-folder

 

Configuring your Apache2 or Nginx Server to handle URL rewriting

Make sure you have the rewrite module installed and enabled

sudo a2enmod rewrite

 

.htaccess

<IFModule mod_rewrite.c>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

</IfModule>

For Nginx Servers

Add this directive to your sites configuration file:

location / {
        try_files $uri $uri/ /index.php?$query_string;
}