PHP code example of cooper / laravel-carbon-chinese-macros

1. Go to this page and download the library: Download cooper/laravel-carbon-chinese-macros 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/ */

    

cooper / laravel-carbon-chinese-macros example snippets




use Illuminate\Support\Carbon;

$day = Carbon::parse('2022-12-25');

$day->isChristmasDay();
// true

$day->isNewYearsDay();
// false