承接 hidalgo-rides/intersect-framework 相关项目开发

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

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

hidalgo-rides/intersect-framework

Composer 安装命令:

composer create-project hidalgo-rides/intersect-framework

包简介

Web framework built for making dev life a little easier.

README 文档

README

A PHP web framework built for making dev life a little easier.

Installation using Composer

Run the following command to create your project using Composer

composer create-project hidalgo-rides/intersect-framework <directory-path>

Local Deployment using Docker

Now you should be ready to bring up the Docker environment (must have Docker installed)

# navigate to directory where you installed your project files
cd <directory-path>

# bring up the project using docker-compose
docker-compose up -d

You should now be able to navigate to http://localhost:8080 in your browser once the environment is up.

Useful Endpoints / Ports

(ports are defined in the docker-compose.yml file)

Useful Docker Commands

Starting Local Environment

Run the following Docker command to start load the environment inside Docker containers

docker-compose up -d

Stopping Local Environment

Run the following Docker command to tear down your environment and stop your Docker containers

docker-compose down

Viewing Local Logs

If you want to watch the Docker environment logs, run the following Docker command

docker-compose logs -f

Database Migrations

Intersect makes use of built-in database migration support. Migration files are an easy way to define your database table definations, seed data for development, and allows databases schemas to be maintained through source control.

Here are a few commands you can use to create migration files, create seed files, apply the existing migrations, and reset the database.

Creating Migration Files

docker exec app sh -c 'php intersect migrations:generate CreateXXXTable'

(you can replace the last parameter "CreateXXXFile" with whatever you want)

Your new migration file will be created under the src/Migrations directory.

Creating Seed Data Files

Seed data files are used to create data that can be used during development or testing. These seed data files are not automatically applied when the other migrations are applied. Seed data files are always applied last after all the other migration files have been run. (if the --seed flag is used)

docker exec app sh -c 'php intersect migrations:generate-seed SeedDataFile'

Applying Migration Files (without seed data)

docker exec app sh -c 'php intersect migrations:run'

Applying Migration Files (with seed data)

docker exec app sh -c 'php intersect migrations:run --seed'

Reset Your Database (without seed data)

docker exec app sh -c 'php intersect migrations:reset'

Reset Your Database (with seed data)

docker exec app sh -c 'php intersect migrations:reset --seed'

Running PHPUnit Tests

Ensure the Docker container is started, if not, please see Starting and Stopping Environment section

Run

Run the following command to run the PHPUnit tests ("app" matches service defined in docker-compose.yml)

docker exec app vendor/bin/phpunit

Run with Coverage Report

If you want to generate code-coverage reports while running the PHPUnit tests, run the following command ("app" matches service defined in docker-compose.yml)

docker exec app vendor/bin/phpunit --coverage-html=./tests/coverage-results

This will create your coverage report inside the tests/coverage-results directory

License

Intersect Framework is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固