- Notifications
You must be signed in to change notification settings - Fork2
Getting Planets Position using PHP & AstroDienst Swiss Ephemeris library.
License
rogergerecke/SwissEphemeris
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
With these PHP classes you can query theSwiss Ephemeris Software which is based onVB.With the PHP class, the position of astrological objects is queried via theexec() function through the terminal.My idea for the query was to use a kind of repository class to comfortably configure the query to thetable file (.eph).If you have any suggestions for improvement, write to me onGITHUB.
###To begin, read this README.md file carefully
####Important:
This software only works with the.eph files.These must be in the/sweph folder or the path to the file must be specified in the constructor.I have included a small.eph table with a small time range
Install via Composer Dependency Manager to your project a PHP project on an Linux systemon (Windows are having problems because the commands are sent to the cmd.exe.).Add to your composer.json file and runcomposer update
after thatmove the .se1files from /demo to /sweph folder.
"repositories": [ { "type": "github", "name": "rogergerecke/swiss-ephemeris", "url": "https://github.com/rogergerecke/SwissEphemeris.git" } ], "require": { "rogergerecke/swiss-ephemeris": "*", }
EN
Getting Planets Position using PHP & AstroDienst Swiss Ephemeris library. Use the Repository class to extend it for your need.
Tip: Extend the SwissEphemerisRepository class
Examples of use in index.php or SwissEphemerisRepository.php
DE
Zur berechnung verschidenen Astrologischer Objekt-Position Basis zur berechnung sind die Daten vonhttp://www.astro.com/ftp/swisseph/ephe/
Tip: Erweitere die SwissEphemerisRepository class
Für Beispiele schau dir die index.php an oder die SwissEphemerisRepository.php
INFO: Zur Anwendung auf Linux-Systemen oder in dem mitgelieferten Docker-Container beiWindows gibt es Probleme da die befehle an die cmd.exe geschickt werden.
Swiss Ephemeris Examples Interface
In the demo Folder you have .se1 files as examples move all to /sweph folderits work for example. Otherwise, copy a .eph file to the folder it's big.
Download files with time range you need from ftp:astro.ch orun-compiled from ssd.jpl.nasa.gov as ascii compiled under Linuxwithhttps://github.com/Bill-Gray/jpl_eph
DE441 : Created June 2020; compared to DE431, about 7 years of new data havebeen added.Referred to the International Celestial Reference Frame version 3.0.Covers JED -3100015.5, (-13200 AUG 15) to JED 8000016.50, (17191 MAR 15).
DE440 and DE441 are documented in the following document: https://doi.org/10.3847/1538-3881/abd414 (NOTE: this paper has been accepted for publication in December, 2020; this link will become available sometime in January)
- Update to wonderful Swiss Ephemeris 2.10.02
- Add Windows 10 support (thanks for Iusses @HSBSINGH)
- Add demo files to /demo folder
- Add requirement view in index.php
- Update to new Time Range 30000 years
- Update to wonderful Swiss Ephemeris 2.10.01
- To PHP 7.4.18
- Remove unused Dockerfile lib's
- Update to wonderful Swiss Ephemeris 2.0.8
- Extend Repository class
- Update the README.md
Do you want more flexibility or have you found a mistake? Open an issues
Please open a Issues if you have a good idea
Update the php version in an existing docker-container change the PHP version in the Dockerfileand run the both commands.
docker-compose build --no-cache --pull YOUR_CONTAINER_NAME docker-compose up -d
in /public/index.php
About
Getting Planets Position using PHP & AstroDienst Swiss Ephemeris library.