HazaarMVC is a MVC framework for PHP.
This repository has been archived on 2025-09-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2016-05-24 11:46:16 +10:00
.hazaar Auto-increment module versions for release 2016-02-22 14:16:22 +11:00
build Auto-increment module versions for release 2015-12-09 15:11:51 +11:00
Hazaar Fixed DBI config when plain array 2016-05-18 17:01:22 +10:00
Libs Updated default error page. 2016-03-31 13:00:54 +11:00
tests Added warlock config file for test application 2015-12-07 10:45:31 +11:00
.gitignore Updated gitignore for eclipse project 2016-05-24 11:46:16 +10:00
.gitlab-ci.yml Build script tweaks 2015-12-07 11:40:28 +11:00
DEPLOY.md Added a simple deploy instructions file. 2016-02-22 14:11:03 +11:00
README.md Updated the README.md file with better installation instructions. 2015-12-11 12:08:32 +11:00

Introduction

Getting up and running with HazaarMVC is really easy and is done in only a few basic steps, depending on the operating system you are working with. I suggest Ubuntu Linux as Hazaar has been developed on Ubuntu so it will work with it. I have made some effort to ensure that Hazaar is cross-platform compatible, particularly with Windows support, but as I do not develop under Windows daily, some bugs may arise. If so, please create a support issue so they can be fixed.

Hazaar MVC is installed and managed with the Hazaar Tool. A simple program that communicates with our platform server to ensure you have the latest versions of Hazaar MVC modules installed correctly for your application.

Linux Installation

Using Packages (Debian/Ubuntu)

A Debian package repository is available which will allow you to keep your copy of Hazaar up to date with the latest release as part of your normal package update processes.

To add the Hazaar MVC repository to your host:

wget -O - "http://packages.hazaarmvc.com/repo-pub.key" | sudo apt-key add -
echo "deb http://packages.hazaarmvc.com/stable /" | sudo tee /etc/apt/sources.list.d/hazaar.list
sudo apt-get update

Then you can simply install Hazaar by doing the following:

apt-get install hazaar

Once you have installed the Hazaar Tool you can create a new application based on the example application by running the following commands:

mkdir your_app_dir
cd your_app_dir
hazaar init

This will download the example application and it's dependencies, which is the Hazaar MVC core module. To install other modules you can do something like:

hazaar install module dbi

This will install the DBI database access module. To get a list of available modules run:

hazaar list modules

Install from source

If you prefer to manually install the framework you can do so by following the below procedure. Using GIT you can download the latest stable branch (or master if you like to live danerously).

Step 1 - Download

> git clone -b stable git://git.funkynerd.com/hazaar/hazaar-mvc

Put it anywhere you want. For a production installation I suggest /usr/share/hazaar-mvc

Step 2 - Installation

Hazaar MVC can live in a central location and your applicationcs can all link to the one source tree. This is handy for development as it makes sure all your applications are running on the same version of Hazaar MVC.

If you installed into /usr/share/hazaar-mvc, just do this in your application directory:

cd your_app_dir
mkdir library
cd library
sudo ln -s /usr/share/hazaar-mvc/Hazaar

You are now ready to get apache up and running.