https://github.com/studio24/mamp-php
Command to help manage what version of PHP you are using on the CLI (if you use MAMP for local dev)
https://github.com/studio24/mamp-php
Last synced: about 1 month ago
JSON representation
Command to help manage what version of PHP you are using on the CLI (if you use MAMP for local dev)
- Host: GitHub
- URL: https://github.com/studio24/mamp-php
- Owner: studio24
- Created: 2018-04-20T06:28:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T06:42:11.000Z (about 8 years ago)
- Last Synced: 2025-02-25T18:04:52.045Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Manage PHP versions on the command line in MAMP
Simple tool to help manage and switch PHP versions when using MAMP. We don't use MAMP's native PHP CLI integration since
this (in our experience) does not work reliably.
## Usage
Show current and available versions:
bin/mamp-php show
Switch to a different version of PHP:
bin/mamp-php use 7.1.8
## Installation
This CLI scripts uses the [Symfony Console](http://symfony.com/doc/current/components/console/index.html) component.
Use [Composer](http://getcomposer.org) to load this.
To install run the following commands:
```
git clone https://github.com/studio24/mamp-php
cd mamp-php
composer install
```
## MAMP
In the _PHP_ section ensure the option _Make this version available in the command line_ is not selected.
## bash_profile
Make sure you don't already have a custon PHP version set in your `~/.bash_profile` file, for example `/Applications/MAMP/bin/php/php7.1.8/bin/php`.
## License
MIT License (MIT)
Copyright (c) 2018 Studio 24 Ltd (www.studio24.net)