> ## 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 v3)

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

## 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.

<Warning>
  Before installing this package, configure [Filament Table Repeater](https://github.com/awcodes/filament-table-repeater?tab=readme-ov-file#installation) first — Business Hours depends on it for its exceptions UI.
</Warning>

<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:"^3.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 views to your Tailwind config">
    Filament recommends a [custom theme](https://filamentphp.com/docs/3.x/panels/themes) so the plugin's Tailwind classes get picked up. Add the Business Hours views directory to your theme's `tailwind.config.js` (usually `resources/css/filament/admin/tailwind.config.js`):

    ```js theme={null}
    // ...

    export default {
        content: [
            // ...
            './vendor/andreia/filament-business-hours/resources/**/*.blade.php',
        ],
    }
    ```

    Then rebuild your assets.
  </Step>
</Steps>

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