Skip to content

Installation

What Crest needs, and how to install it in a project and globally.

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). 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:

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.

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

composer global require phalcon/crest:dev-master
Navigation

Type to search…

↑↓ navigate↵ selectEsc close