PHP code example of davidvandertuijn / date_fuzzy_span

1. Go to this page and download the library: Download davidvandertuijn/date_fuzzy_span 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/ */

    

davidvandertuijn / date_fuzzy_span example snippets


date_fuzzy_span(time() - 10); // moments ago
date_fuzzy_span(time() + 20); // in moments