> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devdeia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation (Filament v5)

> Install Filament Business Hours 5.x for Filament 5.

## Purchase and activate

Filament Business Hours uses AnyStack to handle payment, licensing, and distribution.

<Card title="Buy a license" icon="cart-shopping" href="https://checkout.anystack.sh/filament-business-hours">
  Purchase Filament Business Hours on AnyStack.
</Card>

During checkout, AnyStack provides a license key. Once it's activated, proceed with the Composer installation below.

<Steps>
  <Step title="Add the private repository">
    ```json composer.json theme={null}
    {
        "repositories": [
            {
                "type": "composer",
                "url": "https://filament-business-hours.composer.sh"
            }
        ]
    }
    ```
  </Step>

  <Step title="Require the package">
    ```bash theme={null}
    composer require andreia/filament-business-hours:"^5.0"
    ```

    Composer will prompt for credentials — your **username** is the email you purchased with, your **password** is your license key:

    ```bash theme={null}
    Loading composer repositories with package information
    Authentication required (filament-business-hours.composer.sh):
    Username: your@email.com
    Password: 04c21df8f-4890-7024-y2vk-6bny143ta642
    ```
  </Step>

  <Step title="Publish and run migrations">
    ```bash theme={null}
    php artisan vendor:publish --tag="filament-business-hours-migrations"
    php artisan migrate
    ```
  </Step>

  <Step title="Publish the config (optional)">
    ```bash theme={null}
    php artisan vendor:publish --tag="filament-business-hours-config"
    ```
  </Step>

  <Step title="Publish views (optional)">
    ```bash theme={null}
    php artisan vendor:publish --tag="filament-business-hours-views"
    ```
  </Step>

  <Step title="Publish translations (optional)">
    Ships with English out of the box:

    ```bash theme={null}
    php artisan vendor:publish --tag="filament-business-hours-translations"
    ```
  </Step>

  <Step title="Add the vendor directory to your theme">
    Filament recommends a [custom theme](https://filamentphp.com/docs/5.x/styling/overview#creating-a-custom-theme) so the plugin's Tailwind classes get picked up. Add the Business Hours vendor directory to your theme's `theme.css` (usually `resources/css/filament/admin/theme.css`):

    ```css theme={null}
    /* ... */

    @source '../../../../vendor/filament-handbook/filament-business-hours';
    ```

    Then rebuild your assets.

    <Note>
      The `@source` path must match the directory Composer created for the package under `vendor/`. If Tailwind doesn't pick up the plugin's styles, check whether it was installed as `vendor/andreia/filament-business-hours` (matching the Composer package name) and adjust the path accordingly.
    </Note>
  </Step>
</Steps>

Next: [add it to a model and your forms/tables/infolists](/filament/business-hours/usage).
