Download the PHP package yiisoft/db without Composer
On this page you can find all versions of the php package yiisoft/db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package db
Short Description Database abstraction layer and query builder
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package db
Yii Database
Framework-agnostic database abstraction layer that provides a set of classes to connect and interact with various database management systems (DBMS) using a unified API, including a powerful query builder.
Available database drivers:
- Yii DB MSSQL
- Yii DB MySQL (also supports MariaDB)
- Yii DB Oracle
- Yii DB PostgreSQL
- Yii DB SQLite
Optional packages that provide additional functionality:
- Yii Active Record provides an object-oriented interface for working with database tables, similar to ORM frameworks such as Doctrine or Hibernate.
- Yii DB Migration allows you to manage database schema using migrations.
Requirements
- PHP 8.1 - 8.5.
pdoPHP extension.
Installation
To install yiisoft/db you must install at least one database driver:
[!IMPORTANT] It also depends on PSR-16: Common Interface for Caching Libraries and requires the installation of PSR-16 implementation. For example, yiisoft/cache or one of the other cache handlers.
General Usage
To connect to a database, create an instance of the appropriate driver:
You can then use the $db object to execute SQL queries, manage transactions, and perform other database operations.
Here are some examples:
Documentation
- Guide: Português - Brasil
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Database is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.
Support the project
Follow updates
All versions of db with dependencies
ext-pdo Version *
psr/log Version ^2.0|^3.0
psr/simple-cache Version ^2.0|^3.0
psr/simple-cache-implementation Version *
yiisoft/db-implementation Version 1.0.0