Repository navigation
Home
Jan Hermann edited this page Oct 19, 2026
·
6 revisions
🕹️
How to use the project.
Every namespace lives in src/timely/<namespace>/ and has its own page. Browser demos are in the examples/ folder.
Composer registers the Timely\ namespaces, so classes can be used right after vendor/autoload.php is loaded:
require "vendor/autoload.php";
use Timely\Easter\Calculator;
Calculator::sunday(2026)->format("j.n.Y"); // "5.4.2026"Import all classes as one namespace, see JavaScript:
import * as Timely from "./src/timely/index.js";
Timely.Helper.isLeap(2000); // trueClasses are in the timely.<namespace> packages, e.g. timely.years.Helper.isLeap(2000).
-
Dates:
Timely\Datesindates/. Date comparison, working days (Helper.php), Gregorian/Julian conversions (Date.java),DateFormatter.jsandWeek.js. -
Easter:
Timely\Easterineaster/.EasterCalculatorwith Butcher, Oudin and Meeus algorithms, Good Friday and Easter Monday. -
Holidays:
Timely\Holidaysinholidays/. Public holidays by language (Finder.php,czech/,slovak/). -
Name Days:
Timely\NameDaysinnamedays/. Czech and Slovak name days (NameDayFinder,CzechNameDayFinder,SlovakNameDayFinder). -
Times:
Timely\Timesintimes/. Current date and time formatting (Helper.php). -
Years:
Timely\Yearsinyears/. Leap year checks (YearHelper).
-
Clocks: Web-based clocks in
clocks/(BCD, binary, normal, verbal, hexcolor). -
JavaScript: ES module classes exported by
index.jsunder theTimelynamespace. - Examples: Browser demos of the JavaScript classes.
- Tests: JUnit, PHPUnit and Node.js test suites.