v1.0.2
1.0.2.0 https://github.com/duiliopastorelli/getMonthClass to get a Month in different formats and languages.
MIT
The Requires
- php >=5.3.0
Wallogit.com
2017 © Pedro Peláez
Simple class to get a month in different formats and languages., (*1)
$ composer require duiliopastorelli/get-Month
You can call the class with:, (*2)
<?php require "vendor/autoload.php"; use DuilioPastorelli\Month; echo Month::getMonth();
Or if you don't want to add the "use DuilioPastorelli\Month" at the top, you can:, (*3)
<?php require "vendor/autoload.php"; echo \DuilioPastorelli\Month::getMonth();
See Usage section for more options., (*4)
Copy the "Month.php" file inside your project., (*5)
Include it:, (*6)
<?php include "[PATH]/month.php"; echo Month::getMonth();
See Usage section for more options., (*7)
Month::getMonth();
Month::getMonth("[LANGUAGE]");
Available languages are:, (*8)
it
de
Month::getMonth(null, 1);
Month::getMonth(null, -1);
Supported values for the Time Machine are 1->11 and -1->-11, (*9)
Month::getMonth(null, null, 3);
Month::getMonth("de", 1);
Month::getMonth("de", null, 4);
Class to get a Month in different formats and languages.
MIT