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

ActiveLibrary

lmo/laravel-dm8
===============

1.0.9(1y ago)83.5k↓33.3%2PHP

Since Jun 20Pushed 1y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (11)Used By (0)

简介
--

[](#简介)

DM8 database driver implementation for Laravel

达梦数据库`DM8`的 Laravel 驱动，已在 Laravel 5.2|5.8|7|8 中测试

安装
--

[](#安装)

```
composer require lmo/laravel-dm8
```

配置
--

[](#配置)

1. 在 `config/app.php` 中添加:

```
'providers' => [
    ...
    \Lmo\LaravelDm8\Dm8ServiceProvider::class,
    ...
],

```

2. 将`env` 中的 `DB_CONNECTION` 修改为 `dm`:

```
DB_CONNECTION=dm
DB_HOST=127.0.0.1
DB_PORT=5236
DB_DATABASE=USER   # 模式
DB_USERNAME=USER   # 用户
DB_PASSWORD=PASS

```

迁移需知:
-----

[](#迁移需知)

1. 所有数据表需包含唯一ID
2. 因数据库限制，不能在`migration`中将`VARCHAR`类型字段转换为`TEXT`等
3. 在`migration`中创建的索引，命名规则为：`{table_name}_{row_name}_index`，复合索引则为`{table_name}_{row_name_1}_{row_name_2}_index`
4. 在`migration`中以`increments`创建的自增主键，实际上会被创建为以`{table_name}_{row_name}_pk`命名的序列及INT类型的唯一键
5. 达梦中对象名称长度限制为`128`字符，创建时请注意

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~47 days

Recently: every ~101 days

Total

10

Last Release

629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc3826fc3660d84ebe4193664587825d6fad77b33a2f7290cac837e70843781d?d=identicon)[lxrmido](/maintainers/lxrmido)

---

Top Contributors

[![lxrmido](https://avatars.githubusercontent.com/u/863382?v=4)](https://github.com/lxrmido "lxrmido (33 commits)")[![OneHundred86](https://avatars.githubusercontent.com/u/22148561?v=4)](https://github.com/OneHundred86 "OneHundred86 (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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