fra-c/slim-doctrine-behat-skeleton 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fra-c/slim-doctrine-behat-skeleton

Composer 安装命令:

composer create-project fra-c/slim-doctrine-behat-skeleton

包简介

README 文档

README

Skeleton application using Slim 3 with Doctrine ORM and Behat. It also features migrations.

The following instructions assume you're using Docker.

Install

Run the following command to create the project (replace [my-app-name]):

$ docker run -it --rm -v $(pwd):/app composer create-project fra-c/slim-doctrine-behat-skeleton [my-app-name]

Create an .env file and edit to your needs:

$ cp .env.example .env

Implement the health check based on your needs.

Run tests

Run Behat tests with:

docker-compose run --rm -e DB_NAME=test_db -e LOG_FILENAME= php vendor/bin/behat

WARNING: When you run tests, the database specified in DB_NAME will be dropped and recreated. If you don't specify DB_NAME in the command, the .env file or environment variables will be used. DO NOT USE production credentials.

Composer command

To run composer:

docker run -it --rm -v $(pwd):/app composer [command] [options] [...]

Example:

docker run -it --rm -v $(pwd):/app composer require --dev phpunit/phpunit

Migrations

Creating migrations

Edit the Doctrine mapping yaml files as needed then run the following command to create a migration file:

docker-compose run --rm php vendor/bin/doctrine-migrations migrations:diff

Migrating

Tests run migrations automatically before every scenario.

To update the local database instead run:

docker-compose run --rm php vendor/bin/doctrine-migrations migrations:migrate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固