https://github.com/integrii/lightningphp-website
The public website for LightningPHP. Created with LightningPHP!
https://github.com/integrii/lightningphp-website
Last synced: 3 months ago
JSON representation
The public website for LightningPHP. Created with LightningPHP!
- Host: GitHub
- URL: https://github.com/integrii/lightningphp-website
- Owner: integrii
- License: gpl-3.0
- Created: 2014-12-08T18:44:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T03:01:38.000Z (over 10 years ago)
- Last Synced: 2025-01-14T16:35:33.507Z (5 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
# Overview
[](https://codeclimate.com/repos/54555f2a695680525f0800b6/feed)## What is LightningPHP?
LightningPHP is a FAST, mega-lightweight MVC (Model, View, Controller) framework for PHP. Unlike most every other framework available, LightningPHP includes next to nothing by default. This is a minimal barebones MVC framework with no fluff, no complication, and no wasted processing time. LightningPHP can have any PHP Class plugged in as a library or model without custom rewriting or special library versions.In my use case, using nginx, HHVM and LightningPHP resulted in a **15x speed increase** vs the same app with CodeIgniter and Apache!
## Who should use LightningPHP?
If you are just looking to stand up a PHP website fast, LightningPHP is probably **not** the best framework for you. You probably do **not** want to use LightningPHP if you are someone who:- Wants to use a large collection of pre-built functions.
- Wants to stand up a PHP site as easily as possible.
- Does not care about servicing thousands of requests per second.You probably **do** want to use LightningPHP if you are someone who:
- Likes to keep things simple.
- Wants an *extremely* fast application.
- Wants to be able to use whatever libraries they want without rewriting them.
- Dislikes framework specific learning.## What makes it so fast?
- It is written in just a single class!
- Loaded models and libraries do not load other models or libraries until you explicitly ask for them.
- Child classes only load a pointer if a model or library has been constructed previously.
- The framework does not assume you want anything loaded by default - not even MySQL support.
- The framework uses static defines instead of variable substitution.## Core Componets
LightningPHP is made up of a few core componets. There are as few as possible to keep things simple.
- Models ``$this->loadModel('')``
- Views ``$this->loadView('')``
- Controllers ``$this->loadController('')``
- Libraries ``$this->loadLibrary('')``
- Configs ``$this->loadConfig('')`` and ``$this->getConfig('')``Each type of componet has its own directory at the application root. Learn more [on the wiki](https://github.com/integrii/LightningPHP/wiki/Command-List).
## Example Application
Check out a complete example LightningPHP application [here](https://github.com/integrii/LightningPHP/wiki/Example-Application).