Install the website template

A bare website template using the BlueMvc framework can be downloaded directly via Composer. This template can be a good starting point for your own website and will be used in this tutorial.

Install with Composer

Run the following command from the command prompt where /path/to/webroot is the path to your empty web root.

$ composer create-project bluemvc/bluemvc-website /path/to/webroot

The website template will now be downloaded and all required dependencies will be installed. Press Enter if prompted whether you want to remove existing VCS files.

The website template works out-of-the-box with the Apache webserver with the AllowOverride option enabled. If you are using nginx or any other webserver, adjust the settings according to the downloaded .htaccess-file.

Check installation

Use your browser to navigate to the url corresponding to the web root used above. For this tutorial we will assume http://localhost/.

A page similar to this should be displayed:

Template installed

Congratulations! You have now successfully installed the BlueMvc website template.

✎ Published in category get started