headsnet/carbon-clock 问题修复 & 功能扩展

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

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

headsnet/carbon-clock

最新稳定版本:v0.1.1

Composer 安装命令:

composer require headsnet/carbon-clock

包简介

A clock interface and implementation using the Carbon date manipulation library

README 文档

README

Build Status Latest Stable Version Total Downloads License

Carbon Clock

A clock interface and implementation using the Carbon date manipulation library.

Usage

Wherever you need access to the system time, inject a clock implementation by typehinting against the Clock interface.

In production environments, create a service from the SystemClock, and arrange for this to be injected wherever the Clock interface is used.

During testing, you can substitute the FrozenClock implementation, which will provide additional features for freezing time, and otherwise manipulating it to make testing time sensitive code much easier.

Contributing

Contributions are welcome. Please submit pull requests with one fix/feature per pull request.

Composer scripts are configured for your convenience:

> composer test       # Run test suite
> composer cs         # Run coding standards checks
> composer cs-fix     # Fix coding standards violations
> composer static     # Run static analysis with Phpstan

Licence

This code is released under the MIT licence. Please see the LICENSE file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固