sajjad-ser/intl-carbon

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP Carbon for other countries

dev-master 2015-07-09 06:44 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:49:14 UTC


README

PHP Carbon extension with IntlCalendars to support:

  • Japanese
  • Buddhist
  • Chinese
  • Persian
  • Indian
  • Islamic
  • Hebrew
  • Coptic
  • Ethiopic Calendar types in output.
printf("Right now is %s", IntlCarbon::now()->setCalendar('persian')->toDateTimeString());
//Right now is 1394-04-17 23:38:00
printf("%s",IntlCarbon::now()->setCalendar('islamic')->setLang('ar_UA')->toDateTimeString());
//١٤٣٦-٠٩-٢٢ ٢٣:٣٩:٤٢

Todo:

  • complete tests