Chronos: CakePHP replacement for carbon
Chronos is a drop-in library replacement for nesbot/carbon. It provides immutable date/datetime objects. Immutable objects help us to ensure, that DateTime objects aren’t accidentally modified. <?php<br>require 'vendor/autoload.php';<br>use Cake\Chronos\Chronos;<br>printf("Now: %s", Chronos::now());<br>?>