Skip to content

Explained alias to make "phalcon" command work when it's installed locally in the project #1548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ 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:

Expand All @@ -58,6 +67,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:
Expand Down