---
title: Installation
---

Here you can find the installation and first-time setup instructions for Resrv.

## Try the demo hotel locally

The quickest way to see Resrv working is the [Resrv Hotel starter kit](https://github.com/reachweb/resrv-hotel-kit). It installs the demo hotel as a new Statamic site: rooms, spa treatments and restaurant tables booked through one checkout, with rates, extras, a coupon and a year of availability already set up.

You need PHP 8.4+, Composer and Node 20+. Install the Statamic CLI and create the site:

```bash
composer global require statamic/cli
statamic new my-hotel reachweb/resrv-hotel-kit
```

The kit isn't listed on the Statamic Marketplace, so the installer asks whether to install an unlisted starter kit: answer yes. It then asks which parts of the kit you want. Keep the defaults, the demo content and the offline payment gateway, and the site works without any API keys. The installer runs the migrations and seeds the demo data for you.

Then build the front end, and create a Control Panel user if you didn't when the installer asked:

```bash
cd my-hotel
npm install && npm run build
php please make:user --super
```

Open the site with Herd or Valet, or run `php artisan serve`. Resrv is free to use during development, so you don't need a license to try it. The kit's README covers the rest: what the demo data shows, adding photos and switching on Stripe.

To add Resrv to a site you already have, follow the steps below.

## Prerequisites

Statamic Resrv v6 requires **PHP 8.4+**, **Laravel 12 or 13**, **Statamic 6**, and **Livewire 3.6.4+ or 4**.

A database is required. You can use SQLite for development and for production if you expect to have a low number of concurrent users. MySQL or PostgreSQL are recommended for production in most cases.

1. ## Composer

    Install the package using Composer:

    ```bash
    composer require reachweb/statamic-resrv
    ```

2. ## Migration

    After you've set up [your database](https://laravel.com/docs/13.x/database#configuration), you need to run the migrations to create the tables:

    ```bash
    php artisan migrate
    ```

3. ## Install script

    To complete the installation, run the install script:

    ```bash
    php artisan resrv:install
    ```

    The script asks five questions:

    ```bash
     Publish the developer configuration file (payment gateways & Stripe keys)? Most sites don't need this. (yes/no) [no]:
     > no

     Do you want to publish the checkout form? (needed for Resrv to work correctly) (yes/no) [yes]:
     > yes

    Publishing checkout form
    Publishing checkout form blueprint

     Do you want to publish the Livewire views? (recommended) (yes/no) [yes]:
     > yes

    Publishing Livewire views

     Do you want to publish the language files? (needed only if you wish to edit them) (yes/no) [no]:
     > no

     Do you want to publish the email templates? (needed only if you wish to edit them) (yes/no) [no]:
     > no

    Installation finished. Go get some reservations!
    ```

    Here's what each one publishes:

    | Prompt | Default | Recommended | What it publishes |
    | --- | --- | --- | --- |
    | Developer configuration file | `no` | `no` | `config/resrv-config.php` |
    | Checkout form | `yes` | `yes` | The checkout form and blueprints |
    | Livewire views | `yes` | `yes` | The frontend Livewire views |
    | Language files | `no` | Only if editing | Translation files under `lang/vendor/statamic-resrv` |
    | Email templates | `no` | Only if editing | Email views under `resources/views/vendor/statamic-resrv/email` |

    We suggest publishing the checkout form and the Livewire views. Tailwind needs the published views to build the required styles.

### The developer configuration file

:::info[MOST SITES SKIP THIS]
All user-facing settings are managed in the Control Panel under **Resrv → Settings** and saved to `resources/addons/statamic-resrv.yaml`.
:::

`config/resrv-config.php` only holds the **developer keys** `payment_gateway`, `payment_gateways` and the `stripe_*` env lookups. You need it to register multiple [payment gateways](/payment-gateways) or to edit the [Stripe](/stripe) keys by hand. You can publish it at any time:

```bash
php artisan vendor:publish --tag=resrv-config
```

See [Configuration](/configuration) for the full settings model.

## Where to go from here?

We suggest you follow along the docs, starting with the [Core Concepts](/core-concepts) to better understand how to use Resrv.

**[Core Concepts](/core-concepts)**

How Resrv works, and the steps to set it up.

**[Configuration](/configuration)**

The settings under **Resrv → Settings**.
