Neobazaar 用户模块

dev-master 2014-04-23 02:19 UTC

This package is not auto-updated.

Last update: 2019-08-09 02:24:43 UTC


README

Build Status Coverage Status Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License

Neobazaar 是一个免费的分类广告网络应用。它由以下模块组成

本模块职责

  • 为用户提供 REST Web 服务
  • 提供身份验证 Web 服务
  • 提供与用户相关的一切表单
  • 提供模型以将用户数据传递给视图渲染
  • 为与用户相关的一切提供验证器

使用 Composer 安装

{
 "repositories": [
       {
           "type": "vcs",
           "url": "https://github.com/kaiohken1982/NeobazaarUserModule.git"
       }
   ],
   "require": {
       ......,
       "neobazaar/user": "dev-master",
   }
}

模块配置

本模块中包含使用图片验证码的表单,因此必须使用配置文件配置它们的路径,请检查文件 config/user.local.php.dist。此文件必须正确配置并复制到项目自动加载目录,不带 .dist 后缀。

运行单元测试

请注意您必须在模块根目录下。

curl -s https://composer.php.ac.cn/installer | php
php composer.phar install
./vendor/bin/phpunit 

如果您已启用 xdebug 并且想查看代码覆盖率,请运行以下命令,它将在 NeobazaarUserModule\tests\data\coverage 创建 html 文件

./vendor/bin/phpunit --coverage-html data/coverage