承接 arrowphp/database 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

arrowphp/database

Composer 安装命令:

composer require arrowphp/database

包简介

Add Database support to Arrow.

README 文档

README

Software License

This is the Arrow Database plugin. It adds Database capability to any Arrow powered application.

Install

Via project composer.json

  "require": {
    "arrowphp/arrow": "@dev",
    "arrowphp/database": "@dev"
  }

Usage

// Get the PDO instance of the default database connection
$pdo = $container->get(\Arrow\Database\Constant::CONTAINER_DATABASE());
// or get the PDO instance by config name
$pdo = $container->get(\Arrow\Database\Constant::CONTAINER_DATABASE('legacy-db'));

Implementation

Update your existing config.php or add a new config file config.database.php and update with below config.


return [
    'package' => [
        'arrowphp/database' => [
            'Connections' => [
                'default' => [
                    // For more information on dsn, see https://phpdelusions.net/pdo#dsn
                    'dsn' => '<dsn>',
                    'user' => '<user>',
                    'password' => '<password>',
                    'attributes' => [
                        // eg \PDO::ATTR_PERSISTENT => true,
                    ],
                ],
            ],
        ],
    ],
];

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please contact Chris Pennycuick directly instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固