先锋市场

由先锋网络中心设计、开发和运营的先锋市场, 前身是先锋论坛的「跳蚤市场」板块。 独立的跳蚤市场自 2016 年开始设计, 2017 年 6 月公测,正式定名为「先锋市场」。

2017 年 10 月释出的 v1.0 版本, 基于 Laravel PHP 框架构建。 前端大部分使用 Blade 模板直接渲染, 部分页面使用 Vue.js 来加载。 异步消息系统(源代码) 包括邮件、微信、短信消息推送, 使用 Golang 编写。

Code Style Guide

PHP:

请严格按照 PSR-2 和 PSR-12 要求格式化代码

Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting.

The PHP constants true, false, and null MUST be in lower case.

The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words.

All binary and ternary (but not unary) operators MUST be preceded and followed by at least one space. This includes all arithmetic, comparison, assignment, bitwise, logical (excluding ! which is unary), string concatenation, type operators, trait operators (insteadof and as), and the single pipe operator (e.g. ExceptionType1 | ExceptionType2 $e).

HTML(Blade), CSS(SASS, SCSS, LESS), JavaScript(TypeScript):

约定按照 Google HTML/CSS Style Guide 格式化代码

Indent by 2 spaces at a time.

Don’t use tabs or mix tabs and spaces for indentation.

依赖环境

主程序:PHP 5.6+,Mysql; 异步消息系统:Mysql,RabbitMQ

鸣谢

感谢东大小秘书提供的微信消息接口!

捐助我们

短信消息通知给我们带来了不少的开支, 如果你觉得这一功能给你带来了便利,欢迎捐助!

Made with ❤ by NEUP Net Department

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。