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

# Installation

> Install and configure Geni in your Laravel project.

## Requirements

Geni requires:

* **PHP**: `^8.2` (PHP 8.2, 8.3, or 8.4)
* **Laravel**: `^10.0`, `^11.0`, `^12.0`, or `^13.0`

## Installation via Composer

Install `masitings/geni-api` as a project dependency using Composer:

<CodeGroup>
  ```bash Terminal theme={null}
  composer require masitings/geni-api
  ```

  ```bash Dev Only (Optional) theme={null}
  composer require masitings/geni-api --dev
  ```
</CodeGroup>

<Note>
  If you only need Geni for CLI exports and CI drift detection, you may install it under `--dev`. If you want to serve the live interactive documentation portal in non-local environments (such as staging), install it as a standard requirement.
</Note>

## Publish Configuration

Publish the default configuration file `config/geni.php`:

```bash theme={null}
php artisan vendor:publish --tag=geni-config
```

This creates `config/geni.php` where you can customize route prefixes, documentation titles, security schemes, authentication, and multi-version APIs.

## Next Steps

<Card title="Quickstart Guide" icon="play" href="/quickstart">
  Explore generated documentation and export your first OpenAPI specification.
</Card>
