PHP code example of mixislv / name-days

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

    

mixislv / name-days example snippets


use mixisLv\NameDays\NameDays;

$nameDays = new NameDays();

var_dump($nameDays->getNames());
var_dump($nameDays->getNames("09-29"));
var_dump($nameDays->getNames("2019-09-29"));
var_dump($nameDays->getNames("09-29")->toArray());
var_dump($nameDays->getNames("09-29")->toString());
var_dump($nameDays->getDate("MiKuS"));
var_dump($nameDays->getDate("MiKuS", true));