# PHP

#### Welcome to the Comprehensive Guide for Flagship PHP SDK!

This documentation is your one-stop resource for integrating Flagship into your PHP application. Our library comes with preconfigured methods designed to simplify the implementation of the Decision API or Bucketing Mode. So let's get started on enhancing your development experience with Flagship!

* [Installation](/server-side/sdks/php/php-installation.md): Step-by-step instructions to set up Flagship in your environment.
* [Quick Start](/server-side/sdks/php/php-quick-start.md): Get up and running with Flagship in no time.
* [Reference](/server-side/sdks/php/php-reference.md): Detailed API documentation for in-depth understanding.

## SDK features

This version of the SDK lets you :

* Set a [visitor ID](/server-side/glossary.md#visitor-id)
* Update [visitor context](/server-side/glossary.md#user-context)
* Assign campaigns via the [Decision API](/server-side/decision-api.md) or via [Bucketing Mode](/server-side/concepts/bucketing.md)
* Get flag
* Manage visitor consent
* Use Experience Continuity
* Activate campaigns
* Send hits to our [Universal Collect](https://github.com/flagship-io/Gitbook/blob/main/docs/universal-collect-documentation/README.md)
* Manage visitor cache

## Prerequisites

* **PHP** : version 8.1 or later
* **php\_curl** extension must be enabled
* **json** extension must be enabled
* **Composer** : version 1.0.0 or later

## Good to know

Github repository: <https://github.com/flagship-io/flagship-php-sdk>

## Versions

The latest version of our Javascript SDK is [**4.2.0**](/server-side/sdks/php/php-reference.md).

#### Change logs

Find the versions change logs on our [Github Repository](https://github.com/flagship-io/flagship-php-sdk/releases)

#### Former versions

The documentation of the past versions are available [here](/server-side/sdks/php/archived-versions.md).

## Contact us

Feel free to [contact us](mailto:product.feedback@abtasty.com?subject=Flagship%20Developer%20Documentation) if you have any questions regarding this documentation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/server-side/sdks/php.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
