Imagine one day we colonize new planets and you want to know if it's Valentine day at that planet so you don't forget to call your alien girlfriend/boyfriend, here come this tool in handy to convert between date systems.
This is a console application proudly powered the 💪 Lumen.
- Gregorian Calendar.
- Equally distributed days, means the month lengh is the same through the year.
This tool has been made so adding new calendar systems is easy.
- of course the
composer install
- copy .env.example into .env and configure your database
php artisan migrate
php artisan planets:add
to add a new planetphp artisan planets:list
to list all planetsphp artisan planets:get ID
to get a specific planet IDphp artisan planets:delete ID
to delete a specific planet IDphp artisan planets:add ID AMOUNT --unit=UNIT
add AMOUNT of UNIT to the specifi planet ID. Unit can be :days
months
years
date
with the format 'YYY-MM-DD'
phpunit
to run the tests
- Add time handeling!
- Add more calendars
- Add Notification (about the valentine thing :p)
Either you found a bug, or want something implemented, go ahead and hack your way into the code, PRs are welcome.
MIT