PHP code example of itsimiro / php-carbon-parse-any-format

1. Go to this page and download the library: Download itsimiro/php-carbon-parse-any-format 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/ */

    

itsimiro / php-carbon-parse-any-format example snippets


    $dateParser = new \Itsimiro\PhpCarbonParseAnyFormat\DateParser();

    $dateParser->parseSafety('10/08/2023')->format('Y-m-d'); // output: 2023-08-10