PHPackages                             app2641/sapphire-beans - 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. app2641/sapphire-beans

ActiveLibrary

app2641/sapphire-beans
======================

0.2(12y ago)05.1k11PHPPHP &gt;=5.4

Since May 1Pushed 11y ago2 watchersCompare

[ Source](https://github.com/app2641/sapphire-beans)[ Packagist](https://packagist.org/packages/app2641/sapphire-beans)[ RSS](/packages/app2641-sapphire-beans/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (4)Used By (1)

SapphireBeans
=============

[](#sapphirebeans)

SapphireBeans は俺々データベースクラスだ。

### 設定ファイルの準備

[](#設定ファイルの準備)

まず、任意の場所に database.ini ファイルを生成する。

```
[develop]
db       = "database_name"
host     = "localhost"
username = "root"
password = "root"

[production:develop]
host     = "xxx.xxx.xxx.xxx"

```

DB\_INI\_FILE 定数に database.ini へのパスを指定する。

```
define('DB_INI_FILE', '/path/to/database.ini');

```

### Helper クラス

[](#helper-クラス)

Helper クラスからデータベースへ接続をする。

```
