sy/project 问题修复 & 功能扩展

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

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

sy/project

Composer 安装命令:

composer create-project sy/project

包简介

Project template

README 文档

README

A skeleton to start a new website. Build with sy/bootstrap

Requirements

  • Docker

Installation

Start a new project with

composer create-project sy/project [DIRECTORY]

Create configuration files

A command line interface will guide you for generating these configuration files when you create a new project.

Create the file [DOCUMENT ROOT]/protected/conf/database.ini

Example:

host = localhost
port = 3306
dbname = mydatabase
username = myuser
password = mypassword
charset = utf8mb4

Create the file [DOCUMENT ROOT]/protected/conf/smtp.ini

Example:

host = smtp.gmail.com
username = user@example.com
password = mypassword
port = 587
encryption = tls

Create database

When a new project is created, the database is created with this SQL script: protected/sql/V1__init.sql

We use Flyway to manage database changes. Here is the composer custom command:

composer db [FLYWAY COMMAND]

Flyway commands:

  • migrate
  • info
  • repair
  • clean
  • validate
  • baseline

Example:

composer db migrate

Build CSS & JS

We have a composer custom command for building CSS and JS assets:

composer build

But it's recommended to install NodeJS and Gulp if you have to rebuild frequently the CSS or JS.

Go to the project folder and install project dependencies

npm install

To build css (protected/scss/app.scss -> assets/css/app.css)

gulp css

To build js (protected/js/*.js -> assets/js/app.js)

gulp js

Check/format PHP coding style

Check the coding style

composer check [FILE or DIRECTORY]

Format the coding style

composer format [FILE or DIRECTORY]

Example:

composer format protected/src

Coding standard ruleset used: sy/coding-standard

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固