An open API service indexing awesome lists of open source software.

https://github.com/enomotodev/jpcarbon

πŸ—“ Japanese extended version of carbon of the PHP datetime API
https://github.com/enomotodev/jpcarbon

carbon datetime php

Last synced: 9 months ago
JSON representation

πŸ—“ Japanese extended version of carbon of the PHP datetime API

Awesome Lists containing this project

README

          

# JpCarbon

Build Status
Total Downloads
Latest Stable Version
License

Japanese extended version of carbon of the PHP datetime API.

**For Carbon < 2.0, please use [1.0 branch](https://github.com/enomotodev/JpCarbon/tree/1.0)**

## Usage

```php
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
holiday;
var_dump($instance);
// => string(6) "ε…ƒζ—₯"
```

## Install

```
$ composer require enomotodev/jp-carbon
```

## License

MIT License.