承接 nordsoftware/lumen-doctrine 相关项目开发

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

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

nordsoftware/lumen-doctrine

最新稳定版本:2.4.1

Composer 安装命令:

composer require nordsoftware/lumen-doctrine

包简介

Doctrine module for the Lumen PHP framework.

README 文档

README

Code Climate Scrutinizer Code Quality StyleCI Latest Stable Version Total Downloads License

Doctrine module for the Lumen PHP framework.

Requirements

Usage

Installation

Run the following command to install the package through Composer:

composer require nordsoftware/lumen-doctrine

Bootstrapping

Add the following line to bootstrap/app.php:

$app->register('Nord\Lumen\Doctrine\ORM\DoctrineServiceProvider');

You can now use the EntityManager facade or inject the EntityManagerInterface where needed.

Configure

Copy config/doctrine.php into config and modify according to your needs.

The available configurations are:

  • mapping - Mapping driver to use (xml, yaml or annotations), defaults to xml
  • paths - Paths to entity mappings, defaults to an empty array
  • types - Custom Doctrine types to register, defaults to an empty array
  • proxy - Proxy configuration
  • repository - Repository class to use
  • logger - Logger class to use

Run Artisan

Run php artisan and you should see the new commands in the doctrine:* namespace section.

Contributing

Please read the guidelines.

License

See LICENSE.

统计信息

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

GitHub 信息

  • Stars: 41
  • Watchers: 13
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-18