Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Getting Planets Position using PHP & AstroDienst Swiss Ephemeris library.

License

NotificationsYou must be signed in to change notification settings

rogergerecke/SwissEphemeris

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

The best way to use this classes

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": "*",  }

Notice

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.


Info to Swiss Ephemeris

Swiss Ephemeris Website

Swiss Ephemeris Download lib

Swiss Ephemeris Examples Interface

Swiss Ephemeris Examples

Other Ephemeris Data

Swiss Ephemeris mailing list

Not Include the de441

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 DE441.eph file have 2.7 GB

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)

Changelog:

UPDATE 2.1.5

  • Update to wonderful Swiss Ephemeris 2.10.02

UPDATE 2.1.4

  • Add Windows 10 support (thanks for Iusses @HSBSINGH)
  • Add demo files to /demo folder
  • Add requirement view in index.php

UPDATE 2.1.3

  • 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 2.1.0

  • Update to wonderful Swiss Ephemeris 2.0.8
  • Extend Repository class
  • Update the README.md

Help and Question

Do you want more flexibility or have you found a mistake? Open an issues

Open Issues

Please open a Issues if you have a good idea

Docker Help

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

TEST

in /public/index.php


[8]ページ先頭

©2009-2025 Movatter.jp