# Installation

> Install Inner Threads with Composer, check Laravel and PHP compatibility, and run the messaging database migrations.

[Web documentation](https://threads.teamkrope.com/docs/installation/) · Inner Threads v1.3.0

## Install and publish

Install Inner Threads from [Packagist](https://packagist.org/packages/teamkrope/inner-threads).

```bash
composer require "teamkrope/inner-threads:^1.3"
php artisan migrate
```

The Blade widget serves versioned assets by default. Publish assets if you use a [static path, CDN, or a manual JavaScript mount](https://threads.teamkrope.com/docs/widget/#serve-assets-yourself).

If this is a fresh Laravel app with no `APP_KEY`, run `php artisan key:generate`. Keep an existing host app’s key when upgrading.

In a host app with other pending migrations, review `php artisan migrate:status` first. To apply only this package’s pending migrations with a standard Composer vendor directory, run the following command on the intended database.

```bash
php artisan migrate --path=vendor/teamkrope/inner-threads/database/migrations
```

## Requirements

| Laravel | PHP minimum | Support |
| --- | --- | --- |
| 13 | 8.3 | Supported for new installations |
| 12 | 8.2 | Supported for new installations |
| 11 | 8.2 | Legacy compatibility |
| 10.48+ | 8.1 | Legacy compatibility |

Laravel 10 and 11 are outside framework security support. Composer can block versions affected by advisories. Use an existing Laravel app with Composer, a configured database, and authenticated users. PHP cURL and DOM are needed for live website previews.

## Install from GitHub

If you need the public GitHub repository as a Composer source, register it before requiring the package.

```bash
composer config repositories.inner-threads vcs https://github.com/teamkrope/inner-threads
composer require "teamkrope/inner-threads:^1.3"
```

## Work on a local checkout

Set a Composer path repository relative to your host app.

```bash
composer config repositories.inner-threads path ../InnerThreads
composer require "teamkrope/inner-threads:dev-main"
```

Laravel package discovery loads the service provider. Changes to bundled CSS, JavaScript, fonts, or the logo produce a new versioned asset URL.

## Verify the install

```bash
composer show teamkrope/inner-threads
php artisan route:list --path=inner-threads/api/v1
php artisan migrate:status
```

Continue with [Quick start](https://threads.teamkrope.com/docs/quick-start/).

Use [Install and upgrade errors](https://threads.teamkrope.com/docs/package-troubleshooting/) if Composer or a migration fails. See [Repair an installation](https://threads.teamkrope.com/docs/repair/) for health checks and [Uninstalling](https://threads.teamkrope.com/docs/uninstall/) for both removal workflows.
