2017 © Pedro Peláez
 

library application-skeleton

Cubex Project Application Skeleton

image

cubex/application-skeleton

Cubex Project Application Skeleton

  • Friday, January 8, 2016
  • by bajbnet
  • Repository
  • 3 Watchers
  • 0 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

=======, (*1)

Cubex Application Skeleton Project

Latest Stable Version Total Downloads Build Status Dependency Status HHVM Status Coverage Status, (*2)

Installation

Getting the base project

Composer is a dependency management library for PHP, which you can use to download the Cubex Framework, and example project., (*3)

Start by downloading Composer onto your computer., (*4)

Once composer is installed, to clone the base cubex project, you simply need to run, (*5)

composer create-project cubex/application-skeleton myproject

replacing myproject with the name of the project folder you wish to work with., (*6)

Getting your web environment setup

There are various ways in which you can get your cubex project running on a web server., (*7)

  • Virtual Host
  • htaccess
  • Raw PHP
  • PHP Development Server

Each environment requires you setup the Cubex Environmental variable, which is CUBEX_ENV, with the exception of the //PHP Development Web Server// which will apply "development" as default environment., (*8)

Configurations for the various options can be found below. Once you have your environment setup, you should be able to navigate to your configured path, and see the sample project., (*9)

Setting Your Virtual Host

<VirtualHost *:80>
    SetEnv CUBEX_ENV development

    DocumentRoot "project_path/public"
    ServerName cubex.local
    ServerAlias www.cubex.local
    ErrorLog "logs/cubex-error.log"
    CustomLog "logs/cubex-access.log" common

    RewriteEngine on
    RewriteRule ^(.*)$        /index.php  [L,QSA]
</VirtualHost>

htaccess

SETENV CUBEX_ENV development

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$        index.php  [L,QSA]

Raw PHP

Within public/index.php before initiating cubex, you can put the environment directly into php with, (*10)

putenv("CUBEX_ENV=development");

PHP Development Server

Running the following command within the root of your project will allow you to access this project with http://localhost:8080, (*11)

php -S 0.0.0.0:8080 public/index.php

The Versions

08/01 2016

dev-master

9999999-dev http://cubex.io

Cubex Project Application Skeleton

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

08/01 2016
19/02 2015
09/09 2014

1.1.0

1.1.0.0 http://cubex.io

Cubex Project Application Skeleton

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

29/08 2014

1.0

1.0.0.0 http://cubex.io

Cubex Project Application Skeleton

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires