PHPackages                             xuchunhua-com/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. xuchunhua-com/laravel-dm8

ActiveLibrary

xuchunhua-com/laravel-dm8
=========================

php\_dm dm8

v1.0.0(1y ago)066MITPHPPHP &gt;7

Since Jan 16Pushed 1y agoCompare

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

READMEChangelogDependencies (8)Versions (3)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
> 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 xuchunhua-com/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

26

—

LowBetter than 43% of packages

Maintenance44

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dcdc705f4b7858022eaa879561892bc354fb169274ed4c03df58d6a4cd03248?d=identicon)[xuchunhua-com](/maintainers/xuchunhua-com)

---

Top Contributors

[![Jackfinal](https://avatars.githubusercontent.com/u/15246879?v=4)](https://github.com/Jackfinal "Jackfinal (6 commits)")[![xuchunhua-com](https://avatars.githubusercontent.com/u/5977484?v=4)](https://github.com/xuchunhua-com "xuchunhua-com (5 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/xuchunhua-com-laravel-dm8/health.svg)

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

###  Alternatives

[livewire/livewire

A front-end framework for Laravel.

23.5k75.5M1.8k](/packages/livewire-livewire)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[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.

44643.1k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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