This package is abandoned and no longer maintained. No replacement package was suggested.

MySQLi service provider for Pimple

1.1.1 2016-07-05 21:41 UTC

This package is not auto-updated.

Last update: 2021-07-14 03:51:17 UTC


MySQLi Service provider for Pimple 3

Downloads License


  • PHP >= 5.3.3


use Kilte\MySQLi\MySQLiServiceProvider;
use Pimple\Container;

$c = new Container();

    new MySQLiServiceProvider,
        'mysqli.configuration' => array(
            'host'     => 'localhost',
            'username' => 'root',
            'password' => '1234',
            'database' => 'mysql',
            'charset'  => 'utf8',

Now the service is available as $c['mysqli'].

This provider provides extended internal \mysqli class.

The only difference is that query() method uses MYSQLI_USE_RESULT instead MYSQLI_STORE_RESULT by default.


$ composer install
$ vendor/bin/phpunit


1.1.0 [31.08.2014]

  • Making service compliant with Pimple 2.1 and Silex 2.0 (by Alexander Kudryashov)
  • Making Pimple dependency instead Silex (by Alexander Kudryashov)
  • Removed exception. Use mysqli_report instead

1.0.1 [03.07.2014]

  • Throw \LogicException, if configuration does not exists
  • Added unit tests
  • PSR-4 autoloading

1.0.0 [30.12.2013]

  • First release


  • Fork it
  • Create your feature branch (git checkout -b awesome-feature)
  • Make your changes
  • Write/update tests, if necessary
  • Update, if necessary
  • Push your branch to origin (git push origin awesome-feature)
  • Send pull request
  • ???
  • PROFIT!!!

Do not forget merge upstream changes:

git remote add upstream
git checkout master
git pull upstream
git push origin master

Now you can to remove your branch:

git branch -d awesome-feature
git push origin :awesome-feature


The MIT License (MIT)