定制 damidevelopment/yii2-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

damidevelopment/yii2-api

Composer 安装命令:

composer create-project damidevelopment/yii2-api

包简介

Yii 2 API Project Template

README 文档

README

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 7.2.0.

CREATE NEW PROJECT USING TEMPLATE

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

composer create-project --prefer-dist damidev/yii2-api api

INSTALLATION

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this site using the following command:

php composer.phar install
php yii migrate

In composer.json we have postInstall script which setup permissions on files and folders. But if php script itself can't change his own files and folders, you have to change permissions yourself.

  • runtime/ - folder for caching and logging
  • web/assets/ - folder for caching js and css
  • yii - executable for running terminal scripts (on windows machine yii.bat should be executable too, I guess)

Endpoint dev checklist

  • create model
  • create resource model
  • create controller or/and action
  • define verbs
  • add AccessControl rule?
  • API documentation of request (by actions annotation)
  • API documentation of response (inside definitions)
  • API documentation of resource (by resource's annotation)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固