承接 dv-affection/date_get_week_number 相关项目开发

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

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

dv-affection/date_get_week_number

Composer 安装命令:

composer require dv-affection/date_get_week_number

包简介

Provide support for obtaining a week number of year (week starts on Sunday)

README 文档

README

Build Status

According to the documentation for date function of the W format character

ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)

date_get_week_number amends this issue by retuning a week number of a year where the week starts on Sunday

Requirements

PHP >= 5.2.0 because of the DateTime object usage

Usage

$date = new \DateTime;
$week = \date_get_week_number($date);

Installation

Via composer:

{
    "require": {
        "dv-affection/date_get_week_number": "~0.1"
    }
}

Tests

cd date_get_week_number; phpunit;

...
OK (2 tests, 3 assertions)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固