2017 © Pedro Peláez
 

library framework

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

image

ngames/framework

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

  • Tuesday, January 9, 2018
  • by nbraquart
  • Repository
  • 1 Watchers
  • 0 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

NGames Framework - A simple PHP framework

Build Status License Last release, (*1)

Coverage, (*2)

Installation

Use composer to install the application: composer require ngames/framework. Or you can update the composer.json file by adding the following line in the require object:, (*3)

{
    "require": {
        "ngames/framework": "~0.3"
    }
}

Usage

Configuration file

You need to write a configuration file using INI format. Typically, this file is called config.ini and is located in the config folder at the root of the project. Here is an example with all supported configuration keys:, (*4)

# Database configuration
database.host       = "127.0.0.1"
database.username   = "db_user"
database.password   = "db_password"
database.name       = "db_name"

# Log configuration (destination must be a file), the level is the minimum level for logging messages
log.destination     = "./logs/application.log"
log.level           = "debug"

# Whether the debug mode is enabled or not (default is false)
debug               = "true"

Application initialization

In a public folder in the root of the project, create a file named index.php with the following content:, (*5)

<?php
defined("ROOT_DIR") || define ("ROOT_DIR", dirname(__DIR__));
chdir(ROOT_DIR);

// Initialize and run the application
require_once ROOT_DIR . '/vendor/autoload.php';
\Ngames\Framework\Application::initialize(ROOT_DIR . '/config/config.ini')->run();

That's all you need to startup the application., (*6)

Controllers

Controllers are located in a src folder in the root of the project. They are grouped by folders representing the modules. The default module is Application., (*7)

The Versions

09/01 2018

dev-master

9999999-dev

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Braquart

09/01 2018

dev-dev

dev-dev

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Braquart

22/12 2017

v0.1

0.1.0.0

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Braquart

05/02 2017

v0.0.1

0.0.1.0

The NGames Framework is a simple PHP framework developped for the websites https://www.worldwar.fr and http://www.guide-tnt.fr

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nicolas Braquart