2017 © Pedro Peláez
 

library laravel-chronos

Replace Carbon\Carbon with Cake\Chronos\Chronos

image

masterro/laravel-chronos

Replace Carbon\Carbon with Cake\Chronos\Chronos

  • Friday, August 11, 2017
  • by MasterRO
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock , (*2)

Laravel Chronos

Laravel Chronos is a little wrapper for CakePHP/Chronos package with one difference - it uses Laravel's Macroable trait. It also has a Trait for replacing Carbon/Carbon with Chronos for Eloquent models. Chronos is like Carbon but Immutable and Macroable., (*3)

Installation

From the command line, run:, (*4)

composer require masterro/laravel-chronos

Replace Carbon with Chronos

Add ReplaceCarbonWithChronos trait to your base model, or to models you want to use Chronos instead of Carbon. Don't forget add MasterRO\Chronos\ReplaceCarbonWithChronos to use section., (*5)

Attention

Dont't confuse MasterRO\Chronos\Chronos with Cake\Chronos\Chronos because MasterRO\Chronos\Chronos is macroable and Cake\Chronos\Chronos is not. MasterRO\Chronos\Chronos implements ChronosContract so you can check and typehint inerface insteadof class name., (*6)

The Versions

11/08 2017

dev-master

9999999-dev

Replace Carbon\Carbon with Cake\Chronos\Chronos

  Sources   Download

MIT

The Requires

 

by Roman Ihoshyn

laravel date carbon chronos

11/08 2017

v0.1.1

0.1.1.0

Replace Carbon\Carbon with Cake\Chronos\Chronos

  Sources   Download

MIT

The Requires

 

by Roman Ihoshyn

laravel date carbon chronos

11/08 2017

v0.1.0

0.1.0.0

Replace Carbon\Carbon with Cake\Chronos\Chronos

  Sources   Download

MIT

The Requires

 

by Roman Ihoshyn

laravel date carbon chronos