xuchunhua-com/laravel-dm8
Composer 安装命令:
composer require xuchunhua-com/laravel-dm8
包简介
php_dm dm8
README 文档
README
查询写法
- 使用
selectRaw或者DB::raw函数查询时,如果当前数据库是忽略大小写的,一律返回小写字段名,
推荐更新版本到最新版
修改部分适配 Laravel
- 适配 InsertGetId
- 修复 DmBuilder 中 DmAutoIncrementHelper 引用
- 适配 withCount, 主要是 x_table as y 情况 前缀补充,原包,没有在 y 前面追加前缀,和 Laravel 不兼容
- 适配 cast json ,数组参数转 json 入库
- 兼容 mysql group_concat 函数,内部转化为 wm_concat 函数
- 修复表单验证中 exists 和 unique,去除对 getCount 和 getMultiCount 的重写。原包是对 oracle 进行大小写不敏感设置,但是达梦数据库不支持
- 修复自动递增,匹配 laravel migration。原包中将 migration 中的 int 和 bigint 均转化为 number 无法使 auto_increment 生效
Laravel-DM8
Laravel-DM8 is an Dm Database Driver package for Laravel. Laravel-DM8 is an extension of Illuminate/Database that uses DM8 extension to communicate with Dm. Thanks to @yajra.
Documentations
- You will find user-friendly and updated documentation here: Laravel-DM8 Docs
- All about dm and php:The Underground PHP and Dm Manual
Laravel Version Compatibility
| Laravel | Package |
|---|---|
| 5.1.x | 5.1.x |
| 5.2.x | 5.2.x |
| 5.3.x | 5.3.x |
| 5.4.x | 5.4.x |
| 5.5.x | 5.5.x |
| 5.6.x | 5.6.x |
| 5.7.x | 5.7.x |
| 5.8.x | 5.8.x |
| 6.x.x | 6.x.x |
| 7.x.x | 7.x.x |
| 8.x.x | 8.x.x |
| 9.x.x | 9.x.x |
Quick Installation
composer require xuchunhua-com/laravel-dm8
Service Provider (Optional on Laravel 5.5+)
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)
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
.envfiles:
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
The MIT License (MIT). Please see License File for more information.
xuchunhua-com/laravel-dm8 适用场景与选型建议
xuchunhua-com/laravel-dm8 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 67 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 xuchunhua-com/laravel-dm8 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xuchunhua-com/laravel-dm8 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-16