Skip to main content

Overview

This guide is here to help you set-up Lunar locally so you can contribute to the core and admin hub.

Before your start

You will need a Laravel application to run Lunar in.

Set-Up

In the root folder of your Laravel application, create a “packages” folder.
mkdir packages && cd packages
Add the “packages” folder to your .gitignore file so the folder is not committed to your Git repository.
...
/.idea
/.vscode
/packages
Fork and then clone the monorepo to the packages folder, e.g. /packages/lunar/.
git clone https://github.com/YOUR-USERNAME/lunar
Update your composer.json file similar to the following.
    "repositories": [{
        "type": "path",
        "url": "packages/*",
        "symlink": true
    }],

    "require": {
        "lunarphp/lunarmono": "*",
    }
Ensure minimum stability is set for development
    "minimum-stability": "dev",
Run composer update from your Laravel application’s root directory and fingers crossed you’re all up and running,.
composer update

Done

You can now follow the Lunar installation process and start contributing.