🗓 A library to help you work with dates in multiple languages, based on Carbon.

Overview

Date

Latest Stable Version Total Downloads Build Status Coverage Status Donate

This date library extends Carbon with multi-language support. Methods such as format, diffForHumans, parse, createFromFormat and the new timespan, will now be translated based on your locale.

All translations made by contributors have been moved to the Carbon 2 package. This package now uses the Carbon translations to provide you with better multi-language support. Translation issues should be reported on the Carbon repository. Please also check out the original documentation here.

Installation

Install using composer:

composer require jenssegers/date

Laravel

There is a service provider included for integration with the Laravel framework. This provider will get the application locale setting and use this for translations. This service will be automatically registered if you use Laravel 5.5+ using the auto-discovery. Else to register the service provider, add the following to the providers array in config/app.php:

Jenssegers\Date\DateServiceProvider::class,

You can also add it as a Facade in config/app.php:

'Date' => Jenssegers\Date\Date::class,

Languages

This package contains language files for the following languages (https://carbon.nesbot.com/docs/#supported-locales):

  • Afar (aa)
  • Afrikaans (af)
  • Aghem (agq)
  • Aguaruna (agr)
  • Akan (ak)
  • Amharic (am)
  • Aragonese (an)
  • Angika (anp)
  • Arabic (ar)
  • Assamese (as)
  • Asu (asa)
  • Asturian (ast)
  • Southern Aymara (ayc)
  • Azerbaijani (az)
  • Basaa (bas)
  • Belarusian (be)
  • Bemba (bem)
  • ber (ber)
  • Bena (bez)
  • Bulgarian (bg)
  • Bhili (bhb)
  • Bhojpuri (bho)
  • Bislama (bi)
  • Bambara (bm)
  • Bengali (bn)
  • Tibetan (bo)
  • Breton (br)
  • Bodo (brx)
  • Bosnian (bs)
  • Bilin (byn)
  • Catalan (ca)
  • Chakma (ccp)
  • Chechen (ce)
  • Chiga (cgg)
  • Cherokee (chr)
  • Chinese (cmn)
  • Crimean Turkish (crh)
  • Czech (cs)
  • Kashubian (csb)
  • Church Slavic (cu)
  • Chuvash (cv)
  • Welsh (cy)
  • Danish (da)
  • Taita (dav)
  • German (de)
  • Zarma (dje)
  • Dogri (macrolanguage) (doi)
  • Lower Sorbian (dsb)
  • Duala (dua)
  • Divehi (dv)
  • Jola-Fonyi (dyo)
  • Dzongkha (dz)
  • Embu (ebu)
  • Ewe (ee)
  • Greek (modern) (el)
  • English (en)
  • Esperanto (eo)
  • Spanish (es)
  • Estonian (et)
  • Basque (eu)
  • Ewondo (ewo)
  • Persian (fa)
  • Fulah (ff)
  • Finnish (fi)
  • Filipino (fil)
  • Faroese (fo)
  • French (fr)
  • Friulian (fur)
  • Western Frisian (fy)
  • Irish (ga)
  • Gaelic (gd)
  • Geez (gez)
  • Galician (gl)
  • Konkani (gom)
  • Swiss German (gsw)
  • Gujarati (gu)
  • Gusii (guz)
  • Manx (gv)
  • Hausa (ha)
  • Hakka Chinese (hak)
  • Hawaiian (haw)
  • Hebrew (modern) (he)
  • Hindi (hi)
  • Fiji Hindi (hif)
  • Chhattisgarhi (hne)
  • Croatian (hr)
  • Upper Sorbian (hsb)
  • Haitian (ht)
  • Hungarian (hu)
  • Armenian (hy)
  • i18n (i18n)
  • Interlingua (ia)
  • Indonesian (id)
  • Igbo (ig)
  • Sichuan Yi (ii)
  • Inupiaq (ik)
  • in (in)
  • Icelandic (is)
  • Italian (it)
  • Inuktitut (iu)
  • iw (iw)
  • Japanese (ja)
  • Ngomba (jgo)
  • Machame (jmc)
  • Javanese (jv)
  • Georgian (ka)
  • Kabyle (kab)
  • Kamba (kam)
  • Makonde (kde)
  • Kabuverdianu (kea)
  • Koyra Chiini (khq)
  • Kikuyu (ki)
  • Kazakh (kk)
  • Kako (kkj)
  • Kalaallisut (kl)
  • Kalenjin (kln)
  • Central Khmer (km)
  • Kannada (kn)
  • Korean (ko)
  • Konkani (kok)
  • Kashmiri (ks)
  • Shambala (ksb)
  • Bafia (ksf)
  • Colognian (ksh)
  • Kurdish (ku)
  • Cornish (kw)
  • Kirghiz (ky)
  • Langi (lag)
  • Luxembourgish (lb)
  • Ganda (lg)
  • Limburgan (li)
  • Ligurian (lij)
  • Lakota (lkt)
  • Lingala (ln)
  • Lao (lo)
  • Northern Luri (lrc)
  • Lithuanian (lt)
  • Luba-Katanga (lu)
  • Luo (luo)
  • Luyia (luy)
  • Latvian (lv)
  • Literary Chinese (lzh)
  • Magahi (mag)
  • Maithili (mai)
  • Masai (mas)
  • Meru (mer)
  • Morisyen (mfe)
  • Malagasy (mg)
  • Makhuwa-Meetto (mgh)
  • Metaʼ (mgo)
  • Eastern Mari (mhr)
  • Maori (mi)
  • Mískito (miq)
  • Karbi (mjw)
  • Macedonian (mk)
  • Malayalam (ml)
  • Mongolian (mn)
  • Manipuri (mni)
  • mo (mo)
  • Marathi (mr)
  • Malay (ms)
  • Maltese (mt)
  • Mundang (mua)
  • Burmese (my)
  • Mazanderani (mzn)
  • Min Nan Chinese (nan)
  • Nama (naq)
  • Norwegian Bokmål (nb)
  • North Ndebele (nd)
  • Low German (nds)
  • Nepali (ne)
  • Central Nahuatl (nhn)
  • Niuean (niu)
  • Dutch (nl)
  • Kwasio (nmg)
  • Norwegian Nynorsk (nn)
  • Ngiemboon (nnh)
  • Norwegian (no)
  • South Ndebele (nr)
  • Northern Sotho (nso)
  • Nuer (nus)
  • Nyankole (nyn)
  • Occitan (oc)
  • Oromo (om)
  • Oriya (or)
  • Ossetian (os)
  • Panjabi (pa)
  • Papiamento (pap)
  • Polish (pl)
  • Prussian (prg)
  • Pashto (ps)
  • Portuguese (pt)
  • Quechua (qu)
  • Cusco Quechua (quz)
  • Rajasthani (raj)
  • Romansh (rm)
  • Rundi (rn)
  • Romanian (ro)
  • Rombo (rof)
  • Russian (ru)
  • Kinyarwanda (rw)
  • Rwa (rwk)
  • Sanskrit (sa)
  • Sakha (sah)
  • Samburu (saq)
  • Santali (sat)
  • Sangu (sbp)
  • Sardinian (sc)
  • Sindhi (sd)
  • Northern Sami (se)
  • Sena (seh)
  • Koyraboro Senni (ses)
  • Sango (sg)
  • Samogitian (sgs)
  • sh (sh)
  • Tachelhit (shi)
  • Shan (shn)
  • Shuswap (shs)
  • Sinhala (si)
  • Sidamo (sid)
  • Slovak (sk)
  • Slovene (sl)
  • Samoan (sm)
  • Inari Sami (smn)
  • Shona (sn)
  • Somali (so)
  • Albanian (sq)
  • Serbian (sr)
  • Swati (ss)
  • Southern Sotho (st)
  • Swedish (sv)
  • Swahili (sw)
  • Silesian (szl)
  • Tamil (ta)
  • Tulu (tcy)
  • Telugu (te)
  • Teso (teo)
  • Tetum (tet)
  • Tajik (tg)
  • Thai (th)
  • Chitwania Tharu (the)
  • Tigrinya (ti)
  • Tigre (tig)
  • Turkmen (tk)
  • Tagalog (tl)
  • Klingon (tlh)
  • Tswana (tn)
  • Tongan (Tonga Islands) (to)
  • Tok Pisin (tpi)
  • Turkish (tr)
  • Tsonga (ts)
  • Tatar (tt)
  • Tasawaq (twq)
  • Talossan (tzl)
  • Tamazight (tzm)
  • Uighur (ug)
  • Ukrainian (uk)
  • Unami (unm)
  • Urdu (ur)
  • Uzbek (uz)
  • Vai (vai)
  • Venda (ve)
  • Vietnamese (vi)
  • Volapük (vo)
  • Vunjo (vun)
  • Walloon (wa)
  • Walser (wae)
  • Wolaytta (wal)
  • Wolof (wo)
  • Xhosa (xh)
  • Soga (xog)
  • Yangben (yav)
  • Yiddish (yi)
  • Yoruba (yo)
  • Cantonese (yue)
  • Yau (Morobe Province) (yuw)
  • Standard Moroccan Tamazight (zgh)
  • Chinese (zh)
  • Zulu (zu)

Usage

The Date class extends the Carbon methods such as format and diffForHumans, and translates them based on your locale:

use Jenssegers\Date\Date;

Date::setLocale('nl');

echo Date::now()->format('l j F Y H:i:s'); // zondag 28 april 2013 21:58:16

echo Date::parse('-1 day')->diffForHumans(); // 1 dag geleden

The Date class also added some aliases and additional methods such as: ago which is an alias for diffForHumans, and the timespan method:

echo $date->timespan(); // 3 months, 1 week, 1 day, 3 hours, 20 minutes

Methods such as parse and createFromFormat also support "reverse translations". When calling these methods with translated input, it will try to translate it to English before passing it to DateTime:

$date = Date::createFromFormat('l d F Y', 'zaterdag 21 maart 2015');

Carbon

Carbon is the library the Date class is based on. All of the original Carbon operations are still available, check out https://carbon.nesbot.com/docs for more information. Here are some of the available methods:

Creating dates

You can create Date objects just like the DateTime object (http://www.php.net/manual/en/datetime.construct.php):

$date = new Date();
$date = new Date('2000-01-31');
$date = new Date('2000-01-31 12:00:00');

// With time zone
$date = new Date('2000-01-31', new DateTimeZone('Europe/Brussels'));

You can skip the creation of a DateTimeZone object:

$date = new Date('2000-01-31', 'Europe/Brussels');

Create Date objects from a relative format (http://www.php.net/manual/en/datetime.formats.relative.php):

$date = new Date('now');
$date = new Date('today');
$date = new Date('+1 hour');
$date = new Date('next monday');

This is also available using these static methods:

$date = Date::parse('now');
$date = Date::now();

Creating a Date from a timestamp:

$date = new Date(1367186296);

Or from an existing date or time:

$date = Date::createFromDate(2000, 1, 31);
$date = Date::createFromTime(12, 0, 0);
$date = Date::create(2000, 1, 31, 12, 0, 0);

Formatting Dates

You can format a Date object like the DateTime object (http://www.php.net/manual/en/function.date.php):

echo Date::now()->format('Y-m-d'); // 2000-01-31

The Date object can be cast to a string:

echo Date::now(); // 2000-01-31 12:00:00

Get a human readable output (alias for diffForHumans):

echo $date->ago(); // 5 days ago

Calculate a timespan:

$date = new Date('+1000 days');
echo Date::now()->timespan($date);
// 2 years, 8 months, 3 weeks, 5 days

// or even
echo Date::now()->timespan('+1000 days');

Get years since date:

$date = new Date('-10 years');
echo $date->age; // 10

$date = new Date('+10 years');
echo $date->age; // -10

Manipulating Dates

You can manipulate by using the add and sub methods, with relative intervals (http://www.php.net/manual/en/datetime.formats.relative.php):

$yesterday = Date::now()->sub('1 day');
$tomorrow  = Date::now()->add('1 day');

// ISO 8601
$date = Date::now()->add('P2Y4DT6H8M');

You can access and modify all date attributes as an object:

$date->year = 2013:
$date->month = 1;
$date->day = 31;

$date->hour = 12;
$date->minute = 0;
$date->second = 0;

Contributing

Language contributions should made to https://github.com/briannesbitt/Carbon.

License

Laravel Date is licensed under The MIT License (MIT).

Security contact information

To report a security vulnerability, follow these steps.

Comments
  • Incompatible declaration of diffForHumans method

    Incompatible declaration of diffForHumans method

    When i ran composer update i found that with the release of briannesbitt/carbon 1.23.0 the diffForHumans method declaration is incompatible with the current one:

    ErrorException: Declaration of
    
    Jenssegers\Date\Date::diffForHumans(
      ?Carbon\Carbon $since = NULL, $absolute = false, $short = false
    )
    
    should be compatible with
    
    Carbon\Carbon::diffForHumans(
      ?Carbon\Carbon $other = NULL, $absolute = false, $short = false, $parts = 1
    )
    

    The related PR is https://github.com/briannesbitt/Carbon/pull/772

    opened by roberto-aguilar 39
  • How to perform declension of a date in Russian?

    How to perform declension of a date in Russian?

    I am using the ->format() method to output the date in Russian language. But what I need is to perform declension at first. Because without it the date looks like this: "9 Март 2015", which is wrong according to Russian grammar. It is supposed to be "9 Марта 2015".

    enhancement 
    opened by naneri 20
  • Fix #293 ⏫ Drop Carbon 1 support, use Carbon 2 translations

    Fix #293 ⏫ Drop Carbon 1 support, use Carbon 2 translations

    Fix #293 ⏫ Drop Carbon 1 support, use Carbon 2 translations Fix #300 Translating S format Fix #311 TranslatorInterface no longer used by jenssegers/date itself Fix #307 Khmer Language Fix #304 and fix #305 handle multiple forms of a word Fix #277 setTranslator compatibility Fix #272 Key overlapping in russian locale Fix #200 Translate AM/PM Fix #195 Greek short notation Fix #209 Norway has two languages Fix #231 createFromFromat translations Fix #181 ordinal Fix #188, fix #69 and fix #191 use native overrides methods of Carbon Fix #119 declensions in Russian Fix #40 short units Fix #301 Language::all() available in Carbon 2 Fix #231 Greedy mode will now allow to properly distinguish červen from červenec and other word-in-word

    Replaces: fix #312, fix #303, fix #298, fix #239, fix #236, fix #194, fix #191, fix #180, fix #323, fix #330, fix #328, fix #336 Closes as unmerged: close #154, close #182 Should be fixed in Carbon itself if merged: close #246, close #249

    opened by kylekatarnls 14
  • DateTime::__construct(): Failed to parse time string with MongoDb

    DateTime::__construct(): Failed to parse time string with MongoDb

    am having an app that use mysql which all works simply perfect & without a hitch , however am trying to migrate from mysql to mongodb using https://moloquent.github.io/master/#moloquent , so the code as follow

    • route
    Route::group([
        'prefix'     => LaravelLocalization::setLocale(),
        'middleware' => ['localeSessionRedirect', 'localizationRedirect'],
        ], function () {
    
            Date::setLocale(App::getLocale());
    
           // routes
        }
    );
    
    • model
    public function getCreatedAtAttribute($value)
    {
        return Date::parse($value)->format('F d, Y');
    }
    
    • mongo collection
    "updated_at" : ISODate("2016-10-19T14:08:27.624Z"),
    "created_at" : ISODate("2016-10-19T14:08:27.624Z"),
    

    test

    opened by ctf0 13
  • Correct pluralization for hour and year in dutch

    Correct pluralization for hour and year in dutch

    I just noticed that there is an error in the Dutch pluralization forms of year and hour.

    It might sound wierd but in the Dutch language we don't use the plural form in time indications. So '2 years ago' should not be translated to '2 jaren geleden' but to '2 jaar geleden' (in English '2 year ago').

    The same accounts for '2 hours ago', this should be translated to '2 uur geleden' (2 hour ago) and not '2 uren geleden'.

    I tried to find an English source but could not find one. Here you have an advice (in Dutch) from 'het Genootschap Onze Taal' an organization specialized in the Dutch language: https://onzetaal.nl/taaladvies/advies/twintig-jaar-jaren

    An other source for the hours is the Flemish Public Television: http://www.vrt.be/taal/uur-uren

    A pull request reflecting the changes is attached.

    opened by MartijnThomas 13
  • German translation correction

    German translation correction

    Hey, i really like your package, but as a german i have some minor issues with the diffForHuman translation:

    'from_now' => ':time von jetzt', should be from_now' => 'in :time', Example: 3 Tag_e_ von jetzt should be: in 3 Tage_n_ ( notice the pluralization ) As far as i can think of, the pluralization of from_now is the same as in *_ago

    I don't really know how to produce the after and before triggers, but i suspect them to be incorrect as well. (but this should be verified) 'after' => ':time nach' -> 'after' => 'nach :time' (pluralization same as *_ago) 'before' => ':time vor' -> 'before' => 'vor :time' (pluralization same as *_ago)

    Thanks!

    opened by nce 13
  • ErrorException in Date.php line 6: Declaration of Jenssegers\Date\Date::setTranslator() should be compatible with Carbon\Carbon::setTranslator

    ErrorException in Date.php line 6: Declaration of Jenssegers\Date\Date::setTranslator() should be compatible with Carbon\Carbon::setTranslator

    Hi Jens,

    I got this error on my Laravel 5 install after updating your library through composer. Any ideas?

    ErrorException in Date.php line 6: Declaration of Jenssegers\Date\Date::setTranslator() should be compatible with Carbon\Carbon::setTranslator(Symfony\Component\Translation\TranslatorInterface $translator)
    
    opened by cschalenborgh 11
  • The class dont load the locale config from laravel

    The class dont load the locale config from laravel

    I was testing it and by default the class doesn't load the locale config from laravel. I can't see the code that load this config from laravel.

    I fix it by putting this code on translator.php public function __construct() {

        if (class_exists('Illuminate\Support\Facades\Config'))
            $this->locale =\Illuminate\Support\Facades\Config::get('app.locale');
    
    }
    
    opened by platix 11
  • Subtagged languages are inconsistent with Symfony

    Subtagged languages are inconsistent with Symfony

    Symphony uses underline (_) to subtag a language and laravel-date dash (-), as in pt-BR, since this is a Laravel package and Symfony is "hard to change", you might want to modify this.

    But we also have to consider that RFC 5646 tells us to use dash, so now you have to decide if you prefer being right or Symfony consistent... :)

    There is an issue in Symfony talking about that but I don't see it changing anytime soon: https://github.com/symfony/symfony/issues/2468

    opened by antonioribeiro 10
  • Can't run composer update : Jenssegers\Date\Date::diffForHumans() should be compatible with Carbon\Carbon::diffForHumans(...)

    Can't run composer update : Jenssegers\Date\Date::diffForHumans() should be compatible with Carbon\Carbon::diffForHumans(...)

    When I run composer update on my project, I have this issue :

    exception 'ErrorException' with message 'Declaration of Jenssegers\Date\Date::diffForHumans() should be compatible with Carbon\Carbon::diffForHumans(Carbon\Carbon $other = NULL, $absolute = false)'

    I tried on master and last tag. I think it's because any version of carbon is required "nesbot/Carbon": "*", in Jenssegers/Date's composer.json, and Carbon was released 4 hours ago.

    opened by rap2hpoutre 10
  • Can't run in php 5.4

    Can't run in php 5.4

    app requirement : "php": ">=5.3.3" Why can't run in PHP 5.4 ? error in config app.php line : Jenssegers\Date\Date::class any way ? i used library in laravel 4

    opened by ridwanskaterock 9
  • ADD recognize weeks

    ADD recognize weeks

    examples:

    week nr 23
    wk 23
    week №23
    week # 23
    W23
    2022#23
    first day 9 AM of 2022#23
    week number 23
    first day 9 AM of 2022 week number 23
    2022 week 23 first day 9 AM
    2022 week nr 23
    2022W23 // ISO format
    
    opened by allanlaal 3
  • Translator does not implement

    Translator does not implement

        Date::setLocale('nl');
    
        echo Date::now()->format('l j F Y H:i:s'); // zondag 28 april 2013 21:58:16
    
        echo Date::parse('-1 day')->diffForHumans(); // 1 dag geleden
        //$date = new Date('2000-01-31', new DateTimeZone('Europe/Brussels'));
        exit();
    

    Fatal error: Uncaught InvalidArgumentException: Translator does not implement Symfony\Component\Translation\TranslatorInterface and Symfony\Component\Translation\TranslatorBagInterface. in /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php:188 Stack trace: #0 /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php(214): Carbon\Carbon::getTranslationMessageWith(Object(Carbon\Translator), 'weekdays', NULL, NULL) #1 /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Date.php(1190): Carbon\Carbon->getTranslationMessage('weekdays') #2 /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Date.php(1217): Carbon\Carbon->getTranslatedFormByRegExp('weekdays', '', 'dddd D MMMM YYY...', 5, 'Friday') #3 /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Date.php(1824): Carbon\Carbon->getTranslatedDayName('dddd D MMMM YYY...') #4 /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Date. in /var/www/vhosts/##.gr/httpdocs/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 188

    opened by nikmauro 5
  • [QUESTION] How to add custom lang file without adding it to vendor folder?

    [QUESTION] How to add custom lang file without adding it to vendor folder?

    Hello,

    Not an issue. Right now i am adding a custom language file to the vendor folder and it works, That is until I have to composer install. So how would I add the lang file outside the vendor folder.

    Thank you

    opened by nedo2020 1
  • 3 months ago Polish translations were reverted to incorrect forms

    3 months ago Polish translations were reverted to incorrect forms

    Please undo the last commit of the file lang/pl.php

    In Polish language in dates the name of the month must be in Genitive case.

    Please refer to theseEnglish sources: http://www.mediawiki.org/wiki/Template:I18n_month http://stackoverflow.com/questions/17188316/month-name-in-genitive-polish-locale-with-joda-time-datetimeformatter

    Additional remark: Is it possibe to somehow lock the file against disrupting changes? This is the second time I need to manually downgrade your package to version which displays month names properly. Maybe we could put a remark in a comment inside of the file?

    opened by UnrulyNatives 3
  • Return incorrect month format in format('M')">

    Return incorrect month format in "ru" & "uk" translations after call ->format('M')

    Hi, sorry for my bad English.

    Into lang files "ru" and "uk" we have duplicate keys in 30 and 43 lines: 30: 'may' => 'май' 43: 'may' => '{0}май|{1}мая'.

    And if call some date with "->format('M')" we get '{0}май|{1}мая' instead expected "май".

    opened by Kanzafarov 6
Releases(v4.0.0)
Owner
Jens Segers
Head of Engineering at CHEQROOM
Jens Segers
75 languages support for Laravel 5 application based on Laravel-Lang/lang.

Laravel-lang 75 languages support for Laravel 5 application based on Laravel-Lang/lang. Features Laravel 5+ && Lumen support. Translations Publisher.

安正超 1.3k Jan 4, 2023
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Cashier and Laravel Nova.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Dec 29, 2022
Extracts translatable strings from source. Identical to xgettext but for template languages.

xgettext-template Extracts translatable strings from source. Identical to xgettext(1) but for template languages. Template language support Handlebars

Guillaume C. Marty 79 Oct 7, 2022
Support multiple language resources for Laravel

Laratrans Support multiple language resources for Laravel. Docs Installation composer require lechihuy/laratrans After you install the package success

Lê Chí Huy 3 Dec 21, 2021
[virion] Language management library for automatic translation

libtranslator :: library for automatic translation ✔️ Multilingual support for plugin messages ✔️ Translation language is set according to the player

PocketMine-MP projects of PresentKim 5 Jul 29, 2022
PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)

Gettext Note: this is the documentation of the new 5.x version. Go to 4.x branch if you're looking for the old 4.x version Created by Oscar Otero http

Gettext 651 Dec 29, 2022
Geographer is a PHP library that knows how any country, state or city is called in any language

Geographer Geographer is a PHP library that knows how any country, state or city is called in any language. Documentation on the official website Incl

Menara Solutions 757 Nov 24, 2022
Official PHP library for the DeepL language translation API.

deepl-php Official PHP client library for the DeepL API. The DeepL API is a language translation API that allows other computer programs to send texts

DeepL 78 Dec 23, 2022
A PHP internationalization library, powered by CLDR data.

intl A PHP 7.1+ internationalization library, powered by CLDR data. Features: NumberFormatter and CurrencyFormatter, inspired by intl. Currencies Lang

Commerce Guys 351 Dec 30, 2022
🌐 A minimalist languages library that made plugins support multiple languages.

libLanguages · libLanguages is a PocketMine-MP library for making plugins support multiple languages. Easy To Learn: Just declare it in onEnable() fun

thebigcrafter 1 May 1, 2022
YCOM Impersonate. Login as selected YCOM user 🧙‍♂️in frontend.

YCOM Impersonate Login as selected YCOM user in frontend. Features: Backend users with admin rights or YCOM[] rights, can be automatically logged in v

Friends Of REDAXO 17 Sep 12, 2022
Laravel package to convert AD to BS that can work with carbon.

Laravel Nepali Date Converter Laravel package to convert AD to BS that can work with carbon. Installation You can install the package via composer: co

DRH2SO4 19 Jan 5, 2023
A standalone DateTime library originally based off of Carbon

CakePHP Chronos Chronos aims to be a drop-in replacement for nesbot/carbon. It focuses on providing immutable date/datetime objects. Immutable objects

CakePHP 1.3k Jan 1, 2023
This PHP library will help you to work with your Pinterest account without using any API account credentials.

Pinterest Bot for PHP A PHP library to help you work with your Pinterest account without API credentials. The Pinterest API is painful: receiving an a

Sergey Zhuk 414 Nov 21, 2022
Unirest - a set of lightweight HTTP libraries available in multiple languages

Unirest is a set of lightweight HTTP libraries available in multiple languages, built and maintained by Mashape, who also maintain the open-source API Gateway Kong.

Kong 1.3k Dec 30, 2022
Unirest is a set of lightweight HTTP libraries available in multiple languages.

Unirest for PHP Unirest is a set of lightweight HTTP libraries available in multiple languages. This fork is maintained by APIMatic for its Code Gener

APIMatic 14 Oct 26, 2022
World countries - available in multiple languages, in CSV, JSON, PHP, SQL and XML formats

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries

Stefan Gabos 1k Dec 29, 2022
laravel package help you to implement geographical calculation, with several algorithms that help you deal with coordinates and distances.

Geographical Calculator Geographical Calculator was developed for laravel 5.8+ to help you to implement geographical calculation, with With several al

karam mustafa 342 Dec 31, 2022
A PHP Library To Make Your Work Work Easier/Faster

This Is A Php Library To Make Your Work Easier/Faster,

functionality 2 Dec 30, 2022
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

Support I am a dad now for the last 1,5 years and that clearly shows in being on time with merging PRs or pushing this package further. Time is the bi

Tino Ehrich 944 Dec 21, 2022