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
git clone https://github.com/ManifestWebDesign/dabl.git your-project
cd your-project
composer install
Edit config/connections.ini
with your database credentials
Point your host to the /{your-project}/public/
directory
Open http://{your-project}/generator/
in a web browser
Run the following from the project root
phpunit
/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
DABL is released under the MIT license. See the file LICENSE for the full text.