PHPackages                             gnf/gnfdb - 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. gnf/gnfdb

ActiveLibrary

gnf/gnfdb
=========

A Database library

v0.1.10(9y ago)02.9k3[1 issues](https://github.com/genesos/gnf-gnfdb/issues)MITPHP

Since Feb 2Pushed 7mo agoCompare

[ Source](https://github.com/genesos/gnf-gnfdb)[ Packagist](https://packagist.org/packages/gnf/gnfdb)[ RSS](/packages/gnf-gnfdb/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

GnfDB
=====

[](#gnfdb)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/707982aa0c47b67c2ec9aec9fb9e5d364da92c5ee73349c56c1da5d762229b05/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72696469626f6f6b732f706c6174666f726d2d676e6664622f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ridibooks/platform-gnfdb/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/cb7d2459ab78fe04af384f8d713d59bfd404a00e61d8e412f679cf9e26b92290/68747470733a2f2f706f7365722e707567782e6f72672f72696469626f6f6b732f706c6174666f726d2d676e6664622f762f737461626c65)](https://packagist.org/packages/ridibooks/platform-gnfdb)[![License](https://camo.githubusercontent.com/f2b03ba29d6d0604082db1a5c4a36c67ec928dcb57abad6188d0de75c3104984/68747470733a2f2f706f7365722e707567782e6f72672f72696469626f6f6b732f706c6174666f726d2d676e6664622f6c6963656e7365)](https://packagist.org/packages/ridibooks/platform-gnfdb)

여기는 `ridi` 모노레포에 [Git Subrepo](https://github.com/ingydotnet/git-subrepo)를 통해서 코드가 관리됩니다.

**Warning**직접 commit하지 마세요.

0. 설치
-----

[](#0-설치)

composer를 사용하여 설치 할 수 있다.

ridibooks/platform-gnfdb 또는 gnf/gnfdb를 설치하면 된다.

```
composer require ridibooks/platform-gnfdb

```

1. 연결 방법
--------

[](#1-연결-방법)

gnfdb 패키지 내에 Gnf\\db\\PDO 를 instance화 하면 사용 할 수 있다.

Gnf\\db\\PDO는 \\PDO를 인자로 받는다. 연결을 생성하고 인자로 전달하자.

```
