PHPackages                             cmixin/enhanced-period - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cmixin/enhanced-period

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cmixin/enhanced-period
======================

Carbon mixin to convert `Carbon\\CarbonPeriod` to `Spatie\\Period\\Period` and vice versa

1.2.1(2y ago)1963.2k↓21.1%32MITPHPPHP ^7.2 || ^8.0

Since Aug 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kylekatarnls/enhanced-period)[ Packagist](https://packagist.org/packages/cmixin/enhanced-period)[ Fund](https://opencollective.com/Carbon)[ Fund](https://tidelift.com/funding/github/packagist/nesbot/carbon)[ RSS](/packages/cmixin-enhanced-period/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (2)

enhanced-period
===============

[](#enhanced-period)

[Carbon](https://carbon.nesbot.com/) mixin to convert `Carbon\CarbonPeriod` to `Spatie\Period\Period` and vice versa.

[![Latest Stable Version](https://camo.githubusercontent.com/ab383398206ad4d15518b086ea4024cfb8a1ca164f2c16977dc740f27d8ca92c/68747470733a2f2f706f7365722e707567782e6f72672f636d6978696e2f656e68616e6365642d706572696f642f762f737461626c652e706e67)](https://packagist.org/packages/cmixin/enhanced-period)[![Tests](https://github.com/kylekatarnls/enhanced-period/actions/workflows/tests.yml/badge.svg)](https://github.com/kylekatarnls/enhanced-period/actions/workflows/tests.yml)[![Code Climate](https://camo.githubusercontent.com/2b123662c653d7f5ad0c6c9829bf4b17bbd0cec785e1fa5854562f69c018dc02/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b796c656b617461726e6c732f656e68616e6365642d706572696f642f6261646765732f6770612e737667)](https://codeclimate.com/github/kylekatarnls/enhanced-period)[![Test Coverage](https://camo.githubusercontent.com/1903ee3fbf2220d36a6c92bfe7c5154ec88d737902bc1727d2678670fcf2d5de/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b796c656b617461726e6c732f656e68616e6365642d706572696f642f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/kylekatarnls/enhanced-period/coverage)[![Issue Count](https://camo.githubusercontent.com/e02268d59baa293cb522c1272ee930b77582cb66c04a9bc26694b7e99ff6ba9f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b796c656b617461726e6c732f656e68616e6365642d706572696f642f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/kylekatarnls/enhanced-period)[![StyleCI](https://camo.githubusercontent.com/9f7e85d7643d405f402ffb36b1689819eaa7cf2059d07d08072bb180c170910b/68747470733a2f2f7374796c6563692e696f2f7265706f732f3230303337393736392f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://styleci.io/repos/200379769)

[Professionally supported nesbot/carbon is now available](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)

Install
-------

[](#install)

```
composer require cmixin/enhanced-period
```

Usage
-----

[](#usage)

```
