sepbit / dekaph
This is a simple library to convert Dekatrian and Gregorian.
3.3.0
2021-06-23 13:15 UTC
Requires
- php: ^7.4 || ^8.0
Requires (Dev)
- nunomaduro/phpinsights: ^2.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2025-01-28 20:35:30 UTC
README
DEKAtrian for PHp
This is a simple library for converting dates between Dekatrian and Gregorian calendars. This library is not official.
This package is compatible with PSR-12, PSR-4 and PHP Insights.
Documentation generated automatically with PhpDocumentor.
Coverage generated automatically with PHPUnit.
Install
This project uses PHP and Composer.
$ composer require sepbit/dekaph
Usage
This is minimal example.
<?php
require __DIR__ .'/vendor/autoload.php';
use Sepbit\Dekaph\Dekatrian;
// Convert from Dekatrian to Gregorian calendars.
Dekatrian::dekaToGreg(2018, 13, 28);
// Return string, 2018-12-31
// Convert from Gregorian to Dekatrian calendars.
Dekatrian::gregToDeka(2018, 12, 31);
// Return string, 2018-13-28
Contributing
Pull Requests not accepted.
Security
If you discover any security related issues, please email contato@sepbit.com
instead of using the issue tracker.
License
GPL-3.0-or-later, please see COPYING file for more information.