PHPackages                             scottboms/moon-phases - 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. scottboms/moon-phases

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

scottboms/moon-phases
=====================

Moon Phases for Kirby.

1.0.3(2mo ago)20MITPHPPHP &gt;8.2.0

Since Feb 16Pushed 2mo agoCompare

[ Source](https://github.com/scottboms/kirby-moon-phases)[ Packagist](https://packagist.org/packages/scottboms/moon-phases)[ Docs](https://github.com/scottboms/kirby-moon-phases)[ RSS](/packages/scottboms-moon-phases/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Moon Phases for Kirby
=====================

[](#moon-phases-for-kirby)

[![Plugin Preview](src/assets/moon-phases-plugin.jpg)](src/assets/moon-phases-plugin.jpg)

A Kirby 5 plugin that provides moon phase information as a custom Panel Section (`type: moon-phases`) and to templates using Template Methods (`$site->moonPhases()` and helpers.

Features
--------

[](#features)

- Current moon phase name
- Number of days until the next full moon
- Number of days until the next new moon
- API-backed phase/illumination percentage data (ipgeolocation.io astronomy endpoint)
- Configurable cache
- Customize SVG icons for moon phases (built-in preset or custom file map)

Requirements
------------

[](#requirements)

- [**Kirby**](https://getkirby.com/) 5.x
- ipgeolocation.io API key

Installation
------------

[](#installation)

### [Kirby CLI](https://github.com/getkirby/cli)

[](#kirby-cli)

```
kirby plugin:install scottboms/kirby-moon-phases

```

### Git Submodule

[](#git-submodule)

```
$ git submodule add https://github.com/scottboms/kirby-moon-phases.git site/plugins/moon-phases

```

### Copy and Paste

[](#copy-and-paste)

1. [Download](https://github.com/scottboms/kirby-moon-phases/archive/master.zip) the contents of this repository as a Zip file.
2. Rename the extracted folder to `moon-phases` and copy it into the `site/plugins/` directory in your Kirby project.

Configuration
-------------

[](#configuration)

### Site Config

[](#site-config)

In `site/config/config.php`:

```
