PHPackages                             reedware/carbon-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. reedware/carbon-helper

ActiveLibrary

reedware/carbon-helper
======================

Adds a global helper method to create carbon instances.

v1.1.0(2w ago)153↓100%MITPHP

Since Jul 31Pushed 2w ago1 watchersCompare

[ Source](https://github.com/tylernathanreed/carbon-helper)[ Packagist](https://packagist.org/packages/reedware/carbon-helper)[ RSS](/packages/reedware-carbon-helper/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Carbon Helper
=============

[](#carbon-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/73b327398532a54e117937e912ff9b362c63ad5f5bfec94cbf1dfd54fbe86261/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72656564776172652f636172626f6e2d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reedware/carbon-helper)[![Total Downloads](https://camo.githubusercontent.com/e46a25da7dedb3747babb033bf8a0c5303649bdf1ac17d3e88d69263373566c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72656564776172652f636172626f6e2d68656c706572)](https://packagist.org/packages/reedware/carbon-helper)

Adds a global helper method to create Carbon instances. See  for how to use Carbon.

```
carbon('2019-07-23 14:51'); // Equivalent to \Carbon\Carbon::parse('2019-07-23 14:51');
```

Installation (Using Composer)
-----------------------------

[](#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!

```
