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

# Getting Started

> LibSQL PHP Extension Installer Script

<Frame>
  <img src="https://mintcdn.com/darkterminal/XvKQV4VvldX3mUs-/images/turso-installer.png?fit=max&auto=format&n=XvKQV4VvldX3mUs-&q=85&s=62341626351040af54f732aa165a3ac1" noZoom width="2266" height="683" data-path="images/turso-installer.png" />
</Frame>

This installer script will make your workflow more *comfortable* and *seamless* for integrating the **Turso/libSQL PHP Extension** into your project and development environment. Designed to reduce the hassle when trying something new and extraordinary, as installing extensions in a PHP environment can be ~~quite cumbersome~~.

With this installer, developers can easily install, update, and uninstall extensions, just like using a commonly used package manager. And here is an example of usage:

<Note>btw, the script called `turso-php-installer`</Note>

***

## Installation

`turso-php-installer` is a Composer package capable of executing various commands related to libSQL, simplifying the development process, and making it easier to simulate in a local environment.

```bash theme={null}
composer global require darkterminal/turso-php-installer
```

<Note>
  Tip: if you want the script name more friendly you can rename the script file name.
</Note>

```bash theme={null}
export COMPOSER_BIN_DIR=$(composer config --global home)/vendor/bin
mv $COMPOSER_BIN_DIR/turso-php-installer mv $COMPOSER_BIN_DIR/turso-php
```

***

## Turso PHP Installer Usage

***

### Install the Extension

Install with different style and needs:

* Intaractive mode
* Non-interactive mode
* Laravel Sail

#### Interactive Mode

```shell theme={null}
turso-php-installer install
```

#### Non-interactive Mode

```shell theme={null}
turso-php-installer install -n --php-version=8.3
```

#### Laravel Sail

<Card title="Laravel Sail" icon="laravel" href="/dark-extensions/tools/installer/platforms/laravel-sail" horizontal>
  Read the detail how to setting up libSQL in Laravel Sail
</Card>

### Update the Extension

```shell theme={null}
turso-php-installer update
```

### Uninstall the Extension

```shell theme={null}
turso-php-installer uninstall
```

That's it! Really easy. Would you like to dive deeper into other commands? See the [Reference](/dark-extensions/tools/installer/reference)
