PHPackages                             luminance/framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. luminance/framework

ActivePackage[Framework](/categories/framework)

luminance/framework
===================

Modern PHP Framework designed for high-performance web applications

77[1 issues](https://github.com/luminancephp/framework/issues)PHP

Since Feb 6Pushed 8y agoCompare

[ Source](https://github.com/luminancephp/framework)[ Packagist](https://packagist.org/packages/luminance/framework)[ RSS](/packages/luminance-framework/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Logo](https://camo.githubusercontent.com/590cad90d4d4ca5b88ab5879c05c2901b5825ad8c5470aceac68229148eeb83e/68747470733a2f2f692e696d6775722e636f6d2f6f7570733755422e706e67)](https://camo.githubusercontent.com/590cad90d4d4ca5b88ab5879c05c2901b5825ad8c5470aceac68229148eeb83e/68747470733a2f2f692e696d6775722e636f6d2f6f7570733755422e706e67)

Luminance
=========

[](#luminance)

> Modern PHP Framework designed for high-performance web applications

Luminance is a modern PHP framework, designed with love using PHP 7.1, ready for use immediately out of the box.

[Documentation](https://luminance.netlify.com/#/)

Features
--------

[](#features)

- PSR4 Autoloader
- Modern Router (magic, pre-defined routes)
- Clean, documented code base
- ORM Database Table Structure
- Powerful HTTP Request and Response Library
- Compatible with PHP 7 and above
- Configuration System
- Caching System
- Built-in CSRF and Sanitizing of input fields
- Micro-template parser

Installation
------------

[](#installation)

To install Luminance, ensure you have PHP 7.0 or above installed, and run either:

```
git clone https://github.com/luminancephp/framework.git
```

Or, if you use Composer:

```
composer require "luminance/framework:dev-master"
```

Now, change into the folder, and open your text editor. Change the application and database configuration paths in app/Configuration folder. Sample structure is available [in the starter repository](https://github.com/luminancephp/starter)

App Folder Structure
--------------------

[](#app-folder-structure)

All applications have a small and simple folder structure:

- Cache
- Configuration
- Controllers
- Models
- Views

### Cache

[](#cache)

This is where all cache files written by Luminance\\Cache\\File.php

### Configuration

[](#configuration)

This is where all application configuration will be, you can reference it by calling the Configuration Loader

Example:

```
$configuration = new \Luminance\Configuration\Loader("file_name");

echo $configuration->config["test_field_name"];
```

### Controllers

[](#controllers)

All controllers here are case sensitive, the controller name must match the file name.

Example controller:

```
