PHPackages                             tasoft/setting - 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. tasoft/setting

ActiveLibrary

tasoft/setting
==============

v0.8.0(4y ago)0101MITPHPPHP &gt;=7.2

Since Apr 11Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

TASoft Setting Package
======================

[](#tasoft-setting-package)

The setup package is a simple controller of one PDO table holding dynamical settings for your application.

### Installation

[](#installation)

```
$ composer require tasoft/setting

```

### Usage

[](#usage)

Fist you need to create an SQL table containing at least the following fields:

1. **id**
    Identifies each entry uniquely
2. **name**
    the name of the setting
3. **content**
    The content of the setting
4. **multiple**
    Specifies, if the entry is multiple (contents of settings with the same name are stacked)

You can design the table however you want.

Now in PHP see below how you can access the settings:

```
