PHP code example of parieses / php-help

1. Go to this page and download the library: Download parieses/php-help library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

parieses / php-help example snippets


composer.json 增加      "parieses/php-help": "^0.1.0"
然后执行composer install
或者
composer 

composer install
php demo.php

echo timeHelp::currentYear();
echo timeHelp::currentMonth();
echo timeHelp::currentDay();
echo timeHelp::currentHour();
echo timeHelp::currentMin();
echo timeHelp::currentSecond();

echo timeHelp::dateTime();

echo timeHelp::timeStamp("2018-04-24 15:48:04");

echo timeHelp::DValue('2018-04-25 15:48:18', '04/03/2018 15:48:12');

echo timeHelp::fromTime(timeHelp::timeStamp('2019-10-11 15:48:04'),1);