PHPackages                             vitodtagliente/pure - 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. vitodtagliente/pure

ActiveProject[Framework](/categories/framework)

vitodtagliente/pure
===================

A fresh and fast PHP micro framework

020PHP

Since Apr 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vitodtagliente/pure)[ Packagist](https://packagist.org/packages/vitodtagliente/pure)[ RSS](/packages/vitodtagliente-pure/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pure Framework
==============

[](#pure-framework)

Pure is a PHP fresh and fast micro framework.

#### How To install and configure

[](#how-to-install-and-configure)

1. Create the project using composer:

    ```
    composer create-project vitodtagliente/pure ProjectName -s dev
    ```
2. Configure the application edititng the files under *app/Config*

    - app/Config/app.ini contains all the application settings
    - app/Config/database.ini contains database connection settings
3. Generate the project key with the command

    ```
    php pure app generate:key
    ```
4. Run the application

    ```
    php -S localhost:8000
    ```

#### How to Update pure

[](#how-to-update-pure)

To update the framework and all the dependencies, run the following command:

```
composer update
```

Each time the file composer.json is changed, run the following command:

```
composer dump-autoload

```

#### MVC Pattern

[](#mvc-pattern)

Pure follows the MVC pattern, it means that the behaviour is defined by Controllers and routes.

1. Edit the file *app/Routes/web.php* and define the application routes:

    ```
