---
application: "Intervention HttpAuth"
version: "Version 5"
status: "stable"
---

# Installation

## Installation with Composer

Learn how to install Intervention HttpAuth for PHP with Composer and discover how to configure your web server to make the library work perfectly.


## Server Requirements

Before you begin with the installation make sure that your server environment
supports the following requirements.

- PHP >= 8.2

## Installation

Install this package with [Composer](https://getcomposer.org).

```bash
composer require intervention/httpauth
```

After the installation you can start [using the authenticator](https://httpauth.intervention.io/v5/api/authenticator.md).

## Server Configuration

Although the configuration of the HTTP server should usually already be set
correctly, in rare cases it may be necessary to make adjustments.

### Apache

If you are using Apache and running PHP with CGI/FastCGI, check the server
configuration to make sure the [authorization headers are passed correctly to
PHP](https://support.deskpro.com/en/kb/articles/missing-authorization-headers-with-apache).

---

## Become a Sponsor

### Intervention HttpAuth needs your help to keep the project going

Intervention HttpAuth is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)