PHPackages                             andrelrg/frasma-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrelrg/frasma-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

andrelrg/frasma-php
===================

PHP simple development helper packages

128PHP

Since Dec 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/andrelrg/frasmaPHP)[ Packagist](https://packagist.org/packages/andrelrg/frasma-php)[ RSS](/packages/andrelrg-frasma-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Frasma PHP
==========

[](#frasma-php)

PHP Basic Components
--------------------

[](#php-basic-components)

This is a basic PHP component package, extremelly simple to use and recommended for small projects where you don't need to import an extremely heavy framework.

### Instaling

[](#instaling)

composer require andrelrg/frasma-php

### How to use

[](#how-to-use)

#### Namespace

[](#namespace)

The framework will search for the `App` namespace.

#### Configuration

[](#configuration)

If you will make use of Cache or Database functions of the framework, you will need to create a configuration file in json where you will put all the configuration needed.

~Configuration file example:

```
{
    "database":{
        "mysql": {
            "host":"localhost",
            "port":"3306",
            "user":"root",
            "password":"",
            "database":"database"
        }
    },
    "redis":{
        "password": "",
        "database": 0,
        "host": "redis",
        "port": 6379
    }
}
```

And then, in the begging of your code you'll need to put this code:

```
