yohang / CalendR

The missing PHP 5.3+ calendar management library.
http:/yohan.giarel.li/CalendR
MIT License
465 stars 65 forks source link

[Feature Request] Support Carbon package #42

Open morloderex opened 8 years ago

morloderex commented 8 years ago

Hello Yohang

Is it at all possible that this package could support Carbon along side the Native \DateTime class, because The laravel elougent ORM is using this package out of the box.

And Carbon is a nice wrapper around the DateTime class

It's A LOT of work yeah i know, but it could be possible.

yohang commented 8 years ago

Hi,

I'll have a look, but atm I don't know anything of carbon.

If it can provide new features / flexibility without changing the global architecture of CalendR, why not.

morloderex commented 8 years ago

For reference you could look at the documentation for it.

It has stuff like

Carbon::now()->diffForHumans();

would create something like 1 hour ago if it's 1 hour ago.

It also has methods for string formatting out of the box:

Carbon::create('first day of January 2008');   

which would create an object of Carbon from the first monday of january 2008.

And a lot more, i would love to use that in my project alongside this project.

morloderex commented 8 years ago

Any news regarding this? :)

yohang commented 8 years ago

No, sorry, this is not in my top list ATM.

morloderex commented 8 years ago

Have you found out anything with this feature request yet?