---
title: "Installation"
description: "What Crest needs, and how to install it in a project and globally."
version: "1.0"
---

> Documentation Index
> Fetch the complete documentation index at: https://crest.phalcon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

## Requirements

- PHP `^8.2`, with the `tokenizer` extension (`ext-tokenizer`; PHP turns it on by default)
- Phalcon v5, the `ext-phalcon` C extension (`^5.24.1`), or Phalcon v6, the `phalcon/phalcon` PHP implementation (`^6`). Crest itself needs neither of them to run
- On Windows, Crest runs with PHP for Windows: its CI runs the unit tests and the hand-off there (see [The global Crest and the project Crest](/1.0/how-crest-works#the-global-crest-and-the-project-crest)). `new`, `up` and `down` with docker on Windows (Linux containers) get best effort only. On Windows, the Linux path is the Windows Subsystem for Linux (WSL2)

## Installation

Crest has no tagged release yet. Packagist has only the version `dev-master`, and the default `minimum-stability` of composer is `stable`. Thus give the version in the `composer require` command.

In a project, install Crest as a dev dependency:

```bash
composer require --dev phalcon/crest:dev-master
```

This copy is the project Crest, in `vendor/bin/crest`. It runs the commands that work on the project, for example the generators (the `make:*` commands). See [The global Crest and the project Crest](/1.0/how-crest-works#the-global-crest-and-the-project-crest).

To create projects, also install Crest globally. This copy is the global Crest. The global composer `vendor/bin` folder must be in your `PATH`:

```bash
composer global require phalcon/crest:dev-master
```

Source: https://crest.phalcon.io/1.0/installation/index.mdx
