定制 wangl/laravel-dm8 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wangl/laravel-dm8

最新稳定版本:v1.0.9

Composer 安装命令:

composer require wangl/laravel-dm8

包简介

修改可以适配laravel10+,11+框架的dm driver

README 文档

README

本项目基于 jackfinal/laravel-dm8 构建,并针对 LaraveL11 进行了适配与改进。

DM DB driver for Laravel via DM8

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

Laravel Version Compatibility

Laravel Package
11.x.x 1.x.x

Quick Installation

composer require wangl/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.

This will copy the configuration file to config/database.php.

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

 'connections' => [
        'mysql' => [
           …………­
        ],

        'dm' => [
            'driver'         => 'dm',
            'host'           => env('DB_HOST', '127.0.0.1'),
            'port'           => env('DB_PORT', '5236'),
            'database'       => env('DB_DATABASE', 'laravel'),
            'username'       => env('DB_USERNAME', 'laravel'),
            'password'       => env('DB_PASSWORD', 'laravel'),
            'charset'        => 'UTF8',
            'collation'      => 'utf8_general_ci',
            'prefix'         => '',
            'strict'         => true,
            'engine'         => null,
            'options' => [
                \PDO::ATTR_PERSISTENT => true,
                \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
            ],
        ],
    ],

Then run your laravel installation...

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-15