---
title: "Changelog"
description: "The changes of each release of Phalcon Crest 1.0."
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.

# Changelog

The changes of each release that this documentation covers, newest first. The source is [`CHANGELOG.md`](https://github.com/phalcon/crest/blob/master/CHANGELOG.md) of the repository.

## [Unreleased]

### Added

- Added `route:list`: lists routes with their method and Action class. [#1](https://github.com/phalcon/crest/issues/1)
- Added `config:show`: shows the resolved configuration, each value marked declared or default. [#1](https://github.com/phalcon/crest/issues/1)
- Added `container:list`: lists container services with their class and resolved state. [#1](https://github.com/phalcon/crest/issues/1)
- Added `event:list`: lists the events manager listeners. [#1](https://github.com/phalcon/crest/issues/1)
- Added `list` (aliases `commands`, `enumerate`). [#1](https://github.com/phalcon/crest/issues/1)
- Added the `bootstrap` key to `crest.php`: the front controller class to boot, e.g. `App\Front\AppFront::class`. Its `boot()` must return a container. [#1](https://github.com/phalcon/crest/issues/1)
- Added `Crest\Console\Input::argumentString()`, `optionString()` and `optionStringOrNull()`.
- Added `make:command`: generates a crest command and prints its `extra.crest.commands` entry. [#5](https://github.com/phalcon/crest/issues/5)
- Added `make:middleware`: generates an ADR middleware and prints its middleware-map entry. [#5](https://github.com/phalcon/crest/issues/5)
- Added `make:provider`: generates a `Phalcon\Container` service provider and prints the `registerProviders()` override. [#5](https://github.com/phalcon/crest/issues/5)
- Added `make:responder`: generates an ADR responder that implements `Responder`. [#5](https://github.com/phalcon/crest/issues/5)
- Added `stub:publish`: copies packaged stubs to `resources/stubs/<flavor>/`. [#5](https://github.com/phalcon/crest/issues/5)
- Added `make:action --stub`: renders a named stub instead of the `--responder` default. Using both is an error. [#5](https://github.com/phalcon/crest/issues/5)
- Added `command`, `middleware`, `provider` and `responder` to the default `paths`. [#5](https://github.com/phalcon/crest/issues/5)
- Added `Crest\Command\ProjectCommand`: base for commands that read a project; resolves `--directory` and `--config`. [#5](https://github.com/phalcon/crest/issues/5)
- Added `Crest\Generator\ClassName::suffixed()`: appends a suffix once (`Cors` and `CorsMiddleware` both give `CorsMiddleware`). [#5](https://github.com/phalcon/crest/issues/5)
- Added `make:action --template`: overrides the view template (default `<path>/index`). [#5](https://github.com/phalcon/crest/issues/5)
- Added `Crest\Command\ProjectCommand::writer()`: builds the stub writer for the `make:*` commands. [#5](https://github.com/phalcon/crest/issues/5)
- Added `Crest\ADR\ActionResolver::methodFor()`: gets an Action's HTTP method from the router. [#1](https://github.com/phalcon/crest/issues/1)
- Added `Crest\Console\Registry::descriptions()` and `Crest\Console\Output::commandTable()`: one listing for `crest` and `crest list`.
- Added `new`: creates an ADR project from stubs. Options: `--namespace`, `--php`, `--phalcon`. [#8](https://github.com/phalcon/crest/issues/8)
- Added `up`, `down` and `install`: `docker compose up -d`, `docker compose down` and `composer install` in the project container. [#8](https://github.com/phalcon/crest/issues/8)
- Added `Crest\Process\Runner` and `ShellRunner`: run external programs. A missing program or directory is a crest error. [#8](https://github.com/phalcon/crest/issues/8)
- Added `Crest\Generator\ClassName::namespace()`: validates a namespace. [#8](https://github.com/phalcon/crest/issues/8)
- Added `Crest\Command\Make\NamedArtifactCommand`: base of `make:command`, `make:controller`, `make:middleware`, `make:module`, `make:provider` and `make:responder`.
- Added `serve` (alias `server`): starts PHP's built-in web server for the project. [#10](https://github.com/phalcon/crest/issues/10)
- Added a package hint for unknown commands, for example `unknown command 'migration:run'; provided by phalcon/migrations`, and `Crest\Console\Registry::withProviders()`. [#19](https://github.com/phalcon/crest/issues/19)
- Added the hand-off: in a project, a global crest passes each project command to the crest of the project. [#27](https://github.com/phalcon/crest/issues/27)
- Added `Crest\Project\Locator::project()`: the nearest directory with a `composer.json`. [#27](https://github.com/phalcon/crest/issues/27)
- Added `init`: writes `crest.php` for an existing project. It proposes the values that it finds (namespace, front controller, runtime) and asks for each one. [#28](https://github.com/phalcon/crest/issues/28)
- Added the global option `--no-interaction` (`-n`): ask no questions and use the default answers. [#28](https://github.com/phalcon/crest/issues/28)
- Added the `runtime` key to `crest.php`: `host`, or `docker` with a compose service. [#28](https://github.com/phalcon/crest/issues/28)
- Added questions to `new` for the values that no option gives (namespace, PHP, Phalcon, runtime). [#28](https://github.com/phalcon/crest/issues/28)
- Added the options `--runtime=host|docker` and `--service` to `new`: they answer the runtime questions. [#28](https://github.com/phalcon/crest/issues/28)
- Added the launcher `./crest` to the projects that `new` creates: it runs crest with docker only. [#29](https://github.com/phalcon/crest/issues/29)
- Added `resources/setup.sh`: one command creates, starts and installs a project with docker only. [#30](https://github.com/phalcon/crest/issues/30)
- Added the `new` key to `crest.php`: the commands that `new` runs in the project after it writes the files. [#32](https://github.com/phalcon/crest/issues/32)
- Added `Crest\Project\Steps`: reads and checks the `new` key. [#32](https://github.com/phalcon/crest/issues/32)
- Added `Crest\Console\Output::alias()` and `Crest\Console\Kernel::alias()`: in a container, crest shows the host paths of the project, from `CREST_HOST_ROOT`. [#42](https://github.com/phalcon/crest/issues/42)
- Added the path questions to `init`: a folder for each path. [#42](https://github.com/phalcon/crest/issues/42)
- Added the `bootstrap`, `runtime` and `service` rows to `config:show`. [#42](https://github.com/phalcon/crest/issues/42)
- Added `Crest\Project\Vendor`: the vendor and bin folders of a project, by the rules of composer. [#34](https://github.com/phalcon/crest/issues/34)
- Added `--help` to `resources/setup.sh`: it shows the options of `new`. [#42](https://github.com/phalcon/crest/issues/42)
- Added flavors to the project commands: `Crest\Command\ProjectCommand::flavors()` declares them, and `supports()` is the rule. A command for a different flavor stops with an error that names the flavor. [#44](https://github.com/phalcon/crest/issues/44)
- Added `Crest\Console\Registry::withDefault()` and `defaultName()`: the command that the kernel runs when the user names none. Crest runs `list`. [#44](https://github.com/phalcon/crest/issues/44)
- Added an optional filter to `Crest\Console\Registry::descriptions()`: it keeps only the commands that pass it. [#44](https://github.com/phalcon/crest/issues/44)
- Added `Crest\Project\Config::find()`: the configuration of the project, or null when there is no `crest.php`. [#44](https://github.com/phalcon/crest/issues/44)
- Added `resources/stubs/shared/` (`Crest\Generator\Stub::SHARED`): the stubs that all flavors use. [#45](https://github.com/phalcon/crest/issues/45)
- Added `Crest\Generator\Stub::packagedFolder()` and `packagedFolders()`: the packaged folder of a stub, and of each stub of a flavor. [#45](https://github.com/phalcon/crest/issues/45)
- Added `make:controller` for MVC projects: writes a controller that extends `CrestControllerBase`, a base class in `src/Controllers/Base/` that crest owns. [#46](https://github.com/phalcon/crest/issues/46)
- Added the `controller` default path (`src/Controllers`) for MVC projects, and the MVC stubs `controller`, `controller-base` and `fragment-guidance-controller`. [#46](https://github.com/phalcon/crest/issues/46)
- Added `Crest\Generator\ArtifactWriter::renderOwned()`, `renderOnce()` and `MARKER`, and `Crest\Generator\Outcome`: the write rules for a generated base class and for a class that the developer owns. [#46](https://github.com/phalcon/crest/issues/46)
- Added `new --flavor=adr|mvc`: `crest new my-app --flavor=mvc` writes an MVC project that runs. `new` asks for the flavor first. [#47](https://github.com/phalcon/crest/issues/47)
- Added `new --template-engine`: the view engine of an MVC project. It accepts `phtml`, the default. [#47](https://github.com/phalcon/crest/issues/47)
- Added `stub:publish --flavor`: the flavor of a project stub before the project exists, `mvc` by default. [#47](https://github.com/phalcon/crest/issues/47)
- Added the MVC default paths `provider` (`src/Providers`) and `views` (`themes/default`), and the MVC project stubs `project-front`, `project-readme`, `project-provider-dispatcher`, `project-phtml-provider`, `project-phtml-layout` and `project-phtml-index`. [#47](https://github.com/phalcon/crest/issues/47)
- Added `Crest\Generator\Project`: `Skeleton` (the files, the values and the first artifacts of the project of a flavor), `AdrSkeleton`, `MvcSkeleton`, `Skeletons`, `Answers` and `TemplateEngines`, and `Crest\Generator\ControllerBase`. [#47](https://github.com/phalcon/crest/issues/47)
- Added the flavor question of `init`, and `init --flavor`: `init` proposes `adr` or `mvc` from the default folders that the project has. [#48](https://github.com/phalcon/crest/issues/48)
- Added `Crest\Project\Config::NO_CLASS_PATHS` (`views`), the path keys of folders with no classes, and `Crest\Project\Survey::flavor()`. [#48](https://github.com/phalcon/crest/issues/48)
- Added `make:model` for MVC projects: it reads a table through the `db` service of the project, and writes a model in `src/Models/` and its base in `src/Models/Base/`, which crest owns. [#50](https://github.com/phalcon/crest/issues/50)
- Added the `model` default path (`src/Models`) for MVC projects, and the MVC stubs `model`, `model-base` and `fragment-model-property`. [#50](https://github.com/phalcon/crest/issues/50)
- Added `Crest\Generator\ClassName::fromTable()` and `RESERVED`, `Crest\Generator\ModelProperties` and `Crest\Project\Database`. `ClassName::PATTERN` is public. [#50](https://github.com/phalcon/crest/issues/50)
- Added the relations to `make:model`: the base gets a `belongsTo()` for each foreign key of the table and a `hasMany()` for each foreign key that points to it, each with an alias in a `RelationAlias` attribute. [#51](https://github.com/phalcon/crest/issues/51)
- Added the MVC stubs `fragment-model-belongs-to` and `fragment-model-has-many`, the attribute `Crest\Attribute\RelationAlias`, and `Crest\Generator\ModelRelations`, `Crest\Generator\RelationAliases` and `Crest\Generator\ClassName::studly()`. [#51](https://github.com/phalcon/crest/issues/51)
- Added the database tests on SQLite, MySQL 8.0, MariaDB 10.6 and PostgreSQL 18: `composer test-db` runs the four suites, and `composer test-db-<driver>` runs one. [#65](https://github.com/phalcon/crest/issues/65)
- Added `make:model --all`: it writes a model for each table of the database. `--exclude=a,b` skips tables. [#52](https://github.com/phalcon/crest/issues/52)
- Added `Crest\Generator\ForeignKeys` and `Crest\Generator\ModelTables`. [#52](https://github.com/phalcon/crest/issues/52)
- Added names to `make:model`: the `models` key of `crest.php`, with `classes` and `camelCase`, and `--property="column=name,..."` for one table. [#53](https://github.com/phalcon/crest/issues/53)
- Added `Crest\Attribute\PropertyName`, `Crest\Generator\BaseAttributes`, `Crest\Generator\ModelNames`, `Crest\Generator\PropertyNames`, `Crest\Generator\Sentence`, `Crest\Project\Config::models()`, `Crest\Generator\Stub::hasPlaceholder()`, `Crest\Generator\ForeignKeys::related()` and `using()`, and the MVC stub `fragment-model-column-map`. [#53](https://github.com/phalcon/crest/issues/53)
- Added `new --database=none|mariadb|mysql|pgsql|sqlite` and its question: the project gets the database service or file, the connection values, and a `DbProvider` that registers the `db` service. [#54](https://github.com/phalcon/crest/issues/54)
- Added `Crest\Generator\Project\DatabaseChoice`, the project stubs `project-provider-db` and `project-provider-db-sqlite` (ADR and MVC), and the shared project stubs `project-compose-mysql`, `project-compose-mariadb`, `project-compose-pgsql`, `project-env-database` and `project-env-sqlite`. [#54](https://github.com/phalcon/crest/issues/54)
- Added `phalcon/phql` to the `composer.json` of an MVC project with Phalcon v6 and a database. [#54](https://github.com/phalcon/crest/issues/54)
- Added the `models` key to the `crest.php` that `new` and `init` write for an MVC project, and `new --camel-case`. [#54](https://github.com/phalcon/crest/issues/54)
- Added the `models` key to `config:show` in an MVC project: a `camelCase` row and a `TABLE CLASS` table. Added `Crest\Generator\ModelNames::camelCase()`. [#71](https://github.com/phalcon/crest/issues/71)
- Added a `Note` line to `make:model` for a table whose class comes from `models.classes`: it names the old files and the related tables to run again. [#71](https://github.com/phalcon/crest/issues/71)
- Added `make:module` for MVC projects: it writes `Module.php` and the folders `Controllers`, `Models` and `views` in the `module` path (`src/Modules`), and prints how to register the module and its routes. [#55](https://github.com/phalcon/crest/issues/55)
- Added the `module` default path, the MVC stubs `module`, `fragment-guidance-module` and `fragment-guidance-controller-module`, `Crest\Generator\ModuleLocation` and `Crest\Generator\ArtifactWriter::directory()`. [#55](https://github.com/phalcon/crest/issues/55)
- Added `--module=<name>` to `make:controller` and `make:model`: they write into the module, with its namespace. [#55](https://github.com/phalcon/crest/issues/55)
- Added `make:scaffold` for MVC projects: it writes a model, a form, a controller and the views `index`, `new` and `edit` for one table. `--module` writes into a module. [#56](https://github.com/phalcon/crest/issues/56)
- Added the `form` default path (`src/Forms`), the MVC stubs `scaffold-form-base`, `scaffold-form`, `scaffold-controller`, `scaffold-view-index`, `scaffold-view-new`, `scaffold-view-edit`, `fragment-guidance-scaffold` and `fragment-guidance-scaffold-module`, `Crest\Generator\FormElements`, `Crest\Generator\ControllerRoute`, `ModelCommand::readTable()` and `ModelCommand::writeTable()`. [#56](https://github.com/phalcon/crest/issues/56)
- Added the `models.schema` key to `crest.php`: `make:model` and `make:scaffold` read the tables of that schema, and the base calls `setSchema()`. One schema applies to all the tables. `config:show` shows it in a `schema` row. [#69](https://github.com/phalcon/crest/issues/69)
- Added `ModelNames::schemaOf()`, `schema()` and `checkSchema()`, `ForeignKeys::elsewhere()` and the MVC stub `fragment-model-schema`. [#69](https://github.com/phalcon/crest/issues/69)
- Added the `models.getSet` key and `crest new --get-set`: protected model properties with a getter and a setter. [#70](https://github.com/phalcon/crest/issues/70)
- Added `crest new --template-engine=none`: an MVC project with no views. It gets no `ViewProvider`, layout or view, `'views' => false` in `crest.php`, a front controller that calls `useImplicitView(false)`, and an `IndexController` that returns JSON. `init` takes `none` for the `views` folder, and `config:show` shows `none`. [#83](https://github.com/phalcon/crest/issues/83)
- Added `Crest\Project\Config::hasViews()`, `Crest\Generator\Project\TemplateEngines::NONE`, and the MVC stubs `project-none-controller`, `module-no-views`, `fragment-guidance-module-no-views`, `fragment-guidance-controller-no-views` and `fragment-guidance-controller-module-no-views`. [#83](https://github.com/phalcon/crest/issues/83)
- Added `make:model --all --views`: a model for each view too. `ModelTables::of()` has a new last parameter `withViews`. [#88](https://github.com/phalcon/crest/issues/88)
- Added `make:repository` for ADR projects: a repository for a database table, over the data mapper (`Phalcon\DataMapper`). It writes a base that crest writes again when the table changes (the table, its primary key, its columns, `find()`, `add()`, `update()` and `delete()`), and a repository that the developer owns. [#84](https://github.com/phalcon/crest/issues/84)
- Added the `repository` default path (`src/Repository`) of ADR projects, the ADR stubs `repository-base`, `repository` and `fragment-guidance-repository`, `Crest\Generator\TableColumns` and `Crest\Project\Database::connection()`. [#84](https://github.com/phalcon/crest/issues/84)
- Added `crest new --template-engine=volt`: an MVC project with Volt views. It gets a `ViewProvider` with the Volt engine, the layout `index.volt` and the view `index/index.volt`, `var/cache/volt/.gitignore`, `'templateEngine' => 'volt'` in `crest.php`, and `phalcon/volt` in `composer.json` for `--phalcon=v6`. `make:scaffold` writes Volt views in such a project, `config:show` shows the engine, and `init` writes the key when the views folder has `.volt` files. [#85](https://github.com/phalcon/crest/issues/85)
- Added the `templateEngine` key of `crest.php`, `Crest\Project\Config::templateEngine()`, `Crest\Generator\Project\TemplateEngines::VOLT` and `delimiters()`, the last parameters `open` and `close` of `Crest\Generator\Stub::render()`, and the MVC stubs `project-volt-provider`, `project-volt-layout`, `project-volt-index`, `scaffold-volt-view-index`, `scaffold-volt-view-new` and `scaffold-volt-view-edit`. A Volt view stub has `[[ name ]]` placeholders. [#85](https://github.com/phalcon/crest/issues/85)
- Added `phalcon/volt` to the dev requirements. [#85](https://github.com/phalcon/crest/issues/85)
- Added `make:database <driver>`: adds a database to a project that exists, in each flavor. It writes `DbProvider` and, for SQLite, `storage/database.sqlite` and `storage/.gitkeep`, from the stubs of `new --database`. It changes no file that exists: it prints the line for the front controller, and the lines for `.gitignore` and `.env`. [#95](https://github.com/phalcon/crest/issues/95)
- Added `crest init --database=none|mariadb|mysql|pgsql|sqlite` and its question: after `crest.php`, `init` adds the database as `make:database` does. [#95](https://github.com/phalcon/crest/issues/95)
- Added `Crest\Generator\Project\DatabaseSetup`, `Crest\Generator\Project\DatabaseChoice::arguments()`, `Crest\Project\Bootstrap::overriding()` (from `make:provider`), and the stubs `fragment-guidance-database` (MVC and ADR) and `fragment-guidance-database-override` (ADR). [#95](https://github.com/phalcon/crest/issues/95)
- Added the server databases to `make:database` and `init --database` (MySQL, MariaDB, PostgreSQL): Crest prints the compose service `database` with its volume, `depends_on` for the app service, the Dockerfile lines of the PDO extension and the `.env` lines, from the stubs of `new --database`. A compose file with a `database` service gets a note in place of the service. A project with no compose file gets a note, and no compose, Dockerfile or `.env` lines. An app service named `database` stops the command, as in `new`. [#96](https://github.com/phalcon/crest/issues/96)
- Added `Crest\Project\Survey::composeFile()`, and made `Survey::services()` public. The check of an app service named `database` moved from `new` to `Crest\Generator\Project\DatabaseChoice::checkService()`. [#96](https://github.com/phalcon/crest/issues/96)
- Added the checks of a project that exists to `make:database`: when the `provider` folder has no `DbProvider.php`, it starts the front controller, if it can, and stops when the container has a `db` service. A front controller that does not start does not stop it. `init --database` does only the check of the file. With no front controller (no `bootstrap` key), `make:database` and `init --database` print the line for the container of the project, from the new stub `fragment-guidance-database-no-front`, and no line for a front. Added `Crest\Generator\Project\DatabaseSetup::checkContainer()`; `DatabaseChoice::arguments()` takes the root of a SQLite provider as an optional parameter. [#97](https://github.com/phalcon/crest/issues/97)
- Added a CI job on Windows (`windows-latest`, PHP 8.4, `phalcon/phalcon`): the unit suite, a real hand-off from a global crest to the crest of a project (`php.exe vendor\bin\crest`, with its exit status), and a real `PATHEXT` lookup of `ShellRunner`. The docs say that `new`, `up` and `down` with docker on Windows get best effort only, and that WSL2 is the Linux path. [#103](https://github.com/phalcon/crest/issues/103)
- Added the guide "Moving from devtools" to the docs: the Crest command for each devtools v4 command, `crest init` for a project of devtools, with a front controller that includes `app/config/services.php` for the commands that boot the project, the models, and the Annotations metadata strategy. [#105](https://github.com/phalcon/crest/issues/105)
- Added a list of schemas to `models.schema`, for example `['public', 'billing']`; the first is the default schema. `make:model`, `make:model --all` and `make:scaffold` read the tables, the columns and the foreign keys of each schema, and each base calls `setSchema()` with the schema of its table. A table of another schema is `<schema>.<table>` in the commands, `--exclude`, `models.classes` and the `RelationAlias` keys, and `<default>.<table>` is the table. A foreign key between two schemas of the list gives a `belongsTo()` and a `hasMany()`. A table name in two schemas keeps its class in the default schema, and the other table stops until `models.classes` gives it a class. [#86](https://github.com/phalcon/crest/issues/86)
- Added `ModelNames::schemas()`, `isList()`, `tableOf()`, `name()`, `nameOf()` and `withTables()`, `ModelTables::listed()` and `ModelProperties::ofName()`. [#86](https://github.com/phalcon/crest/issues/86)
- Added a CI job for mutation testing: Infection on PHP 8.4 with `phalcon/phalcon`, for all of `src/`, on each push and pull request, gated at MSI 100. `infection/infection` is a dev dependency. [#16](https://github.com/phalcon/crest/issues/16)
- Added the help of each command: `crest <command> --help` shows a help text, examples, the value marker and the default of each option, the aliases and the flavors. The Command reference of the guide comes from the same definitions (`composer docs`), and a test checks it. New: `Definition::help()`, `Definition::example()` and `Command::notes()`. [#16](https://github.com/phalcon/crest/issues/16)
- Added the documentation site crest.phalcon.io, in `docs/`: the guide as the pages of version 1.0, the Command reference from `composer docs`, and a changelog page from `CHANGELOG.md`. `docs/index.md` is removed. [#128](https://github.com/phalcon/crest/issues/128)
- Added `Crest\Commands::own()`: the commands of crest, with no command of a package. The Command reference of the guide documents these only. [#16](https://github.com/phalcon/crest/issues/16)

### Changed

- `make:action` writes a `params()` declaration for routes with attributes.
- `make:action` rejects a static segment after a placeholder: `/album/{id}/edit` must be `/album/edit/{id}`.
- Renamed `Crest\Adr` to `Crest\ADR`, and the `Flavor` cases to `ADR`, `CLI` and `MVC`. Backed values are unchanged.
- Renamed `Crest\ADR\CandidateSource` to `ActionResolver`, and `PhalconRouterCandidates` to `PhalconRouterResolver`.
- Dependencies resolve against PHP 8.1 (`config.platform`).
- Default `paths` are per flavor. `adr` and `mvc` ([#46](https://github.com/phalcon/crest/issues/46)) have defaults of their own; `command` is in each flavor ([#45](https://github.com/phalcon/crest/issues/45)). [#5](https://github.com/phalcon/crest/issues/5)
- `crest`, `crest list` and `crest --version` show a chevron before the name. No color when piped or with `NO_COLOR`. [#5](https://github.com/phalcon/crest/issues/5)
- `make:action --responder=view` prints the template name. [#5](https://github.com/phalcon/crest/issues/5)
- `route:list` and `make:action` take an optional `ActionResolver`. [#5](https://github.com/phalcon/crest/issues/5)
- `event:list` reads all listeners with one `getListenerMap()` call. [#1](https://github.com/phalcon/crest/issues/1)
- `phalcon/talon` moved from `^0.8` to `^1.0.0`.
- phpcs and php-cs-fixer use the shared Phalcon rules from `phalcon/code-quality`, added to `require-dev`.
- `stub:publish` without a name skips the `project-*` and `fragment-*` stubs. Publish them by name. [#8](https://github.com/phalcon/crest/issues/8)
- Rendering a stub fails when a placeholder has no value. The error names the stub. [#8](https://github.com/phalcon/crest/issues/8)
- Changed `crest.php` to required: the project root is its folder. Without it, crest says `run 'crest init'`. [#28](https://github.com/phalcon/crest/issues/28)
- Changed `config:show`: a value that `crest.php` does not state has the origin `default`. [#28](https://github.com/phalcon/crest/issues/28)
- Changed the hand-off: a project with `crest.php` that does not require crest gets the `composer require --dev phalcon/crest` hint. [#28](https://github.com/phalcon/crest/issues/28)
- Changed `new`: `crest.php` states every path and the runtime. [#28](https://github.com/phalcon/crest/issues/28)
- Changed `install`: it uses the service of the `runtime` key. [#28](https://github.com/phalcon/crest/issues/28)
- Changed the placeholders of the `project-config` stub. A copy that was published before this change stops `new` and `init`; publish it again. [#28](https://github.com/phalcon/crest/issues/28)
- Reserved the global option `--no-interaction` (`-n`). A contributed command that declares either one fails when it runs. [#28](https://github.com/phalcon/crest/issues/28)
- Changed `new`: it takes an optional `Runner`. [#32](https://github.com/phalcon/crest/issues/32)
- Changed the compose file of `new`: `init: true`, so `docker compose down` stops the container at once. For an existing project, add `init: true` to the service. [#42](https://github.com/phalcon/crest/issues/42)
- Changed the hand-off and `serve`: they use `vendor-dir` and `bin-dir` of `composer.json`, and `COMPOSER_VENDOR_DIR` and `COMPOSER_BIN_DIR`. [#34](https://github.com/phalcon/crest/issues/34)
- Changed `init`: the namespace must be in the psr-4 map of `composer.json`, and the other proposals follow it. [#42](https://github.com/phalcon/crest/issues/42)
- Changed the `runtime` key: the host runtime keeps a stated `service`, and `crest install` uses it. A `service` that is not a service name is an error. [#42](https://github.com/phalcon/crest/issues/42)
- Changed `./crest`: one `crest=` line names the crest of the project, and the crest commands get `CREST_HOST_ROOT`. [#42](https://github.com/phalcon/crest/issues/42)
- Changed `resources/setup.sh`: it refuses a system folder as the working folder, writes `APP_PORT` into the project `.env`, supports rootless docker, and prints the commands to continue after a failed `up` or `install`. [#42](https://github.com/phalcon/crest/issues/42)
- Changed the listing: in a project, `crest` and `crest list` show only the commands for the flavor of the project. [#44](https://github.com/phalcon/crest/issues/44)
- Changed `make:command`: it runs in each flavor, and the `command` default path is in each flavor. `command.stub` and `fragment-guidance-command.stub` moved to `resources/stubs/shared/`. [#45](https://github.com/phalcon/crest/issues/45)
- Changed `stub:publish`: it also publishes the shared stubs, into `resources/stubs/shared/`. [#45](https://github.com/phalcon/crest/issues/45)
- Moved the project stubs that are the same in both flavors to `resources/stubs/shared/`: `project-compose`, `project-composer`, `project-config`, `project-dockerfile`, `project-env`, `project-gitignore`, `project-htrouter`, `project-index` and `project-launcher`. [#47](https://github.com/phalcon/crest/issues/47)
- Changed the `project-config` stub: `'flavor' => '{{ flavor }}'`. `Crest\Project\Settings` has the flavor as its first value. [#47](https://github.com/phalcon/crest/issues/47)
- Changed the error of the `new` key: it names the published `project-config` that `new` used. [#47](https://github.com/phalcon/crest/issues/47)
- Changed `new`: it stops when the written `crest.php` does not have the chosen flavor. [#47](https://github.com/phalcon/crest/issues/47)
- Moved `Crest\Command\Make\ControllerCommand::BASE` and `BASE_FOLDER` to `Crest\Generator\ControllerBase::NAME` and `FOLDER`. [#47](https://github.com/phalcon/crest/issues/47)
- Changed `init`: it asks for the flavor after the namespace, so a script that sends answers to `init` needs one more line. For an MVC project, it asks for the MVC paths. [#48](https://github.com/phalcon/crest/issues/48)
- Changed `Crest\Project\Survey::paths()` and `settings()`: `paths()` takes the root, the folder and the flavor; `settings()` takes the root and the flavors to compare. [#48](https://github.com/phalcon/crest/issues/48)
- Changed `make:provider`: it also runs in MVC projects, with the MVC stubs `provider` and `fragment-guidance-provider`. [#49](https://github.com/phalcon/crest/issues/49)
- Changed `init`: for an MVC project, it also asks for the `model` folder, so a script that sends answers to `init` needs one more line. [#50](https://github.com/phalcon/crest/issues/50)
- Changed the requirements: crest requires `ext-tokenizer` (PHP turns it on by default). `make:model` reads the `RelationAlias` attributes of a base with it. [#51](https://github.com/phalcon/crest/issues/51)
- Changed `Crest\Generator\Stub::render()`: it puts in all the values in one pass, so a value with the text of a placeholder goes into the file as it is. [#51](https://github.com/phalcon/crest/issues/51)
- Changed `Crest\Generator\ModelRelations::of()`: its first argument is the `Crest\Generator\ForeignKeys` of the run, not the database adapter. [#52](https://github.com/phalcon/crest/issues/52)
- Changed the MVC stubs `model-base` (the placeholder `{{ columnMap }}`) and `fragment-model-property` (the placeholder `{{ property }}`): publish them again. [#53](https://github.com/phalcon/crest/issues/53)
- Moved `Crest\Generator\RelationAliases::read()` to `Crest\Generator\BaseAttributes::read()`. [#53](https://github.com/phalcon/crest/issues/53)
- Changed `Crest\Generator\ModelProperties::of()`: it no longer checks the names. [#53](https://github.com/phalcon/crest/issues/53)
- Changed `Crest\Generator\ModelTables::of()` and `Crest\Generator\ModelRelations::of()`: they take a `Crest\Generator\ModelNames`, and `ModelRelations::of()` takes the property names of the table, not its columns. [#53](https://github.com/phalcon/crest/issues/53)
- Changed the error of `make:model` for a column that is not a property name: it gives the `--property` to use. [#53](https://github.com/phalcon/crest/issues/53)
- Changed the lines of `make:model` for an alias with the name of a property of the table: they say `has the name of a property`, not `has the name of a column`. [#53](https://github.com/phalcon/crest/issues/53)
- Changed the project stubs `project-compose`, `project-dockerfile`, `project-env`, `project-gitignore`, `project-composer`, `project-config` and `project-front` (ADR and MVC): they have new placeholders. For a project with a database or `--camel-case`, publish a copy again. [#54](https://github.com/phalcon/crest/issues/54)
- Changed `new`: in a terminal, it asks for the database, so a script that sends answers to `new` needs one more line. `Crest\Generator\Project\Answers` has a new last argument `database`, and `Crest\Project\Settings` a new last argument `camelCase`. [#54](https://github.com/phalcon/crest/issues/54)
- Changed `init`: for an MVC project, it also asks for the `module` folder, so a script that sends answers to `init` needs one more line. `new` writes the `module` path into the `crest.php` of an MVC project. [#55](https://github.com/phalcon/crest/issues/55)
- Changed `init`: for an MVC project, it also asks for the `form` folder, so a script that sends answers to `init` needs one more line. `new` writes the `form` path into the `crest.php` of an MVC project. [#56](https://github.com/phalcon/crest/issues/56)
- Changed `new`: an MVC project gets `UrlProvider`, which sets the base URI to `/`. Added the stub `project-provider-url`. A published copy of `project-front` needs the `use` line of `UrlProvider` and the line `new UrlProvider(),`. [#56](https://github.com/phalcon/crest/issues/56)
- Changed `make:model`: with `models.schema`, a published `model-base` needs `{{ schema }}`. Publish it again with `crest stub:publish model-base --force`. [#69](https://github.com/phalcon/crest/issues/69)
- Changed `ModelProperties::of()` and `ForeignKeys::read()`: each one takes the schema as an optional last parameter. [#69](https://github.com/phalcon/crest/issues/69)
- Changed the default flavor to `mvc`: `new` with no `--flavor`, the flavor that `init` proposes for a tie, a `crest.php` with no `flavor` key, and `stub:publish --flavor`. An ADR project whose `crest.php` has no `flavor` key must add `'flavor' => 'adr'`.
- Changed `make:provider` in an ADR project: when the front controller of the `bootstrap` key declares `registerProviders()`, it prints only the `provide()` line, from the new stub `fragment-guidance-provider-override`. A second override was a "cannot redeclare" error. [#81](https://github.com/phalcon/crest/issues/81)
- Changed `new`: in a terminal, for an MVC project, it asks for the template engine (`phtml` or `none`) after the flavor, so a script that sends answers to `new` needs one more line. [#83](https://github.com/phalcon/crest/issues/83)
- Changed the MVC stubs `project-front` and `project-readme`: they have the new placeholders `{{ viewUse }}`, `{{ viewProvider }}`, `{{ implicitView }}` and `{{ viewsRow }}`. A copy published before #83 works for a project with views. For `--template-engine=none`, publish `project-front` again. [#83](https://github.com/phalcon/crest/issues/83)
- Changed `new --flavor=adr --database`: `DbProvider` registers a `Phalcon\DataMapper\Pdo\Connection` with the alias `db`, not a `Phalcon\Db` adapter. The ADR stubs `project-provider-db` and `project-provider-db-sqlite` have the new placeholders `{{ dsnDriver }}` and `{{ dsnCharset }}`. A copy published before #84 keeps a `Phalcon\Db` adapter, and `make:repository` stops on it. [#84](https://github.com/phalcon/crest/issues/84)
- Changed `init`: for an ADR project, it also asks for the `repository` folder, so a script that sends answers to `init` needs one more line. `new` writes the `repository` path into the `crest.php` of an ADR project. [#84](https://github.com/phalcon/crest/issues/84)
- Changed `make:scaffold`: it stops in a project with no views. In that project, `make:module` writes no `views` folder, and `make:controller` and `make:module` print their guidance with no view. `Crest\Project\Settings` takes `false` for the `views` path, and `Crest\Command\Questions::path()` gives `false` for the answer `none`. [#83](https://github.com/phalcon/crest/issues/83)
- Changed `make:model` on SQLite: from cphalcon 5.24.1 and `phalcon/phalcon` 6.0.0, a composite key gives one relation with all its columns, and a key with no referenced columns (`REFERENCES customers`) gives a relation to the primary key of the referenced table. The fixes are in Phalcon (phalcon/cphalcon#17814, phalcon/cphalcon#17815); crest needs no code change. The docs give the versions. [#87](https://github.com/phalcon/crest/issues/87)
- Changed `make:model --all`: from cphalcon 5.24.0 and `phalcon/phalcon` 6.0.0, it writes no model for a MariaDB sequence, and one model for a PostgreSQL partitioned table, with none for its partitions. The fix is in Phalcon (phalcon/cphalcon#17769); crest needs no code change. The docs give the versions. [#101](https://github.com/phalcon/crest/issues/101)
- Changed the database servers of the crest tests (`docker-compose.yml` and CI) to MySQL 8.4 and MariaDB 11.4, the versions that `crest new --database` writes. They were MySQL 8.0 and MariaDB 10.6, both past their end of life. The MariaDB service of CI checks its health with `healthcheck.sh`: the 11.4 image has no `mysqladmin`. [#102](https://github.com/phalcon/crest/issues/102)
- Changed the line ends of the output to `PHP_EOL`, also the line ends inside a text, for example a stub with `\r\n` or `\n`. Before, on Windows, the guidance of a stub had `\n` in a line that ended with `\r\n`. [#103](https://github.com/phalcon/crest/issues/103)
- Changed the message of a `models.schema` that is not valid to `models.schema must be the name of a schema, or a list of names`. [#86](https://github.com/phalcon/crest/issues/86)
- Changed `ForeignKeys::read()`: the third parameter is the `ModelNames` of the run, not the schema. [#86](https://github.com/phalcon/crest/issues/86)
- Changed the stub `model-base`: the comment gives `make:model {{ name }}`, the name of the table with its schema. `{{ table }}` stays the table for `setSource()`. [#86](https://github.com/phalcon/crest/issues/86)
- Changed `Crest\Project\Config` to `@internal`: it is not part of the API for a package. A package gets the project from `Project::context()`, as a `ProjectContext`. [#16](https://github.com/phalcon/crest/issues/16)
- Changed the PHP floor of crest to 8.2 (`^8.2`; it was `^8.1`), the floor of `phalcon/migrations`. `crest new --php` refuses 8.1: the project requires crest as a dev dependency. CI no longer runs PHP 8.1; the quality, database and coverage jobs run on 8.2. The dev dependencies are updated for 8.2. `resources/infection.json5` names `../src`: Infection 0.32, the version for PHP 8.2, reads each path from the folder of the file. [#16](https://github.com/phalcon/crest/issues/16)
- Changed `crest new` for the releases of Phalcon: a v5 project requires `ext-phalcon` `^5.24.1` (it was `^5.18`), also in the `pie install` line of its Dockerfile, and a v6 project requires `phalcon/phalcon` `^6.0` (it was `^6.0@RC`). cphalcon 5.24.1 and `phalcon/phalcon` 6.0.0 are the first releases with all the fixes that crest needs: the PIE build of cphalcon 5.24.0 does not have three of them. [#100](https://github.com/phalcon/crest/issues/100)
- Changed the dev dependencies to the releases: `phalcon/phalcon` `^6.0` (it was the branch `v6.0.x-dev`), with `minimum-stability` `stable`. CI installs cphalcon `^5.24.1` for the v5 variant (it was `^5.18`), so the database tests that skipped before cphalcon 5.24.0 run there. [#100](https://github.com/phalcon/crest/issues/100)
- Changed the coverage floor of CI (octocov) to 98.6% (it was 95%), below the measured 99.8%. A pull request also needs `diff >= 0`, as before. [#14](https://github.com/phalcon/crest/issues/14)
- Changed the README: it is shorter, and it points to the documentation. [#16](https://github.com/phalcon/crest/issues/16)
- Changed the help of an option: an int or a float default shows too (`Default: 8080`), and a description that ends with a full stop gets no second one before the default. [#16](https://github.com/phalcon/crest/issues/16)
- Changed the help of `make:action --template` to the form of the other options (`Default: <path>/index`), and the help of `make:controller` and `make:module`: they name the view and the views folder only for a project with views. [#16](https://github.com/phalcon/crest/issues/16)
- Changed `Crest\Console\Parsing\Example` to part of the API for a package (`@api`): `Definition::getExamples()` gives it. [#16](https://github.com/phalcon/crest/issues/16)
- Changed `.gitattributes`: the `.mdx` pages have LF on each OS, so the drift test of the Command reference passes on a Windows checkout with `core.autocrlf`. [#16](https://github.com/phalcon/crest/issues/16)
- Changed the error of `make:model` and `make:repository` in a project with no `db` service: it names `crest make:database <driver>`, which adds the whole database, before the other way (a service of your own). [#16](https://github.com/phalcon/crest/issues/16)

### Fixed

- `make:middleware`, `make:provider` and `make:responder` generate valid code when the name is the suffix (`make:middleware Middleware`). [#5](https://github.com/phalcon/crest/issues/5)
- Generators exit 1 with `could not create <directory>` when the target cannot be created. [#5](https://github.com/phalcon/crest/issues/5)
- `stub:publish` rejects a name that is a path. [#5](https://github.com/phalcon/crest/issues/5)
- `ClassName::suffixed()` accepts non-Latin class names. [#5](https://github.com/phalcon/crest/issues/5)
- `container:list` and `event:list` type against Phalcon's published contracts (`Phalcon\Contracts\Container\Service\Collection`, `Enumerable`), not `Container` and `Manager`. [#1](https://github.com/phalcon/crest/issues/1)
- `route:list` gets the HTTP method from the router, not from the class name. [#1](https://github.com/phalcon/crest/issues/1)
- `bin/crest` loads the autoloader of its install, not the one in a dev checkout. A global crest from a symlinked path repository passes project commands to the crest of the project. [#33](https://github.com/phalcon/crest/issues/33)
- The error `no answer; input ended` starts on its own line. [#42](https://github.com/phalcon/crest/issues/42)
- The `Run make:model ... too` line of `make:model` no longer names a table that gets no class. [#71](https://github.com/phalcon/crest/issues/71)
- Fixed `make:model`: a foreign key to a table of another schema no longer gives a relation to a model of the wrong table. It gives a `Skipped` line. [#69](https://github.com/phalcon/crest/issues/69)
- Fixed `make:model <view>` on SQLite: it writes a model, as on the other databases. Phalcon `tableExists()` does not find a view on SQLite, so crest also calls `viewExists()`. `ForeignKeys::read()` also reads the views of `listViews()`. [#88](https://github.com/phalcon/crest/issues/88)
- Fixed the program search of `ShellRunner` on Windows: a file with an ending of `PATHEXT`, for example `composer.bat`, is a program. Before, `is_executable()` was true there only for a binary, so the commands of the `new` key in `crest.php`, for example `composer install`, did not find `composer.bat`. [#103](https://github.com/phalcon/crest/issues/103)
- Fixed `make:model` with a list of schemas: a table of another schema that gets a new class from `models.classes` gives the `Note` line for its old files, as a table of the default schema does. [#86](https://github.com/phalcon/crest/issues/86)
- Fixed `make:model <schema>.<table>` with a list of schemas: a name in another case is the listed table, not another table with the same class. On MySQL with `lower_case_table_names`, the run writes the table; on a server that keeps the case, the table is not found. [#86](https://github.com/phalcon/crest/issues/86)
- Fixed the class clash error of a list of schemas: a table with a line in `models.classes` keeps its class, so the error does not tell you to add a line for it. [#86](https://github.com/phalcon/crest/issues/86)
- Fixed the files of the package: `.gitattributes` gives `export-ignore` to the paths of `archive.exclude`. Packagist gives the zip of GitHub, which reads `.gitattributes`, not `composer.json`, so before, the package had the tests, the CI files and the tool configs. [#16](https://github.com/phalcon/crest/issues/16)
- Fixed the aliases in `--help` of a command that a tool registers under a name that is not the name of its definition: the help showed none. An alias such as `1` is a string. [#16](https://github.com/phalcon/crest/issues/16)

### Removed

- Removed the shadowed-action warning from `make:action`.
- Removed the `phalcon/cli-options-parser` requirement.
- Removed the inference of the namespace and paths from `composer.json` when there is no `crest.php`. [#28](https://github.com/phalcon/crest/issues/28)
- Removed the error `no stubs are packaged for the '<flavor>' flavor` of `stub:publish`: each flavor has the shared stubs. [#45](https://github.com/phalcon/crest/issues/45)
- Removed the `phalcon/phql` and `phalcon/volt` lines from the `composer.json` of a v6 project, and the placeholders `{{ phql }}` and `{{ volt }}` from the stub `project-composer`: `phalcon/phalcon` 6.0.0 requires both packages. A copy of the stub that a project published before stops `crest new` before it writes a file; publish it again. [#100](https://github.com/phalcon/crest/issues/100)
- Removed `phalcon/phql` and `phalcon/volt` from the dev dependencies of crest: `phalcon/phalcon` brings them. [#100](https://github.com/phalcon/crest/issues/100)
- Removed the five test helpers that skipped a database test with cphalcon before 5.24.0. [#100](https://github.com/phalcon/crest/issues/100)

[keep_a_changelog]: https://keepachangelog.com/en/1.0.0/
[semantic_versioning]: https://semver.org/spec/v2.0.0.html
[Unreleased]: https://github.com/phalcon/crest/commits/master

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