Download the PHP package rajbir/date-of-year without Composer
On this page you can find all versions of the php package rajbir/date-of-year. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rajbir/date-of-year
More information about rajbir/date-of-year
Files in rajbir/date-of-year
Download rajbir/date-of-year
More information about rajbir/date-of-year
Files in rajbir/date-of-year
Vendor rajbir
Package date-of-year
Short Description "A simple PHP package to calculate the day of the year based on a given date."
License MIT
Package date-of-year
Short Description "A simple PHP package to calculate the day of the year based on a given date."
License MIT
Please rate this library. Is it a good library?
Informations about the package date-of-year
DateOfYear
DateOfYear is a PHP class that calculates the difference between a given year and the current year.
Installation
Use Composer to install the DateOfYear package.
composer require your-vendor-name/date-of-year
Usage
php
Copy code
use Dateofyear\DateOfYear;
// Create a new instance of DateOfYear
$dateOfYear = new DateOfYear(1995);
// Get the year difference
$difference = $dateOfYear->getYearDifference();
Testing
DateOfYear includes unit tests using PHPUnit. To run the tests, use the following command:
bash
Copy code
./vendor/bin/phpunit tests/DateOfYearTest.php
Contributing
Contributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
All versions of date-of-year with dependencies
PHP Build Version
Package Version
No informations.
The package rajbir/date-of-year contains the following files
Loading the files please wait ....