PHPackages                             firelit/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. [Database &amp; ORM](/categories/database)
4. /
5. firelit/framework

ActiveLibrary[Database &amp; ORM](/categories/database)

firelit/framework
=================

Simple PHP framework and helper classes for web projects

v2.0.0(9y ago)148[3 issues](https://github.com/firelit/firelit-framework/issues)MITPHPPHP &gt;=5.4.0

Since Jul 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/firelit/firelit-framework)[ Packagist](https://packagist.org/packages/firelit/framework)[ RSS](/packages/firelit-framework/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Firelit-Framework
=================

[](#firelit-framework)

[![Build Status](https://camo.githubusercontent.com/92d2432078ad84fa48d633b7c5666af20ff66406de5a27dc7811cf694822a253/68747470733a2f2f7472617669732d63692e6f72672f666972656c69742f666972656c69742d6672616d65776f726b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/firelit/firelit-framework)

Firelit's standard PHP framework provides a set of helpful classes for developing a website. They are created and namespaced so that they can easily be used with an auto-loader, following the [PSR-4 standard](http://www.php-fig.org/psr/psr-4/).

Requirements
------------

[](#requirements)

- PHP version 5.4.0 or higher
- PHP version 5.6.0 or higher for testing

External PHP Extensions:

- OpenSSL extension (required for `Crypto` and `CryptoKey` class)
- cURL extension (required for `HttpRequest` class)
- Database-specific PDO extension (e.g., `pdo-mysql`, required for `Query` class)

How to Use
----------

[](#how-to-use)

The easiest way to use this library is to use [Composer](http://getcomposer.org/) which automatically handles dependencies and auto-loading.

Here is an example of how you'd add this package to your `composer.json` under the require key:

```
    "require": {
        "firelit/framework": "^2.0"
    }
```

You could also add it from the command line as follows:

```
php composer.phar require firelit/framework "^2.0"

```

Alternatively, you could go the manual way and setup your own autoloader and copy the project files from `lib/` into your project directory.

MVC Architecture
----------------

[](#mvc-architecture)

This framework comes with classes to support building apps with the MVC architecture.

- [`Firelit\View`](#view) class
- [`Firelit\Controller`](#controller) class
- [`Firelit\DatabaseObject`](#databaseobject) (i.e., model) class
- `Firelit\Router` class (see example below)

An example implementation using these classes in a single entry web app:

```
