vfeitoza / dabl

PHP ORM and Optional MVC Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

DABL

A lightweight PHP MVC framework. It consists of 4 primary components:

  • DABL ORM - Reads your database schema and creates active record classes for your tables
  • DABL Controller - Maps request routes to controller classes
  • DABL View - Simple PHP view renderer
  • DABL Generator - Generator for your models, views and controllers

Creating a New Project

Checkout Code

git clone https://github.com/ManifestWebDesign/dabl.git your-project
cd your-project
composer install

Configure the Database Connection

Edit config/connections.ini with your database credentials

Configuring the Web Server

Point your host to the /{your-project}/public/ directory

Generate Models, Views and Controllers

Open http://{your-project}/generator/ in a web browser

Running Tests

Run the following from the project root

phpunit

Project File Structure

/config/ - Constains configuration files

/controllers/ - Contains classes for handling http requests

/logs/ - By default, the application will log errors to error_log in this directory

/models/ - Contains generated classes for interacting with database tables

/public/ - Contains static assets (JavaScript, CSS), and server.php, which is the entry point for all requests

/tests/ - Contains test sources

/views/ - Contains PHP/HTML views

License

DABL is released under the MIT license. See the file LICENSE for the full text.

About

PHP ORM and Optional MVC Framework

License:MIT License


Languages

Language:PHP 71.5%Language:CSS 16.1%Language:HTML 5.8%Language:JavaScript 4.6%Language:ApacheConf 2.0%