2017 © Pedro Peláez
 

library jp-carbon

Japanese extended version of carbon of the PHP datetime API.

image

enomotodev/jp-carbon

Japanese extended version of carbon of the PHP datetime API.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 9 Versions
  • 23 % Grown

The README.md

JpCarbon

Latest Stable Version Build Status StyleCI Scrutinizer Code Quality Code Coverage, (*1)

Japanese extended version of carbon of the PHP datetime API., (*2)

For Carbon < 2.0, please use 1.0 branch, (*3)

Usage

<?php

require 'vendor/autoload.php';

use JpCarbon\JpCarbon;

$instance = JpCarbon::createFromDate(2017, 1, 1)->holiday;
var_dump($instance);
// => string(6) "元日"

$instance = JpCarbon::createFromDate(2017, 1, 2)->holiday;
var_dump($instance);
// => string(12) "振替休日"

$instance = JpCarbon::createFromDate(2017, 1, 3)->holiday;
var_dump($instance);
// => string(0) ""

$eto = JpCarbon::createFromDate(2017)->eto;
var_dump($eto);
// => string(3) "酉"

via Helpers

<?php

require 'vendor/autoload.php';

$instance = jp_carbon('20170101')->holiday;
var_dump($instance);
// => string(6) "元日"

Install

$ composer require enomotodev/jp-carbon

License

MIT License., (*4)

The Versions

05/07 2018

dev-master

9999999-dev http://enomotodev.hatenablog.com

Japanese extended version of carbon of the PHP datetime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

05/07 2018

1.0.6

1.0.6.0 http://enomotodev.hatenablog.com

Japanese extended version of carbon of the PHP datetime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

17/02 2018

1.0.5

1.0.5.0 http://enomotodev.hatenablog.com

Japanese extended version of carbon of the PHP datetime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

05/12 2017

dev-feature/add_php72_travis

dev-feature/add_php72_travis http://enomotodev.hatenablog.com

Japanese extended version of carbon of the PHP datetime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

20/10 2017

1.0.4

1.0.4.0 http://enomotodev.hatenablog.com

Japanese extended version of carbon of the PHP datetime API.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

27/09 2017

1.0.3

1.0.3.0 http://enomotodev.hatenablog.com

A simple API extension for DateTime.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

27/09 2017

1.0.2

1.0.2.0 http://enomotodev.hatenablog.com

A simple API extension for DateTime.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

27/09 2017

1.0.1

1.0.1.0 http://enomotodev.hatenablog.com

A simple API extension for DateTime.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime

26/09 2017

1.0.0

1.0.0.0 http://enomotodev.hatenablog.com

A simple API extension for DateTime.

  Sources   Download

MIT

The Requires

 

The Development Requires

date time datetime