# Installation

You can install Strata Frontend via [Composer](https://getcomposer.org/). You can either install to a Symfony project or into your PHP project.

Support for Symfony 6 and Laravel is under development.

## Requirements

* PHP 7.4+
* [Composer](https://getcomposer.org/)

## Symfony

Install into your Symfony 5 project:

```
composer require strata/symfony-frontend:^0.8
```

### Twig helpers

Register these with your `config/services.yaml`:

```yaml
# Register Frontend Twig helpers
Strata\Symfony\TwigExtension:
    tags: ['twig.extension']
```

## Standalone

Install into your PHP project:

```
composer require strata/frontend:^0.8
```


---

# 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.strata.dev/frontend/installation.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.
