承接 laasti/spot-provider 相关项目开发

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

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

laasti/spot-provider

最新稳定版本:v2.1.1

Composer 安装命令:

composer require laasti/spot-provider

包简介

A league/container service provider for Spot ORM.

README 文档

README

A league/container service provider for Spot ORM.

Installation

composer require laasti/spot-provider

Usage

$config = [
    'name' => 'default', //required
    //String DSN
    'dsn' => '',
    //OR, full array
    'adapter'  => '',
    'host'     => '', //required
    'dbname'   => '', //required
    'user'     => '', //required
    'password' => '', //required
    'port'     => '',
    'protocol' => '',
    'socket'   => '',
    'dbsyntax' => '',
];

$container = new League\Container\Container();
$container->add('config.connections', [
    [
        'name' => 'default',
        //...
    ]
]);

$container->addServiceProvider('Laasti\SpotProvider\SpotProvider');

$container->get('Spot\Locator');//OR, $container->get('spot.locator.default');
$container->add('Acme\MyMapper')->withArguments(['Spot\Locator']);
$container->add('Acme\MyMsSqlMapper')->withArguments(['spot.locator.mssql']);

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

See CHANGELOG.md for more information.

Credits

Author: Sonia Marquette (@nebulousGirl)

License

Released under the MIT License. See LICENSE.txt file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-27