2017 © Pedro Peláez
 

library project

Project skeleton for Dietcube 1.0.x

image

dietcube/project

Project skeleton for Dietcube 1.0.x

  • Thursday, January 28, 2016
  • by sotarok
  • Repository
  • 29 Watchers
  • 1 Stars
  • 120 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Project skeleton for Dietcube

Setup

This package is a project skeleton for Dietcube., (*1)

composer create-project dietcube/project -s dev your-project

(your-project is a sample directory name for the project. Camelized name of the directory is used as your application namespace (e.g. YourProject\\)., (*2)

Configuration File

edit app/config/config.php
edit app/config/config_{DIET_ENV}.php

Set debug mode on:, (*3)

<?php

return [
    'debug' => true,

    ...
];

Environment

DIET_ENV is the ENV name., (*4)

If DIET_ENV is not set for any environment variable (Dietcube checks $_SERVER['DIET_ENV'] and getenv('DIET_ENV')), Dispatcher::getEnv() returns production by default., (*5)

Typically, development is used for development environment so dietcube-project's initialise script generates app/config/config_development.php for default development config file., (*6)

Example: Configuration of Web Server

For example, set DIET_ENV as development., (*7)

Apache Conf:, (*8)

SetEnv DIET_ENV production

Nginx Conf (with php-fpm):, (*9)

fastcgi_param  DIET_ENV production;

Run with PHP built-in server

DIET_ENV=development php -d variables_order=EGPCS -S 0:8080 -t webroot/

The Versions

28/01 2016

dev-master

9999999-dev

Project skeleton for Dietcube 1.0.x

  Sources   Download

MIT

The Requires

 

The Development Requires

19/01 2016

1.0.0

1.0.0.0

Project skeleton for Dietcube 1.0.x

  Sources   Download

MIT

The Requires

 

The Development Requires