# Manual installation

Learn the steps to manually integrate Croct into your Drupal project.

The following guide gives you a step-by-step overview of how to install and configure the module in your project.

> **Speed up your integration!**
>
> The CLI can fully automate the integration process for you. Check out the [integration guide](/reference/sdk/drupal/integration) to get started faster.

## Install the module \[#install]

Install the module using [Composer](https://getcomposer.org):

```sh
composer require croct/plug-drupal
```

This pulls in the [PHP](/reference/sdk/php) and [Symfony](/reference/sdk/symfony) SDKs it builds on, along with a [PSR-18 HTTP client](https://www.php-fig.org/psr/psr-18/), so there is nothing else to install.

## Enable the module \[#enable]

Enable the module with [Drush](https://www.drush.org):

```sh
drush en croct
```

You can also enable it from the **Extend** page at `/admin/modules`.

## Configure your credentials \[#configure]

Add your application ID and API key to `settings.php`:

**settings.php**

```php
$settings['croct.app_id'] = '<APPLICATION_ID>';
$settings['croct.api_key'] = '<API_KEY>';
```

You can find the application ID and create an API key on the [Integration page](https://app.croct.com/redirect/organizations/-organization-/workspaces/-workspace-/applications/-application-/integration) of your application.

Drupal compiles `settings.php` into its cached container, so rebuild the cache to apply the credentials:

```sh
drush cr
```

For all available settings, see [Configuration](/reference/sdk/drupal/api/configuration).

## Check your integration \[#check]

If you open your application now, it should start sending events.

To check if your integration is working, go to the [Integration page](https://app.croct.com/redirect/organizations/-organization-/workspaces/-workspace-/applications/-application-/integration) of your application.

![Integration status](/assets/reference/sdk/integration-status.png)

When working correctly, you should see a green bullet next to the **Status** label saying **"Received traffic in the past 24 hours"**. If you still do not see this message after a few minutes, see the [Troubleshooting](troubleshooting) reference.

## Explore

- [CLI](/reference/sdk/drupal/integration): Learn how to use our CLI to get started faster.
- [Troubleshooting](/reference/sdk/drupal/troubleshooting): Identify and resolve issues with your integration.
