manchenkov/timer 问题修复 & 功能扩展

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

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

manchenkov/timer

Composer 安装命令:

composer require manchenkov/timer

包简介

'Timer' is a class to help build time interval value in seconds by object-oriented style

README 文档

README

Latest Stable Version Total Downloads License PHP Version Require

Timer is a class to help build time interval value in seconds by object-oriented style

Installation

You have to run following command to add a dependency to your project

composer require manchenkov/timer

or you can add this line to require section of composer.json

"manchenkov/timer": "*"

Usage

use Manchenkov\Timer\Timer;

$timer = Timer::get()->hours(5)->minutes(10)->seconds(34);

$intervalValue = $timer->asNumber(); // <int> -> 18634 = 34 + (10 * 60) + (5 * 3600)

$intervalString = $timer->asString(); // <string> -> 05:10:34
// or
$intervalString = (string)$timer; // <string> -> 05:10:34

Testing

To run test cases you should execute the following command

./vendor/bin/phpunit tests --testdox

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固