PHPackages                             minube/solar-position - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. minube/solar-position

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

minube/solar-position
=====================

Solar Position PHP Library for sunset, sunrise, twilight phases time calculation.

1.0.0(8y ago)8411PHP

Since Aug 31Pushed 8y ago11 watchersCompare

[ Source](https://github.com/minube/solar-position)[ Packagist](https://packagist.org/packages/minube/solar-position)[ RSS](/packages/minube-solar-position/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Solar Position
==============

[](#solar-position)

Calculate the sunset and sunrise times for a particular location and date, as well as the different twilight phases (civil, nautical, astronomical) times. More details about the different sun position phases in [timeanddate.com](https://www.timeanddate.com/astronomy/about-sun-calculator.html).

Input
-----

[](#input)

- Date: array('day', 'month', 'year')
- Latitude
- Longitude

Output
------

[](#output)

- UTC [ DateTime](http://php.net/manual/es/class.datetime.php) object

Example
-------

[](#example)

```
    use SolarPosition\Calculator;

    $latitude = 40.433202;
    $longitude = -3.690161;
    $date = array('day'=>23, 'month'=>6, 'year'=>2017);

    $sun = new Calculator();
    $sunsetTime = $sun->getSunset($date, $latitude,$longitude);
    /*
        DateTime Object
        (
            [date] => 2017-06-23 19:48:35
            [timezone_type] => 3
            [timezone] => UTC
        )
    */
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a54aa0c117468b6434ad1a4e84edb75a522dbccb92adaf2d518472085c20280a?d=identicon)[abmo](/maintainers/abmo)

---

Top Contributors

[![abmo](https://avatars.githubusercontent.com/u/15795778?v=4)](https://github.com/abmo "abmo (8 commits)")

---

Tags

solar-position-algorithmssun-positionsunrisesunset

### Embed Badge

![Health badge](/badges/minube-solar-position/health.svg)

```
[![Health](https://phpackages.com/badges/minube-solar-position/health.svg)](https://phpackages.com/packages/minube-solar-position)
```

###  Alternatives

[masmerise/livewire-toaster

Beautiful toast notifications for Laravel / Livewire.

505550.3k6](/packages/masmerise-livewire-toaster)[darkghosthunter/preloader

Preloader helper to create a PHP-ready preload script from Opcache.

432664.1k1](/packages/darkghosthunter-preloader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
