reedware/carbon-helper

Adds a global helper method to create carbon instances.

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/reedware/carbon-helper

v1.0.1 2019-07-31 00:45 UTC

This package is auto-updated.

Last update: 2025-10-08 02:59:01 UTC


README

Latest Stable Version Total Downloads

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());