PHP code example of gtmassey / days
1. Go to this page and download the library: Download gtmassey/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/ */
gtmassey / days example snippets
use Gtmassey\Days\Days;
$monday = new Days('Monday');
$tuesday = Days::make('Tuesday');
$wednesday = Days::Wednesday();
$monday->asCharacterCode(); //'M'
$monday->asShortName(); //'Mon'
$sunday->asCharacterCode(); //'U'
$thursday->asFullName(); //'Thursday'