PHPackages                             maxlcoder/laravel-dm8 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. maxlcoder/laravel-dm8

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maxlcoder/laravel-dm8
=====================

php\_dm dm8

1.1.7(6mo ago)142.0k↓31.4%7[5 issues](https://github.com/maxlcoder/laravel-dm8/issues)MITPHPPHP &gt;7

Since Aug 20Pushed 6mo agoCompare

[ Source](https://github.com/maxlcoder/laravel-dm8)[ Packagist](https://packagist.org/packages/maxlcoder/laravel-dm8)[ RSS](/packages/maxlcoder-laravel-dm8/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (8)Versions (9)Used By (0)

DM DB driver for Laravel 4|5|6|7|8|9 via DM8
============================================

[](#dm-db-driver-for-laravel-456789-via-dm8)

查询写法
----

[](#查询写法)

> 1. 使用 `selectRaw` 或者 `DB::raw` 函数查询时，如果当前数据库是忽略大小写的，一律返回小写字段名，

推荐更新版本到最新版
----------

[](#推荐更新版本到最新版)

> 修改部分适配 Laravel
>
> 1. 适配 InsertGetId，当表主键非 id 时，需要指定主键列名
> 2. 修复 DmBuilder 中 DmAutoIncrementHelper 引用
> 3. 适配 withCount, 主要是 x\_table as y 情况 前缀补充，原包，没有在 y 前面追加前缀，和 Laravel 不兼容
> 4. 适配 cast json ，数组参数转 json 入库
> 5. 兼容 mysql group\_concat 函数，内部转化为 wm\_concat 函数
> 6. 修复表单验证中 exists 和 unique，去除对 getCount 和 getMultiCount 的重写。原包是对 oracle 进行大小写不敏感设置，但是达梦数据库不支持
> 7. 修复自动递增，匹配 laravel migration。原包中将 migration 中的 int 和 bigint 均转化为 number 无法使 auto\_increment 生效

Laravel-DM8
-----------

[](#laravel-dm8)

Laravel-DM8 is an Dm Database Driver package for [Laravel](http://laravel.com/). Laravel-DM8 is an extension of [Illuminate/Database](https://github.com/illuminate/database) that uses [DM8](https://eco.dameng.com/document/dm/zh-cn/faq/faq-php.html#PHP-Startup-Unable-to-load-dynamic-library) extension to communicate with Dm. Thanks to @yajra.

Documentations
--------------

[](#documentations)

- You will find user-friendly and updated documentation here: [Laravel-DM8 Docs](https://github.com/jackfinal/laravel-DM8)
- All about dm and php:[The Underground PHP and Dm Manual](https://eco.dameng.com/document/dm/zh-cn/app-dev/php-php.html)

Laravel Version Compatibility
-----------------------------

[](#laravel-version-compatibility)

LaravelPackage5.1.x5.1.x5.2.x5.2.x5.3.x5.3.x5.4.x5.4.x5.5.x5.5.x5.6.x5.6.x5.7.x5.7.x5.8.x5.8.x6.x.x6.x.x7.x.x7.x.x8.x.x8.x.x9.x.x9.x.xQuick Installation
------------------

[](#quick-installation)

```
composer require maxlcoder/laravel-dm8
```

Service Provider (Optional on Laravel 5.5+)
-------------------------------------------

[](#service-provider-optional-on-laravel-55)

Once Composer has installed or updated your packages you need to register Laravel-DM8. Open up `config/app.php` and find the providers key and add:

```
LaravelDm8\\Dm8\\Dm8ServiceProvider::class,
```

Configuration (OPTIONAL)
------------------------

[](#configuration-optional)

Finally you can optionally publish a configuration file by running the following Artisan command. If config file is not publish, the package will automatically use what is declared on your `.env` file database configuration.

```
php artisan vendor:publish --tag=dm
```

This will copy the configuration file to `config/dm.php`.

> Then, you can set connection data in your `.env` files:

```
DB_CONNECTION=dm
DB_HOST=dm.host
DB_PORT=5236
DB_DATABASE=xe
DB_USERNAME=hr
DB_PASSWORD=hr
DB_CHARSET=UTF8
```

Then run your laravel installation...

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance58

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~103 days

Total

8

Last Release

203d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18546126?v=4)[liurenlin](/maintainers/maxlcoder)[@maxlcoder](https://github.com/maxlcoder)

---

Top Contributors

[![Jackfinal](https://avatars.githubusercontent.com/u/15246879?v=4)](https://github.com/Jackfinal "Jackfinal (6 commits)")[![maxlcoder](https://avatars.githubusercontent.com/u/18546126?v=4)](https://github.com/maxlcoder "maxlcoder (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maxlcoder-laravel-dm8/health.svg)

```
[![Health](https://phpackages.com/badges/maxlcoder-laravel-dm8/health.svg)](https://phpackages.com/packages/maxlcoder-laravel-dm8)
```

###  Alternatives

[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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