承接 weew/app-doctrine 相关项目开发

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

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

weew/app-doctrine

Composer 安装命令:

composer require weew/app-doctrine

包简介

Integrates doctrine in to the weew/app package.

README 文档

README

Build Status Code Quality Test Coverage Version Licence

Table of contents

Installation

composer require weew/app-doctrine

Introduction

This package integrates doctrine/orm and doctrine/migrations into the weew/app framework.

Usage

Simply register the DoctrineProvider class on the application kernel:

$app = new App();
$app->getKernel()->addProviders([
    DoctrineProvider::class,
]);

Example config

This is how your config might look like in yaml:

doctrine:
  debug: true

  cache_path: path/to/cache
  proxy_classes_path: path/to/proxies
  metadata_format: "yaml" or "annotations"

  # required if metadata_format is "annotations"
  entities_paths:
    path/to/entities: Namespace\To\Entities

  # required if metadata_format is "yaml"
  entities_mappings:
    app:
      path: path/to/entities
      namespace: Some\Entities
    bundle:
      path: path/to/bundle/entities
      namespace: Other\Entities

  config:
    driver: pdo_mysql
    host: database_hostname
    dbname: database_name
    user: database_user
    password: database_password

  migrations:
    namespace: migrations/namespace
    path: migrations/directory/path
    table: migrations_table_name

Doctrine console

You can run doctrine console tool like this:

$doctrineProvider->runConsoleRunner();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固