Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

alt3/cakebox

Repository files navigation

Build Status Documentation Status Total Downloads Software License

Cakebox

Framework agnostic virtual PHP development environment.

Abandoned repository

What do you get?

A 64-bit virtual machine running Ubuntu with PHP and a lot of useful software and features.

Documentation found here.

Requirements

  • VirtualBox 4.0 or higher
  • Vagrant 1.6.0 or higher
  • a machine with at least 4GB of memory and 2 Cores

Windows users:

Windows 10 users must additionally:

  • use latest VirtualBox and Vagrant
  • set VBoxManage.exe compatibility mode to Windows 8
  • apply this NDIS6 solution to fix VERR_INTNET_FLT_IF_NOT_FOUND error

Installation

Please note: that the initial download of the (~2GB) box image will take some time.

git clone https://github.com/alt3/cakebox.git
cd cakebox
cp Cakebox.yaml.default Cakebox.yaml
vagrant plugin install vagrant-vbguest
vagrant up

After the installation has completed you may either:

  1. log in to your box (now running Ubuntu 14.04 and PHP 5.6)
  2. upgrade your box to Ubuntu 16.04 LTS and PHP 7.1 or PHP 7.2 by running:
vagrant ssh
/cakebox/bash/ubuntu-16.sh
exit
vagrant reload

Additional information

Once provisioning has completed you are ready to:

Command Line Provisioning

Create fully preconfigured applications, databases and virtual hosts directly from the command line. Currently supports:

  • CakePHP 2/3
  • Laravel 5
  • Git
  • Composer
# Fresh preconfigured PHP framework applications
$ cakebox application add mycake3.app
$ cakebox application add mycake2.app --majorversion 2
$ cakebox application add mylaravel.app --framework laravel

# Git or Composer applications (both public and private)
$ cakebox application add mypublic.app --source http://github.com/your-name/repository
$ cakebox application add myprivate.app --source git@github.com:your-name/repository.git
$ cakebox application add myyii.app --source yiisoft/yii2-app-basic

# Databases and virtual hosts
$ cakebox database add holiday2015
$ cakebox vhost add idea.com /var/www/some-idea

Management Dashboard

Comes with a dashboard for your convenience.

Cakebox Dashboard