From 58cb4562c9b5384f2ddad0989315d6963b86ed80 Mon Sep 17 00:00:00 2001 From: Artur Kyryliuk Date: Tue, 17 Jun 2025 23:19:22 +0200 Subject: [PATCH 1/3] Update README.md Explained alias to make "phalcon" command work when it's installed locally in the project --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1115b2fc9..963b37f83 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Create the composer.json file as follows: } } ``` +or (if you are ok with dev stability) If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead: @@ -58,6 +59,19 @@ Run the composer installer: php composer.phar install ``` +(Windows) create somewhere in the directories listed in your %PATH% the file named phalcon.cmd with the next contents: +```cmd +vendor/bin/phalcon.bat %* +``` + +(Linux) add to .bash_profile or .bashrc + +(MacOS) add to .zprofile or .zrc +```bash +alias phalcon=vendor/bin/phalcon +``` + + ## Build `.phar` Install composer and box in a common location or in your project: From a3eb304d1913ea063b10feff114abc95ec4d68cd Mon Sep 17 00:00:00 2001 From: Artur Kyryliuk Date: Tue, 17 Jun 2025 23:20:24 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 963b37f83..5f65865fc 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ Create the composer.json file as follows: } ``` or (if you are ok with dev stability) +```json +{ + "require-dev": { + "phalcon/devtools": "5.*" + } +} If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead: From 511fe0cc8a7c3a4c25d254768d0f912775784467 Mon Sep 17 00:00:00 2001 From: Artur Kyryliuk Date: Tue, 17 Jun 2025 23:21:19 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5f65865fc..18f06cb66 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,14 @@ Create the composer.json file as follows: } ``` or (if you are ok with dev stability) + ```json { "require-dev": { "phalcon/devtools": "5.*" } } +``` If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead: