2017 © Pedro Pelรกez
 

library flight-skeleton

Skeleton for applications based on the Flight PHP microframework.

image

damel/flight-skeleton

Skeleton for applications based on the Flight PHP microframework.

  • Thursday, November 5, 2015
  • by daniel.melzer
  • Repository
  • 1 Watchers
  • 15 Stars
  • 119 Installations
  • ApacheConf
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Flight Skeleton

This skeleton provides you a quick start for the development of an application with the Flight PHP microframework., (*1)

It also contains some templates based on HTML5 Boilerplate., (*2)

Downloading the skeleton

First, check that you have installed and configured a web server (such as Apache) with PHP 5.3.3 or higher. Then use composer to create your project:, (*3)

$ composer create-project damel/flight-skeleton path/to/install, (*4)

You'll find this structure:, (*5)

path/to/install
โ”œโ”€โ”€ app
โ”‚ย ย  โ”œโ”€โ”€ config
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ routes.php
โ”‚ย ย  โ”œโ”€โ”€ logs
โ”‚ย ย  โ””โ”€โ”€ resources
โ”‚ย ย      โ””โ”€โ”€ templates
โ”‚ย ย          โ”œโ”€โ”€ 404.php
โ”‚ย ย          โ”œโ”€โ”€ index.php
โ”‚ย ย          โ””โ”€โ”€ layout.php
โ”œโ”€โ”€ cli
โ”œโ”€โ”€ public
โ”‚ย ย  โ”œโ”€โ”€ css
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ main.css
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ normalize.css
โ”‚ย ย  โ”œโ”€โ”€ img
โ”‚ย ย  โ”œโ”€โ”€ js
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ modernizr-2.6.2.min.js
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ plugins.js
โ”‚ย ย  โ”œโ”€โ”€ .htaccess
โ”‚ย ย  โ”œโ”€โ”€ apple-touch-icon*.png
โ”‚ย ย  โ”œโ”€โ”€ crossdomain.xml
โ”‚ย ย  โ”œโ”€โ”€ favicon.ico
โ”‚ย ย  โ”œโ”€โ”€ humans.txt
โ”‚ย ย  โ”œโ”€โ”€ index.php
โ”‚ย ย  โ””โ”€โ”€ robots.txt
โ”œโ”€โ”€ src
โ”‚ย ย  โ””โ”€โ”€ Acme
โ”‚ย ย      โ””โ”€โ”€ Demo
โ”‚ย ย          โ””โ”€โ”€ Controller
โ”‚ย ย              โ””โ”€โ”€ Demo.php
โ”œโ”€โ”€ vendor
โ”‚ย ย  โ”œโ”€โ”€ composer
โ”‚ย ย  โ”œโ”€โ”€ mikecao
โ”‚ย ย  โ””โ”€โ”€ autoload.php
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ composer.lock
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

Creating the application

If you want to define global constants or other settings, you can use the config.php in app/config/., (*6)

Routing

To define your routes, use the file app/config/routes:, (*7)

<?php

//Routes of the application.
\Flight::route('/', array('\Acme\Demo\Controller\Demo', 'index'));

Controllers

Place your code in the src folder. All classes from here are autoloaded by their namespace. For an example, have a look in the demo code in src/Acme/demo/Controller/Demo.php. As you can see, the controller uses the namespace Acme\Demo\Controller., (*8)

Templates

Templates are loaded by default from app/resouces/templates/. You can change this by editing the path in app/config/config.php., (*9)

License

The skeleton is licensed under the MIT license., (*10)

The Versions

05/11 2015

dev-develop

dev-develop

Skeleton for applications based on the Flight PHP microframework.

  Sources   Download

MIT

The Requires

 

skeleton flight

27/03 2015

dev-master

9999999-dev

Skeleton for applications based on the Flight PHP microframework.

  Sources   Download

MIT

The Requires

 

skeleton flight