Releases: OpenCompanyApp/astronomy-bundle-php
v3.1.0
v3.0.0 — OpenCompany Namespace & Documentation
Breaking Changes
Namespace Rebranding
All classes have been moved from Andrmoel\AstronomyBundle to OpenCompany\AstronomyBundle.
Migration: Find-and-replace in your codebase:
Andrmoel\AstronomyBundle → OpenCompany\AstronomyBundle
What's New
Comprehensive Documentation
Added docs.md with full API reference covering:
- All astronomical objects (Sun, Moon, 7 planets)
- Solar and lunar eclipses
- 7 coordinate systems with transformation support
- Utility classes (AngleUtil, TimeCalc)
- Complete method reference tables
Streamlined README
README now focuses on quick start with a link to the full documentation.
Upgrading from v2.x
- Update your
composer.jsonconstraint to^3.0 - Run
composer update opencompanyapp/astronomy-bundle - Find-and-replace
Andrmoel\AstronomyBundle→OpenCompany\AstronomyBundlein your PHP files
All functionality is identical — only the namespace has changed.
v2.2.0 — Moonrise/Moonset & Lunar Eclipses
What's New
Moonrise & Moonset
Implemented moonrise, moonset, and lunar transit using the existing RiseSetTransit framework with lunar parallax correction. Returns null for locations/dates where the moon doesn't rise or set.
Lunar Eclipses
Full algorithmic implementation based on Jean Meeus' Astronomical Algorithms Chapter 54:
- Eclipse type detection (total, partial, penumbral, none)
- Umbral and penumbral magnitude
- Gamma (closest approach to shadow axis)
- Contact times (P1, U1, U2, greatest eclipse, U3, U4, P4)
- Semi-durations for each phase
Verified against NASA eclipse catalog with magnitude accuracy within 0.003.
Other
- PHP 8.4/8.5 implicit nullable parameter fixes (18 fixes across 15 files)
- PHP 8.2+ dynamic property fix in SolarEclipse
Note: This is the last release using the
Andrmoel\AstronomyBundlenamespace. v3.0.0 rebrands toOpenCompany\AstronomyBundle.