kly / appointment

与 Google 日历 API 集成的预约生成器

dev-master 2018-08-02 08:00 UTC

This package is not auto-updated.

Last update: 2024-09-29 10:40:21 UTC


README

具有Google日历API集成的预约生成器。

安装

使用 composer 安装此包 composer require kly/appointment。加载自动加载器并调用所需的类。

贡献步骤

  1. 从原始仓库分叉。

  2. 从您的仓库克隆

    https://github.com/<YOUR_GIT_USERNAME>/appointment.git

  3. 将您的分叉与原始仓库同步。

    git remote add upstream https://github.com/KLYgarage/appointment.git

    git pull upstream master

  4. 创建一个分支。请记住,分支的名称应该表达您正在做的事情

    git checkout -b <BRANCH_NAME>

  5. credential_example.json 保存到 credential.json。根据您的 Google API 日历设置相应地修改内容。有关如何启用 Google 日历 API 的更多信息,请参阅以下网址: google calendar api

  6. 当您开发完毕后,您可以创建 pull request。创建 pull request 的步骤如下

    git add .

    git commit -m <YOUR_COMMIT_MESSAGE>

    git push -u origin <YOUR_BRANCH_NAME>

  7. 前往您的 GitHub 账户,在 pull request 标签页添加您的评论。请详细说明,使用祈使句和表情符号使其更清晰。

  8. 等待反馈!

PHP CS-FIX

PHP CS Fixer 旨在修复编码标准。所以,记住!在创建 pull request 之前始终运行 PHP CS Fixer。

`composer run cs-fix`

测试

打开命令提示符或终端,导航到项目目录并运行命令 php ./phpunit --bootstrap ./test/bootstrap.php ./test/

> php ./phpunit --bootstrap ./test/bootstrap.php ./test/
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

..................

Time: 14 seconds, Memory: 10.00MB

OK (18 tests, 98 assertions)