jalendport / Switch Php
Licence: mit
Easily switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet. ๐
Stars: โญ 110
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
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
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.
โฌ๏ธ๏ธ๏ธ 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
-
switch-php
-> The main command. (Required) -
7.1
-> Specify the version of PHP you want to switch too, in this casephp71
. (Required) -
-v
-> Request verbose output (Optional) -
-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].