PHP code example of guanhui07 / carbon
1. Go to this page and download the library: Download guanhui07/carbon 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/ */
guanhui07 / carbon example snippets
composer
Carbon::now()->toDateTimeString();
Carbon::now()->subDays(1)->startOfDay()->toDateTimeString();
Carbon::now()->getTimestamp();
Carbon::now()->format('Y-m-d');
Carbon::now()->endOfDay()->getTimestamp();