Download the PHP package deepskylog/laravel-astronomy-library without Composer

On this page you can find all versions of the php package deepskylog/laravel-astronomy-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-astronomy-library

laravel-astronomy-library

Latest Version on Packagist Total Downloads Build Status StyleCI

Take a look at contributing.md if you are interesting in helping out. The laravel-astronomy-library is part of DeepskyLog. If you are interested in helping with the development of DeepskyLog, see the documentation.

Installation

AstronomyLibrary can be installed via composer. laravel-astronomy-library needs at least php 7.4 to run.

You need to publish and run the migration:

The database table with the delta t values can be updated using the following command:

A job is automatically scheduled every 4 months to update the delta t value.

The database tables with the orbital elements of the comets and the asteroids can be updated using the followong command:

A job is automatically scheduled every Monday at 04:30 to update the orbital elements of the comets and the asteroids.

These jobs can be executed using:

It is possible to run these jobs automatically by adding the following line to your crontab:

Documentation

For more documentation on the mathematical background, see docs.md.

Usage

Time methods

Static Time methods

Magnitude methods

Static magnitude methods

Coordinate methods

Coordinate methods on AstronomyLibrary instance

Coordinate methods on equatorial coordinates

Coordinate methods on ecliptical coordinates

Coordinate methods on horizontal coordinates

Coordinate methods on galactic coordinates

Target methods

Target is a class to keep information about an object and perform calculations on it. Target is a base class and can be used for stars and deep-sky objects. There are three subclasses:

Moving targets (like the sun, moon or planets) need the equatorial coordinates for the given date, for the day before and the next day.

Orbital elements of comets and asteroids

The orbital elements of comets and asteroids are kept in the database tables:

The orbital elements for the comets can be accessed from laravel using the CometsOrbitalElements class. The information available in the class is:

The orbital elements for the asteroids can be accessed from laravel using the AsteroidsOrbitalElements class. The information available in the class is:

Example

This example describes how to calculate the coordinates of Venus at a given date

Change log

Please see the changelog for more information on what has changed recently.

Testing

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

GPLv3. Please see the license file for more information.


All versions of laravel-astronomy-library with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^8.0|^9.0|^10.0|^11.0
maatwebsite/excel Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package deepskylog/laravel-astronomy-library contains the following files

Loading the files please wait ....