PHPackages                             warriorgod/international-date-line-crossing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. warriorgod/international-date-line-crossing

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

warriorgod/international-date-line-crossing
===========================================

Display correct itinerary items when a ship crosses the IDL

v1.0.0(9y ago)010MITPHP

Since Apr 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/warriorGod/international-date-line-crossing)[ Packagist](https://packagist.org/packages/warriorgod/international-date-line-crossing)[ RSS](/packages/warriorgod-international-date-line-crossing/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

International date line crossing
================================

[](#international-date-line-crossing)

Display correct itinerary items when a ship crosses the IDL. The IDL crossing needs to be configured with one of the following options:

- **NO** - normal item
- **EASTBOUND** - item represents IDL crossing Eastbound, gaining a day. The item however is just a marker, it does not take any time (e.g. Day3: IDL crossing, Day3: watching sea-turtles mate).
- **EASTBOUND\_DAY** - item represents IDL crossing Eastbound, gaining a day. The item represents a day of activity and will count as a day as well (e.g. Day3: Crossing IDL and watching sea-turtles mate).
- **WESTBOUND** - item represents IDL crossing Westbound, loosing a day. The item however is just a marker, it does not take any time (e.g. Day3: IDL crossing, Day3: watching sea-turtles mate).
- **WESTBOUND\_DAY** - item represents IDL crossing Westbound, loosing a day. The item represents a day of activity and will count as a day as well (e.g. Day3: Crossing IDL and watching sea-turtles mate).

Example crossings are:

1. Ship sails from **Asia to US** across the pacific ocean (going EASTBOUND) - you gain a day as you are loosing hours all the time

IndexDayDateIDL012016-12-24122016-12-25222016-12-25`EASTBOUND`332016-12-25442016-12-262. Same, but the crossing represents a whole day

IndexDayDateIDL012016-12-24122016-12-25232016-12-26`EASTBOUND_DAY`342016-12-26452016-12-273. Ship sails from **US to Asia** across the pacific ocean (going EASTBOUND) - you loose a day as you are gaining hours all the time

IndexDayDateIDL012016-12-24122016-12-25222016-12-25`WESTBOUND`332016-12-27442016-12-284. Same, but the crossing represents a whole day

IndexDayDateIDL012016-12-24122016-12-25232016-12-26`WESTBOUND_DAY`342016-12-28452016-12-29Usage
=====

[](#usage)

Please see the tests for examples. Basically you define a list of itinerary items and set the IDL options on some of them. Days and dates will then be adjusted accordingly.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3323d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fe2f113571d1ed583479addd0f27c5fcd512cef30964aa45062272831293b77?d=identicon)[warriorGod](/maintainers/warriorGod)

---

Top Contributors

[![warriorGod](https://avatars.githubusercontent.com/u/1256979?v=4)](https://github.com/warriorGod "warriorGod (2 commits)")

---

Tags

phptimezoneidl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/warriorgod-international-date-line-crossing/health.svg)

```
[![Health](https://phpackages.com/badges/warriorgod-international-date-line-crossing/health.svg)](https://phpackages.com/packages/warriorgod-international-date-line-crossing)
```

###  Alternatives

[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14282.3k](/packages/dater-dater)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
