1. Go to this page and download the library: Download damenjo/rutin 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/ */
damenjo / rutin example snippets
use Damenjo\Rutin\Main\Rutin;
// 2023-08-03 20:39:45
$now = Rutin::now()->format();
try {
// Invalid argument data type
$rutinNull = Rutin::now()->addDays("")->format("Y-m-d");
} catch (\Damenjo\Rutin\Exceptions\RutinException $e) {
// We recommend you to use this catch blocks too
echo $e->ruinMessage();
} catch (\TypeError $e) {
// Do whatever you want inside this block
}