Espier

Icon

No theme, Just views

Get started fast with Flourish

header_logo_betaIn the recent few months, I have been developing with Flourish since I found it very easy and highly customizable.

What is Flourish?

Flourish is a PHP unframework — a general-purpose, object-oriented library.
It has a modular architecture, meaning it isn’t strictly MVC. It focuses on being secure, well documented and easy to use, while solving problems intrinsic to web development.

Quoted from Flourish Official Website

But, I found out there still a tiny hurdle needed for a beginner to hop in with Flourish. I hope this post will bring the gap closer and easier for the beginner to get started with Flourish the PHP unframework library.

Here, I include a prepared folder structure for the user to know where to start. But, its all based on my programming style, you are welcome to change if it does not suit you.

Folder Structure

I proposed to following folder structure:

Flourish Project Folder

  • classes
  • css
  • js
  • resources
    • library
      • flourish
    • templates
    • config.php
    • init.php
  • session
  • storage
  • index.php

classes: Where you put your own classes inside eg. Users

css: Where you put your css stylesheets

js: Where you put the javascript

resources: All the includable files like library, flourish templates and the important flourish config.php and init.php. Remember to download flourish (here) and place it in flourish folder inside.

session: session folder for flourish to store the session file. [Must be writable]

storage: for storage like images or the place where the flourish need to create files. [Must be writable]

Config.php and Init.php

Config and Init are both important files in flourish library. Please take a look at the sample I have attached. Everytime you need to load flourish library class, you must load it like index.php, I have place on the root directory.

<?php
include './resources/init.php';
// Your Code starts here
?>

You can download folder structure here:  Flourish Project. Place the downloaded Flourish library inside resources/library/flourish and you are good to go.

*There is a constructor_functions.php file inside resources/library/flourish, please do not delete it.

Category: Flourish

Tagged: , ,

View Comments

  1. Mahendran says:

    Yaa.!! thkx u ShernShiou. Come up with Part II tutorial k

  2. ShernShiou says:

    Sure Bma.. thank you..

Leave a Reply

blog comments powered by Disqus

Links