Bandama Application Lite Skeleton
Bandama App Lite is a skeleton project for Bandama Framework that includes Monolog for logging and Kahlan for unit tests., (*1)
Create a new project
It's recommended that you use Composer to create project., (*2)
$ composer create-project --no-interaction bandama/app-lite [project-name]
This will create new Bandama project and all required dependencies including Bandama Framework, Monolog and Kahlan. Bandama Project requires PHP 5.5 or newer., (*3)
Run the project
Got to the root directory of your project and run it typing, (*4)
$ cd [project-name]
$ php -S localhost:8008 -t web web/app.php
Browse to http://localhost:8008, (*5)
Project structure
-
app, (*6)
This folder contains globals elements of application. It contains App and Configuration classes., (*7)
-
core, (*8)
This folder contains App, Configuration and Controller classes which implements base application logic, (*9)
-
App.php : This class allow to extend and customize application logic, (*10)
- Configuration.php : Class allowing customization of application configuration parameters
- Controller.php : Base application controller class
-
config, (*11)
Config folder contains configuration parameters splitted in many files:, (*12)
- databases.php : Collection of databases configuration
- parameters.php : Application base parameters
- routes.php : Contains routes definition
- services.php : Services used by application
- sessions.php : User sessions parameters
- settings.php : Merging of other configuration files
-
spec, (*13)
Contains unit tests for project, (*14)
-
src, (*15)
Project source code, (*16)
-
controllers, (*17)
Controllers classes, (*18)
-
models, (*19)
Project models for interacting with databases and other sources of data, (*20)
-
views, (*21)
Contains views, (*22)
-
services, (*23)
Application services, (*24)
-
var, (*25)
-
logs, (*26)
Log files, (*27)
-
vendor, (*28)
Contains third party library, including Bandama Framework, Monolog and Kahlan, (*29)
-
web, (*30)
This folder contains public files, (*31)
- app.php : Application entry point
It is the entry point of application, (*32)
-
assets, (*33)
-
data, (*34)
Contains another assets and data, (*35)
-
plugins, (*36)
Contains plugins used in project e.g (bootstrap, jquery, etc.), (*37)
Change log
- 1.2.0
- Adding translator component
- Using Kahlan for unit tests
- 1.1.1
- Bug fixed - Removing index.php file in .gitignore
-
1.1.0, (*38)
- Improvement of application setup
- Adding HelloServiceTest class
- Adding basic layout content
- Adding PDO Session Handler management
-
1.0.1, (*39)
Credits
License
The Bandama Framework Skeleton is licensed under the MIT license. See License File for more information., (*40)