{"id":20334842,"url":"https://github.com/integrii/lightningphp","last_synced_at":"2025-04-11T21:51:21.504Z","repository":{"id":19551359,"uuid":"22799949","full_name":"integrii/LightningPHP","owner":"integrii","description":"LightningPHP is an HHVM compatible, minimal MVC framework that is obsessed with speed.","archived":false,"fork":false,"pushed_at":"2015-08-03T19:30:45.000Z","size":422,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T09:51:09.852Z","etag":null,"topics":["framework","minimal-mvc-framework","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"xiemingzhi/angularjswebapp","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integrii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-10T02:40:28.000Z","updated_at":"2020-02-06T18:45:45.000Z","dependencies_parsed_at":"2022-08-24T13:40:29.659Z","dependency_job_id":null,"html_url":"https://github.com/integrii/LightningPHP","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrii%2FLightningPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrii%2FLightningPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrii%2FLightningPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrii%2FLightningPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integrii","download_url":"https://codeload.github.com/integrii/LightningPHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","minimal-mvc-framework","php"],"created_at":"2024-11-14T20:38:21.868Z","updated_at":"2025-04-11T21:51:21.478Z","avatar_url":"https://github.com/integrii.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n[![Code Climate](https://codeclimate.com/repos/54555f2a695680525f0800b6/badges/00b704f87ed1ba2dc745/gpa.svg)](https://codeclimate.com/repos/54555f2a695680525f0800b6/feed)\n\n## What is LightningPHP?\nLightningPHP 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.\n\nIn my use case, using nginx, HHVM and LightningPHP resulted in a **15x speed increase** vs the same app with CodeIgniter and Apache!\n\n\n## Who should use LightningPHP?\n\nYou will love LightningPHP if you are someone who:\n\n- Likes to keep things simple.\n- Wants an *extremely* fast application.\n- Wants to be able to use whatever libraries they want without rewriting them.\n- Dislikes framework specific learning.\n\nIf you are just looking to stand up a PHP website without much work, LightningPHP is probably not the best framework for you.  You probably do not want to use LightningPHP if you are someone who:\n\n- Wants to use a large collection of pre-built functions.\n- Wants to stand up a PHP site as quickly as possible.\n- Does not care about servicing hundreds or thousands of requests per second.\n\n\n\n## What makes it so fast?\n- It is written in just a single class!\n- Loaded models and libraries do not load other models or libraries until you explicitly ask for them.\n- Child classes only load a pointer if a model or library has been constructed previously.\n- The framework does not assume you want anything loaded by default - not even MySQL support.\n- The framework uses static defines instead of variable substitution.\n\n\n## Core Componets\nLightningPHP is made up of a few core componets.  There are as few as possible to keep things simple.  \n- Models ``$this-\u003eloadModel('')``\n- Views ``$this-\u003eloadView('')``\n- Controllers ``$this-\u003eloadController('')``\n- Libraries ``$this-\u003eloadLibrary('')``\n- Configs ``$this-\u003eloadConfig('')`` and ``$this-\u003egetConfig('')``\n\nEach type of componet has its own directory at the application root.  Learn more [on the wiki](https://github.com/integrii/LightningPHP/wiki/Function-List).\n\n## Get Started\n\nTo get started using LightningPHP, download [the latest release](https://github.com/integrii/LightningPHP/archive/Release2.tar.gz) and unzip it to your PHP or HHVM web server webroot. When you start it up you will see a 'Welcome to LightningPHP' page that comes with a sample controller, model, view, config and library. Use these pages as templates to start coding your app!\n\n\n## Example Application\nCheck out a complete example LightningPHP application [here](https://github.com/integrii/LightningPHP/wiki/Example-Application).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrii%2Flightningphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegrii%2Flightningphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrii%2Flightningphp/lists"}