Download the PHP package setkyar/datetimeformat without Composer
On this page you can find all versions of the php package setkyar/datetimeformat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download setkyar/datetimeformat
More information about setkyar/datetimeformat
Files in setkyar/datetimeformat
Download setkyar/datetimeformat
More information about setkyar/datetimeformat
Files in setkyar/datetimeformat
Vendor setkyar
Package datetimeformat
Short Description Format your time
License WTFPL
Package datetimeformat
Short Description Format your time
License WTFPL
Keywords date time format
Please rate this library. Is it a good library?
Informations about the package datetimeformat
PHP Times
Installation
Run the following via your terminal
composer require "setkyar/datetimeformat"
Usage
Create a index.php
and put the following code and run $php -S localhost:8000
<?php
// Display Errors On
ini_set('display_errors', 'On');
$autoload = __DIR__.'/vendor/autoload.php';
if ( ! file_exists($autoload))
{
exit("Need to run \"composer install\"!");
}
require $autoload;
use SetKyar\DateTimeFormat\DateTimeFormat;
//What you want to use functions goes here!
Functions
Get today
DateTimeFormat::now();
Get first day of the month
DateTimeFormat::firstDayOfthisMonth();
Get last day of the month
DateTimeFormat::lastDayOfthisMonth());
Get First day of next month
DateTimeFormat::firstDayOfNextMonth());
Last Dat of Next Month
DateTimeFormat::lastDayOfNextMonth();
DateTimeFormat::age('22-11-1994');
DateTimeFormat::fromStartOfDay();
DateTimeFormat::endOfDayFromNow();
DateTimeFormat::verifyDate('16-03-2015', 'd-m-y');
Contributing
- Fork it ( https://github.com/setkyar/time )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- Stars are welcome too :smile:
License
WTFPL
All versions of datetimeformat with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package setkyar/datetimeformat contains the following files
Loading the files please wait ....