All Projects โ†’ jalendport โ†’ Switch Php

jalendport / Switch Php

Licence: mit
Easily switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet. ๐Ÿ”€

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Switch Php

Termtosvg
Record terminal sessions as SVG animations
Stars: โœญ 9,310 (+8363.64%)
Mutual labels:  cli, terminal
Gql
Very simple CLI for many GraphQL schemas in the cloud. Provides autocompletion for GraphQL queries
Stars: โœญ 101 (-8.18%)
Mutual labels:  cli, terminal
Eazydict
็ฎ€ๅ•ๆ˜“็”จ็š„ๅ‘ฝไปค่กŒ่ฏๅ…ธ ๐Ÿ“• ๐Ÿ“™ ๐Ÿ“— ๐Ÿ“˜ ๐Ÿ““
Stars: โœญ 92 (-16.36%)
Mutual labels:  cli, terminal
Mpb
multi progress bar for Go cli applications
Stars: โœญ 1,221 (+1010%)
Mutual labels:  cli, terminal
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: โœญ 109 (-0.91%)
Mutual labels:  cli, terminal
Lua cliargs
A command-line argument parsing module for Lua.
Stars: โœญ 84 (-23.64%)
Mutual labels:  cli, terminal
Tooling
Advancing Node.js as a framework for writing great tools
Stars: โœญ 98 (-10.91%)
Mutual labels:  cli, terminal
Tty Prompt
A beautiful and powerful interactive command line prompt
Stars: โœญ 1,210 (+1000%)
Mutual labels:  cli, terminal
Nord Termite
An arctic, north-bluish clean and elegant Termite color theme.
Stars: โœญ 104 (-5.45%)
Mutual labels:  cli, terminal
Cordless
The Discord terminal client you never knew you wanted.
Stars: โœญ 1,391 (+1164.55%)
Mutual labels:  cli, terminal
Window Size
Reliable way to to get the height and width of the terminal/console in a node.js environment.
Stars: โœญ 79 (-28.18%)
Mutual labels:  cli, terminal
Spinner
Go (golang) package with 90 configurable terminal spinner/progress indicators.
Stars: โœญ 1,637 (+1388.18%)
Mutual labels:  cli, terminal
Nord Terminator
An arctic, north-bluish clean and elegant Terminator color theme.
Stars: โœญ 78 (-29.09%)
Mutual labels:  cli, terminal
Run
โšกThe resource runtime
Stars: โœญ 90 (-18.18%)
Mutual labels:  cli, terminal
Xa
Beautiful & Customizable logger โค๏ธ
Stars: โœญ 78 (-29.09%)
Mutual labels:  cli, terminal
Gay
Colour your text / terminal to be more gay. ๐Ÿณ๏ธโ€๐ŸŒˆ
Stars: โœญ 95 (-13.64%)
Mutual labels:  cli, terminal
Emma Cli
๐Ÿ“ฆ Terminal assistant to find and install node packages.
Stars: โœญ 1,201 (+991.82%)
Mutual labels:  cli, terminal
Taskline
Tasks, boards & notes for the command-line habitat
Stars: โœญ 78 (-29.09%)
Mutual labels:  cli, terminal
Ruby Progressbar
Ruby/ProgressBar is a text progress bar library for Ruby.
Stars: โœญ 1,378 (+1152.73%)
Mutual labels:  cli, terminal
Unix Permissions
Swiss Army knife for Unix permissions
Stars: โœญ 106 (-3.64%)
Mutual labels:  cli, terminal

๐Ÿ”€ switch-php

Easily switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet.

switch-php screencast

โฌ‡๏ธ๏ธ๏ธ Installation:

Installing switch-php is as easy as running:

npm install --global switch-php

If you use Yarn, you can do this:

yarn global add switch-php

Alternatively you can move the switch-php.sh file from this repo into your home directory and add this line in your .bashrc/.zshrc/etc.:

source ~/switch-php.sh

โš™ Usage:

You must have PHP installed via Homebrew in order for switch-php to work. switch-php also works really well with Laravel Valet, but Valet is not a requirement in order to use switch-php.

Here's an example of how you would use switch-php:

$ switch-php 7.1 -v -m 512M
  1. switch-php -> The main command. (Required)
  2. 7.1 -> Specify the version of PHP you want to switch too, in this case php71. (Required)
  3. -v -> Request verbose output (Optional)
  4. -m 512M -> Request a custom PHP memory setting. If you don't pass an additional arugment, the memory will be reset to the Valet default. (Optional)

Here's the full list of versions/options:

Usage:
  version [options] [arguments]

Options:
  -h, --help      Display the help message
  -v, --verbose   Display more info during the process
  -m, --memory    Customize the PHP memory setting (Valet only)

Available Versions:
  5.6              Switch to [email protected]
  7.0              Switch to [email protected]
  7.1              Switch to [email protected]
  7.2              Switch to [email protected]
  7.3              Switch to [email protected]
  7.4              Switch to [email protected]

๐ŸŽ› Customizing the PHP Memory Settings:

  • If you don't pass an argument to -m or --memory, it will reset any previously set custom memory settings to the default Valet config.
  • Alternatively, you can pass an argument to -m or --memory if you want to override the default Valet memory settings. For example, you can do:
switch-php 7.1 -m 512M       # [email protected] with 512MB of memory
switch-php 7.3 -m 2G -v      # [email protected] with 2GB of memory; verbose output
switch-php 5.6 --memory=1G   # [email protected] with 1GB of memory
  • Note: customizing PHP memory settings currently only works for Laravel Valet users. If you don't use Valet, we hope to get this working for you as well in an upcoming release.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].