Yii DataBase SQLite Extension

dev-master / 3.0.x-dev 2022-11-23 11:29 UTC

This package is auto-updated.

Last update: 2022-11-26 15:01:11 UTC


68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667 68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f332f33382f53514c6974653337302e737667

Yii DataBase SQLite Extension

This package provides SQLite extension for Yii DataBase library. It is used in Yii Framework but is supposed to be usable separately.

Latest Stable Version Total Downloads rector codecov StyleCI

Support version

PHP Sqlite Version CI-Actions
8.0 - 8.2 3:latest build Mutation testing badge static analysis type-coverage


The package could be installed via composer:

composer require yiisoft/db-sqlite


Using yiisoft/composer-config-plugin automatically get the settings of Yiisoft\Cache\CacheInterface::class, LoggerInterface::class, and Profiler::class.


use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Sqlite\Connection as SqliteConnection;

return [
    ConnectionInterface::class => [
        'class' => SqliteConnection::class,
        '__construct()' => [
            'dsn' => $params['yiisoft/db-sqlite']['dsn'],


return [
    'yiisoft/db-sqlite' => [
        'dsn' => 'sqlite:' . __DIR__ . '/Data/Runtime/yiitest.sq3',

Unit testing

The package is tested with PHPUnit. To run tests:


Mutation testing

The package tests are checked with Infection mutation framework. To run it:


Static analysis

The code is statically analyzed with Psalm. To run static analysis:



Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:


Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


The Yii DataBase SQLite Extension is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.