https://github.com/brainsware/bacon
The Bacon PHP framework
https://github.com/brainsware/bacon
bacon-php-framework php php-framework php-orm
Last synced: 5 months ago
JSON representation
The Bacon PHP framework
- Host: GitHub
- URL: https://github.com/brainsware/bacon
- Owner: Brainsware
- License: apache-2.0
- Created: 2012-05-21T21:43:35.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T10:22:17.000Z (over 2 years ago)
- Last Synced: 2025-03-28T21:19:09.688Z (10 months ago)
- Topics: bacon-php-framework, php, php-framework, php-orm
- Language: PHP
- Homepage:
- Size: 265 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Got bacon?
==========
The bacon PHP framework is a lean, clean, simple and fast MVC framework without too much fuzz about it.
Server Requirements:
* A webserver
* PHP 7.0 or greater ([php.net](http://php.net/))
* Composer ([getcomposer.org](http://getcomposer.org/))
# Installation:
Once you have PHP and composer set up, you can create a skeleton project with the following:
```
% composer create-project brainsware/bacon-dist project-name
```
This will download all the necessary software, and create all important directories and sample configuration files for your new project:
```
Installing brainsware/bacon-dist (1.0)
- Installing brainsware/bacon-dist (1.0)
Loading from cache
Created project in project-name
Loading composer repositories with package information
Installing dependencies
- Installing brainsware/php-markdown-extra-extended (dev-master 1.0)
Cloning 1.0
- Installing brainsware/sauce (1.0)
Loading from cache
- Installing minmb/phpmailer (dev-master df44323)
Cloning df443234ad0ca10cbf91a0c0a728b256afcab1d1
- Installing twig/twig (dev-master ba67e2c)
Cloning ba67e2cf8e2ca6cada1de5a316a724df648c52ac
- Installing brainsware/bacon (1.0)
Loading from cache
Writing lock file
Generating autoload files
```
# Configuration:
Bacon uses PHP files for storing all of its configurations.
The skeleton project we provide comes with an Intro controller, which is set as the default fallback controller in `Config/Base.php`
The second config file you will want to look at is `Config/Database.php`
Here are the basic options you will want to set for your database:
```
'server' => 'db.dbznet', # Enter your server host here
'name' => 'blogDB', # The name of your database
'type' => 'mysql', # Anything your PDO Installation supports. (http://www.php.net/manual/en/pdo.drivers.php)
'username' => 'blogDBuser', # The username you want to connect to your database with
'password' => 'VryScrPswd', # The password.
```
Bacon does not provide default values for these options. If your application needs a database, you will have to create it and connect Bacon to it via `Config/Database.php`.