reedware/carbon-helper

Adds a global helper method to create carbon instances.

Maintainers

Package info

github.com/tylernathanreed/carbon-helper

pkg:composer/reedware/carbon-helper

Statistics

Installs: 49

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.1.0 2026-03-06 23:09 UTC

This package is auto-updated.

Last update: 2026-03-06 23:10:16 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());