barebone/barebone

MVC Web Framework

v0.1.3 2016-09-24 00:48 UTC

This package is not auto-updated.

Last update: 2022-01-22 04:48:22 UTC


README

MVC framework for building PHP web applications

Installation

composer create-project barebone/barebone --no-dev [YOUR_PROJECT_NAME]

At a glance

Configuration

Setup your application details and database connection /app/config.json

Models

Define your models as needed in /app/models

Controllers

Write your controller actions in /app/controllers

Libraries

Anything else under the namespace App can be created in /app/lib

Views

Add as many views as referenced in your controllers in /app/views

Routing

Connect your controller "actions" to URLs in /app/routes.php

Logging

You can write from models and controllers to a log in /app/logs

Database

You can manage your database schema using migrations in /app/database

Frontend Assets

Get gulp with "npm install" in /app/frontend, comes preconfigured for SASS and JS

Javascript

Develop your frontend code /app/frontend/js supported by Browserify and Babel.

Stylesheets

By default SASS renders to CSS from /app/frontend/sass, but LESS is also available.

Hosting

Upload everything to Server with at least PHP 5.5 and point your virtual host to /public

Contributing

Any PR is welcome. If you find issues, please report.

https://github.com/barebone-php/barebone-core