Getting started with BF

Introduction

Bossanova is an open source, light, fast and easy to learn PHP Framework, that includes free support for developers. The BF was created oriented to RESTful requests and covers various modern application needs. It has a very optimized code and has a lower memory consumption in comparison to other frameworks. Although it has a very small library that keeps the simplicity of a truly plug and play tool, the framework is a really powerful development tool.

It is really easy, because you can run your code creating none or just a few configuration rules. It is powerful, because developers can work directly with the core classes with very centralized information availability. Thus, is fast to find exactly what is needed, easier to debug, deploy and keep your application under control.


Server Requirements

Bossanova has just a few requirements, and in this tutorial, we are going to cover all needs using Bitnami Wamp, including Postgresql extension. But of course, you can run the framework in any environment that includes the following technologies.

  1. PHP 5.3+
  2. PDO PHP Extension
  3. mod_redirect
  4. ImageMagick (required only by some social network modules).
  5. APC (optional, but it will help in your application performance).

 

Download

You can find the latest BF version at
http://www.bossanova-framework.com/download

Alternatively, you can download the source code from
http://www.github.com/bossanova-framework

Structure

The BF has a similar structure to any other frameworks, having just a few, but not less powerful libraries. So, you can get the job done with a much less effort. Because its simplicity and internal optimization, you will be able to save server resources and deploy better applications.

  • d models/ 
  • d modules/
  • d vendor/
  • d public/templates
  • d public/components
  • d public/index.php
  • f config.inc.php

Models folder
Common models.

Modules folder
Your modules, controllers and views will be placed here.

Vendor folder
Libraries and third part components

Models folder
Common models.

Templates folders
Full layout repository. Your templates goes here, including files such HTML, CSS, JS and images;

Public Files

  • .htaccess: your mod_redirect configuration.
  • index.php: index file.
  • bossanova.js: global default JS functions.

config.inc.php: your bossanova framework settings.

Installation

If you already have a web server installed, you can simply place the downloaded files in your web server, check the configuration config.inc.php and start to code. But, if you don't have a web server you can refer to our article From zero to Bossanova PHP Framework with Bitnami before continue reading this documentation.

 

Configuration

All configuration settings are available in the config.inc.php file. As a plug and play tool, you can start developing without virtually none configuration, except in case you are willing to work with users, permissions, special routing, CMS or any other advanced plugins

So, to run your application with all advanced features, you need to create a database restored from the default dump file: bossanova_mysql.sql or bossanova_pgsql.sql, then add your database connection configuration in your config.inc.php file.