Skip to content

Releases: OpenCompanyApp/astronomy-bundle-php

v3.1.0

09 Feb 21:51

Choose a tag to compare

  • Add PHPStan level 0 config (87K-line math library exhausts memory at higher levels)

v3.0.0 — OpenCompany Namespace & Documentation

07 Feb 15:18

Choose a tag to compare

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

  1. Update your composer.json constraint to ^3.0
  2. Run composer update opencompanyapp/astronomy-bundle
  3. Find-and-replace Andrmoel\AstronomyBundleOpenCompany\AstronomyBundle in your PHP files

All functionality is identical — only the namespace has changed.

v2.2.0 — Moonrise/Moonset & Lunar Eclipses

07 Feb 15:17

Choose a tag to compare

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\AstronomyBundle namespace. v3.0.0 rebrands to OpenCompany\AstronomyBundle.