reedware / carbon-helper
Adds a global helper method to create carbon instances.
v1.0.1
2019-07-31 00:45 UTC
Requires
- nesbot/carbon: ^1.0 || ^2.0
This package is auto-updated.
Last update: 2024-10-08 00:37:46 UTC
README
Adds a global helper method to create Carbon instances. See http://carbon.nesbot.com for how to use Carbon.
carbon('2019-07-23 14:51'); // Equivalent to \Carbon\Carbon::parse('2019-07-23 14:51');
Installation (Using Composer)
Run the following command:
$ composer require reedware/carbon-helper
Or manually require this package:
{ "require": { "reedware/carbon-helper": "^1.0" } }
Then make sure composer is loaded, and get going!
<?php require 'vendor/autoload.php'; printf("Now: %s", carbon());