gordesch/cine-carbon

Custom Carbon class for French movie week (it starts on Wednesdays)

v1.2.1 2020-12-27 20:33 UTC

This package is auto-updated.

Last update: 2024-04-28 04:01:56 UTC


README

Build Status License: MIT Packagist

Cine-Carbon

A custom Carbon class to provide a french movie week locale (it starts on wednesdays).

Installation

$ composer require gordesch/cine-carbon:^1.0.0

Usage

use Gordesch\CineCarbon;

CineCarbon::now()->startOfWeek()->dayOfWeek;     // 3 (Wednesday)
CineCarbon::now()->programmingWeek(); // i.e. "2019-03"

License

The MIT License (MIT). Please see License File for more information.