定制 zoilomora/laravel-msaccess 二次开发

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

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

zoilomora/laravel-msaccess

最新稳定版本:1.0.0-beta

Composer 安装命令:

composer require zoilomora/laravel-msaccess

包简介

This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.

README 文档

README

It is recommended to visit the updated repository https://github.com/zoilomora/doctrine-dbal-msaccess that is being maintained and is not limited to the Laravel framework.

Laravel ORM for Microsoft Access DB

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

This package helps you to manage Microsoft Access DB by ODBC Connection with the integrated Laravel ORM.

Installation

  1. Install via composer
composer require zoilomora/laravel-msaccess
  1. Add Service Provider to config/app.php in providers section:
\ZoiloMora\AccessServiceProvider::class,
  1. Create a DSN with the connection to the database.

  2. Add connection to config/database.php in connections section:

'access' => [
    'driver' => 'pdo_access',
    'connection_string' => 'dsn={namedsn}',
    'username' => '',
    'password' => '',
    'table_prefix' => '',
]
  1. Replace {namedsn} with the name of DSN.

Connect model with the connection

  1. In the model class add the $connection variable like this:
protected $connection = 'access';

License

Licensed under the MIT license

Read LICENSE for more information

统计信息

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

GitHub 信息

  • Stars: 31
  • Watchers: 5
  • Forks: 21
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-03