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

ActiveLibrary

vitodtagliente/pure-core
========================

The Pure Core Component

036PHP

Since Mar 2Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Pure Core Component
===================

[](#pure-core-component)

Main framework core functionality.

#### Config management

[](#config-management)

The Config class let to manage application's configuration loading .ini config files.

Set the config base path

```
Pure\Config::path("mypath...");
```

Wich means that by default config files will be found in that path.

Consider the following ini file, which is placed in *app/Config/app.ini*

```
; Common application settings
one = 1
name = "config_test"
```

To retrieve these settings we can type:

```
Pure\Config::path("app/Config");
// application's code...
$one = Pure\Config::get('app.one');
$name = Pure\Config::get('app.name');
```

Where the syntax **first.name** means:

- **first** refers to the ini filename
- **second** refers to the param inside the config file

Instead of naming the complete namespace, there is the alias function *config*:

```
Pure\Config::get('app.one') == config('app.one')
```

It is possible to load config from ini file that are not located into the base path, in that case specify the path

```
Pure\Config::get('other.one', 'app/OtherPath') == config('other.one', 'app/OtherPath')
```

#### Authentication

[](#authentication)

Pure provides an easy authentication interface that let you manage users and session so easy.

First of all define an user model

```
