swift-api/swift-starter 问题修复 & 功能扩展

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

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

swift-api/swift-starter

Composer 安装命令:

composer require swift-api/swift-starter

包简介

Easy starter project for Swift

README 文档

README

CodeFactor Version Latest Unstable Version PHP Version Require

Getting started

Install

https://packagist.org/packages/swift-api/swift-starter

composer create-project swift-api/swift-starter project_name

Init database

Make sure to fill out login detail to a database in /etc/config/database.yaml

connection:
    driver: mysqli
    host: localhost
    username: root
    password: ''
    database: myapp_db
    port: 3306
    prefix: prefix_

Init the database by running

php bin/console database:entities:update

Setup app details

Fill out /etc/config/app.yaml. Make sure to add the right baseurl, otherwise routing won't work.

All set!

Visit your site site app-domain/hello-world and you should get the following response

{
    "message": "Hey legend! Let's get started at https://henrivantsant.github.io/swift-docs/"
}

From here you can rename the references from MyApp to your own namespace and get going.

  1. Rename in root services.yaml (this references to destination to the first part of the namespace)
  2. Rename in App folder
  3. Rename in app/config.yaml
  4. Rename namespace of the HelloWorld controller or remove it

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固