承接 welearn/clock 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

welearn/clock

最新稳定版本:1.0.2

Composer 安装命令:

composer require welearn/clock

包简介

Implementation of upcoming PSR-20 clock

README 文档

README

PHP Composer

Better use https://symfony.com/doc/current/components/clock.html as it's symfony standard!

welearn/clock

A simple implementation of the upcoming PSR-20 clock.

Installation

composer require welearn/clock

Or see https://packagist.org/packages/welearn/clock

For symfony

Add to services.yaml to allow the service being wired.

Welearn\Clock\ClockInterface:
    class: Welearn\Clock\Clock

For your unittests you can use mocks against Welearn\Clock\ClockInterface (the interface will be replaced with the PSR interface at one point!). Alternatively you can also create the FrozenClock with a specific date and time or Clock manually.

Clock implementations

Clock

Returns the current date as an DateTimeImmutable when calling now.

FrozenClock

Allows to set a date through contructor which is always returned when calling now.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固