Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
John Aldrich Bernardo edited this page Jun 16, 2018 · 7 revisions

A slim and very flexible framework for PHP

Important notice!!! This document is for Lollipop-PHP version 3 and above only. I'll be leaving version 2 behind.

IS LOLLIPOP FOR YOU?

You can use Lollipop when you're creating a simple and powerful web application. Lollipop removed the weight of large frameworks. Also Lollipop was created to offer cool functionalities and speed.

IT's EASY!

Configure .htaccess. Use below code as the default for your .htaccess Or see LMVC for routing using Lollipop

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

A simple Hello World Page

<?php

require('/path/to/lollipop-php/autoload.php');
// or if using composer
// require('./vendor/autoload.php');

// Your index page
\Lollipop\HTTP\Router::get('/', function($request, $response) {
    return $response->set('Hello World!');
});
DOWNLOAD

Get the latest version of Lollipop-PHP framework from our Git repository hosted on GitHub

git clone https://github.com/jabernardo/lollipop-php.git lollipop-php

or get it via composer

composer require "jabernardo/lollipop-php"

and start the development of your projects.

License

The LMVC framework is open-sourced software licensed under the MIT license.

Clone this wiki locally