Download the PHP package midgard/midgardmvc-project-template without Composer

On this page you can find all versions of the php package midgard/midgardmvc-project-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package midgardmvc-project-template

midgardmvc-project-template

This is a project template for creating new websites or applications powered by the Midgard MVC framework for PHP.

Creating new Midgard MVC projects

This project template is designed to be used together with the Composer PHP dependency management tool. You can create new Midgard MVC projects on your current machine with:

$ composer create-project midgard/midgardmvc-project-template myproject

This will download the Midgard MVC project template and set it up together with the dependencies. This new project will be set up in the myproject directory.

Where is everything?

The Midgard MVC project template follows a file structure typical for Composer-installed Midgard MVC applications:

Creating development VMs with Vagrant

Vagrant gives an easy way to manage development virtual machines using Midgard MVC.

Dependencies

Installation

To set up a Vagrant project, download this project template, and then:

$ cd setup/vagrant
$ vagrant up

The up command will download a Ubuntu 12.10 base image, start it in VirtualBox and then use the Puppet configuration management system to set up Midgard2, PHP, AppServer-in-PHP, and your Midgard MVC project.

This setup can take a long time depending on your internet connection. Once it is done, there should be a Midgard MVC instance running based on your project setup. You can access it at http://localhost:8181.

Usage

The Vagrant VM will mount your project directory over NFS, and so all of your file changes will apply to the virtual machine instantly. If you need to tweak something on the VM, you can get an SSH connection to it with:

$ vagrant ssh

Your mounted project directory will be available in /opt/midgardmvc.

Restarting AiP

Since AiP is a persistent PHP process, you'll need to restart it when you make changes to your files. You can do that after vagrant ssh with:

$ sudo service midgardmvc stop
$ sudo service midgardmvc start

Managing the virtual machine

You can use the vagrant halt command to stop your virtual machine, and vagrant up to restart it.

If you want to start from scratch, simply run vagrant destroy, and rebuild the VM image with another vagrant up.

If you want to distribute your VM image with your team, read the Vagrant packaging documentation.


All versions of midgardmvc-project-template with dependencies

PHP Build Version
Package Version
Requires midgard/midgardmvc-core Version dev-master
aip/aip Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package midgard/midgardmvc-project-template contains the following files

Loading the files please wait ....