barebone / barebone
MVC Web Framework
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.5.0
- barebone/barebone-core: 0.1.*
This package is not auto-updated.
Last update: 2023-03-18 11:20:28 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.