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

https://github.com/defstudio/supercharged-carbon


https://github.com/defstudio/supercharged-carbon

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

### Carbon helper function

`carbon('2018-04-18')` returns a carbon instance

- addWorkdays($count): self
- isHoliday()
- isWorkday()

#### italians holidays

- isLiberationDay()
- isRepublicDay()
- isImmaculateConceptionFeast()
- isAssumptionOfMaryFeast()
- isEpiphany()
- isDayBeforeChristmas()
- isChristmas()
- isSaintStephenDay()
- isSaintSylvesterDay()
- isWorkersDay()
- isEasterDay()
- isEasterMonday()

## Upgrading

### v1.x → v2.x

`->isHoliday()` does not answer `true` for Saturdays and Sundays, so, to obtain the same result as in v1.x this:

```php
$date->isHoliday()
```

should be changed to:

```php
!$date->isWorkday()
```

or

```php
$date->isHoliday() || $date->isWeekend()
```