Skeleton application for the Brick framework.
First install the dependencies with composer:
cd /path/to/mortar
composer update
This is the quickest and easiest way to start playing with the application:
cd /path/to/mortar/public
php -S localhost:8000 index.php
Just point your browser to http://localhost:8000/
and you should get the welcome page.
To host permanently the application on your development machine, create a virtual host in httpd.conf
pointing to the public
directory:
<VirtualHost *:80>
ServerName mortar.localhost
DocumentRoot /path/to/mortar/public
# This ensures that the .htaccess directives will be taken into account
<Directory "/path/to/mortar/public">
AllowOverride All
</Directory>
</VirtualHost>
Restart Apache, then create an entry for this virtual host in your hosts file:
127.0.0.1 mortar.localhost
Now point your browser to http://mortar.localhost/
and you should get the welcome page.