Download the PHP package bingher/db without Composer

On this page you can find all versions of the php package bingher/db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package db

think-orm driver for DM(达梦),GBase8s(南大通用),OpenGauss(高斯),KingBase(金仓)

安装

DM8(达梦)

config.database.php配置参考如下:

GBase8s(南大通用)

config.database.php配置参考如下:

OpenGauss(高斯)

config.database.php配置参考如下:

KingBase(金仓)

config.database.php配置参考如下:

Meilisearch(搜索引擎)

src/meilisearch/ 提供了一套 ThinkORM 风格的 Meilisearch 客户端,与 ThinkPHP 的 Db 门面写法保持一致, 底层基于官方 SDK meilisearch/meilisearch-php,写操作默认等待服务端任务完成(同步语义)。

安装

Meilisearch 客户端为可选功能,按需安装其 SDK 依赖即可(不安装不影响达梦/GBase 等既有驱动):

若未安装就调用 Client / Model 连接 Meilisearch,会抛出提示安装的异常。

配置

新增 config/meilisearch.php(该目录未纳入版本控制,密钥不会入库):

也可以在运行时注入配置(不依赖框架配置时):

查询器写法

模型写法

注意事项

  1. 必须先配置索引属性:参与 where 过滤、排序、检索的字段需要加入 filterableAttributes、 sortableAttributes、searchableAttributes,否则服务端会报错:

  2. Meilisearch 的空值语义与 SQL 不同:缺失字段被服务端视为"非空"。因此 whereNull() 与软删除的默认条件会编译为 ( 字段 IS NULL OR 字段 NOT EXISTS ),与 ORM 直觉保持一致。
  3. Meilisearch 无聚合与关联:未提供 sum() / avg() / join() 等方法,需要时请自行取回数据处理。
  4. 写操作为异步任务:本客户端默认等待任务完成(wait 配置),失败会抛出异常并附带中文排查提示。
  5. withoutField() 为客户端过滤:Meilisearch 只支持指定返回字段,无法在服务端排除字段。

参考资料

Meilisearch

达梦数据库

南大通用数据库

OpenGauss

DBCOMPATIBILITY 取值范围:A、B、C、PG。分别表示兼容 O、MY、TD和POSTGRES


All versions of db with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1|>= 7.2.5|>=8.0.0
topthink/framework Version ^5|^6|^8.0
topthink/think-orm Version ^2.0|^3.0|^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bingher/db contains the following files

Loading the files please wait ...