Skip to content

Releases: cyjoelchen/php-sweph

4.0.11

18 Apr 18:23

Choose a tag to compare

Minor release officially supporting PHP 8.3 and 8.4 in the CI test workflow. These versions of PHP were already working but are now tested. This release also rewrites the long-time problematic test swe_sol_eclipse.phpt to assert against return types only (instead of values, which seemed to always cause precision issues).

Make tests less pedantic.

18 Dec 00:44

Choose a tag to compare

This is a minor release that uses floating-point truncation throughout the tests to account for precision discrepancies across different architectures. This release also drops test support for versions of PHP < 7.4, although the extension should continue to work just fine down to PHP 7.0.

Refs:

Support PHP 8.2.

29 May 17:04

Choose a tag to compare

This release adds PHP 8.2 support, which was already working. The test matrix now includes it, however. Additionally, the precision tests have been modified to use floating-point truncation instead of rounding in order to create more predictable results. This way when/if the SE library is updated with minor calculation changes, these higher-level tests shouldn't be as easily impacted.

Update to SwissEphemeris 2.10.03.

06 Sep 17:26
aa7f33a

Choose a tag to compare

This release of the extension includes the maintenance update of the Swiss Ephemeris library to 2.10.03. For change notes related to the library's release, please see:

https://github.com/aloistr/swisseph/releases/tag/v2.10.03

Additionally, the missing SE_SPLIT_DEG_KEEP_DEG constant was added to the extension in this release.

Minor Bug Fix Release.

02 Aug 17:38

Choose a tag to compare

Changes introduced in #86 caused build-se to fail if building on PHP < 8.1. This release fixes that build bug and only applies to anyone using build-se, which is not a requirement for using this extension.

Support PHP 8.1.

27 Jul 20:40
2558086

Choose a tag to compare

This release officially supports PHP 8.1. The extension was (mostly) working previously, except that swe_set_ephe_path() was causing deprecation warnings if null was passed instead of a string. This has been fixed and PHP 8.1 is now part of the test actions.

Thank you to @nosilentesdblog for raising this issue:

Maintenance Release.

12 Oct 20:09

Choose a tag to compare

Implements additional return values in swe_revjul():

  • Integer hours, minutes & seconds.
  • Decimal seconds.

Ex.

array(8) {
  ["year"]=>
  int(2002)
  ["month"]=>
  int(1)
  ["day"]=>
  int(1)
  ["hour"]=>
  float(0)
  ["ihour"]=>
  int(0)
  ["imin"]=>
  int(0)
  ["isec"]=>
  int(0)
  ["dsec"]=>
  float(5.0E-5)
}

Defaults calendar flag parameter to SE_GREG_CAL in:

  • swe_revjul()
  • swe_julday()

Refs: #77

Maintenance Release.

20 Aug 23:58
a3dd522

Choose a tag to compare

Fixes incorrect function call per: #73

Maintenance Release.

19 Aug 02:29
cc3db37

Choose a tag to compare

Bug fix release, per: #71

Thank you to @astrorigin & @aloistr for discovery and contribution.

Maintenance Release.

15 Aug 16:43
2a9fb69

Choose a tag to compare

Bug fix release, per: #69

Thank you to @astrorigin & @aloistr for discovery and contribution.