PHPackages                             indigophp/fuel-dbal - 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. [Database &amp; ORM](/categories/database)
4. /
5. indigophp/fuel-dbal

AbandonedArchivedFuel-package[Database &amp; ORM](/categories/database)

indigophp/fuel-dbal
===================

Fuel DBAL integration

074PHP

Since Sep 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/indigophp-archive/fuel-dbal)[ Packagist](https://packagist.org/packages/indigophp/fuel-dbal)[ RSS](/packages/indigophp-fuel-dbal/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Fuel DBAL
=========

[](#fuel-dbal)

[![Build Status](https://camo.githubusercontent.com/916335357eb9f52845578e12429a05a5830eb43d7550b7e4e2827202dbb2c1e4/68747470733a2f2f7472617669732d63692e6f72672f696e6469676f7068702f6675656c2d6462616c2e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/indigophp/fuel-dbal)[![Latest Stable Version](https://camo.githubusercontent.com/9eb8837e384478d205bc1118d813ccc1395ea40b54cee80e8b50ad7d99572e0d/68747470733a2f2f706f7365722e707567782e6f72672f696e6469676f7068702f6675656c2d6462616c2f762f737461626c652e706e67)](https://packagist.org/packages/indigophp/fuel-dbal)[![Total Downloads](https://camo.githubusercontent.com/73bddd4e66f2bd0e14730064112eadbf44c56376de13d5f811d95c99b5237d86/68747470733a2f2f706f7365722e707567782e6f72672f696e6469676f7068702f6675656c2d6462616c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/indigophp/fuel-dbal)[![License](https://camo.githubusercontent.com/21b61bf9845c53eab0e8267a2c021ed4080c3955eb3a5dd86eead5ee59b93e86/68747470733a2f2f706f7365722e707567782e6f72672f696e6469676f7068702f6675656c2d6462616c2f6c6963656e73652e706e67)](https://packagist.org/packages/indigophp/fuel-dbal)[![Dependency Status](https://camo.githubusercontent.com/8cd141e5d619abd45b5dabf3de263b47bcb5aa3f5a61d1e814acb9a6b78fcb19/687474703a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533663031633733313362623036633538633030303431322f62616467652e7376673f7374796c653d666c6174)](http://www.versioneye.com/user/projects/53f01c7313bb06c58c000412)

**This package is a wrapper around [doctrine/dbal](https://github.com/doctrine/dbal) package.**

Install
-------

[](#install)

Via Composer

```
{
    "require": {
        "indigophp/fuel-dbal": "@stable"
    }
}
```

Usage
-----

[](#usage)

You can use the fuel `db` configuration or you can place your configuration in `dbal`. `dbal` is checked first and it must be in DBAL compatible format, only the legacy `db` configurations are converted.

```
// Returns a DBAL Connection object
$conn \Dbal::forge('default');
```

`Dbal` class extends `Facade` and uses `Facade\Instance` from [indigophp/fuel-core](https://github.com/indigophp/fuel-core).

### Configuration

[](#configuration)

```
	'dbname'       => 'database'
	'host'         => 'localhost'
	'port'         => 1234
	'user'         => 'user',
	'password'     => 'secret',
	'driver'       => 'pdo_mysql',
	'driver_class' => 'MyNamespace\\MyDriverImpl', // the DBAL driverClass option
	'options'      => array( // the DBAL driverOptions option
	    'foo' => 'bar',
	),
	'path'             => '',
	'wrapper_class'    => 'MyDoctrineDbalConnectionWrapper', // the DBAL wrapperClass option
	'charset'          => 'UTF8',
	'profiling'        => true,
	'mapping_types'    => array(
	    'enum' => 'string',
	),
	'types' => array(
	    'custom' => 'MyCustomType',
	),
```

### Profiling

[](#profiling)

No configuration is required beyond enabling profiling for your connection. Queries sent through DBAL will automatically appear in the Fuel profiler.

**Note:** You can use the package even without loading it since composer handles autoloading.

Testing
-------

[](#testing)

```
$ codecept run
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/indigophp/fuel-dbal/blob/develop/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [aspendigital](https://github.com/aspendigital/fuel-doctrine2)
- [All Contributors](https://github.com/indigophp/fuel-dbal/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/indigophp/fuel-dbal/blob/develop/LICENSE) for more information.

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (23 commits)")

### Embed Badge

![Health badge](/badges/indigophp-fuel-dbal/health.svg)

```
[![Health](https://phpackages.com/badges/indigophp-fuel-dbal/health.svg)](https://phpackages.com/packages/indigophp-fuel-dbal)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
