承接 setkyar/datetimeformat 相关项目开发

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

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

setkyar/datetimeformat

最新稳定版本:v1.0

Composer 安装命令:

composer require setkyar/datetimeformat

包简介

Format your time

README 文档

README

##Installation

Run the following via your terminal

composer require "setkyar/datetimeformat"

##Usage

Create a index.php and put the following code and run $php -S localhost:8000

<?php
	// Display Errors On
	ini_set('display_errors', 'On');

	$autoload = __DIR__.'/vendor/autoload.php';

	if ( ! file_exists($autoload))
	{
	  exit("Need to run \"composer install\"!");
	}

	require $autoload;

	use SetKyar\DateTimeFormat\DateTimeFormat;
	
	//What you want to use functions goes here!

##Functions

####Get today

DateTimeFormat::now();

####Get first day of the month

DateTimeFormat::firstDayOfthisMonth();

####Get last day of the month

DateTimeFormat::lastDayOfthisMonth());

####Get First day of next month

DateTimeFormat::firstDayOfNextMonth());

####Last Dat of Next Month

DateTimeFormat::lastDayOfNextMonth();

DateTimeFormat::age('22-11-1994');

DateTimeFormat::fromStartOfDay();

DateTimeFormat::endOfDayFromNow();

DateTimeFormat::verifyDate('16-03-2015', 'd-m-y');

##Contributing

  • Fork it ( https://github.com/setkyar/time )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request
  • Stars are welcome too 😄

##License

WTFPL

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2015-03-16