Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 953bc32

Browse files
author
Jalen Davenport
committed
Merge branch 'release/v1.1.3'
2 parents 3322752 + 71abad4 commit 953bc32

File tree

6 files changed

+60
-7
lines changed

6 files changed

+60
-7
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.1.3] - 2018-12-13
8+
### Added
9+
- `switch-php` now supports PHP 7.3!
10+
- Added LICENSE and CHANGELOG to the repo
11+
12+
### Changed
13+
- Updated some of the examples to PHP 7.3
14+
- Created new gif to reflect changes implemented in v1.1.0 and also PHP 7.3
15+
16+
## [1.1.2] - 2018-07-06
17+
### Fixed
18+
- Customizing the memory settings was failing due to a variable removed in v1.1.0
19+
20+
## [1.1.1] - 2018-07-02
21+
### Fixed
22+
- Examples were updated to match the new arguments implemented in v1.1.0
23+
24+
## [1.1.0] - 2018-07-02
25+
### Changed
26+
- Homebrew PHP formula were moved to the core tap and also underwent name changes which necessitated updates to this script
27+
28+
### Fixed
29+
- Spelling and formatting errors

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Jalen Davenport
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Available Versions:
5757
7.0 Switch to [email protected]
5858
7.1 Switch to [email protected]
5959
7.2 Switch to [email protected]
60+
7.3 Switch to [email protected]
6061
```
6162

6263

@@ -67,7 +68,7 @@ Available Versions:
6768

6869
```
6970
switch-php 7.1 -m 512M # [email protected] with 512MB of memory
70-
switch-php 7.2 -m 2G -v # php@7.2 with 2GB of memory; verbose output
71+
switch-php 7.3 -m 2G -v # php@7.3 with 2GB of memory; verbose output
7172
switch-php 5.6 --memory=1G # [email protected] with 1GB of memory
7273
```
7374

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "switch-php",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Easily switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet.",
55
"keywords": [
66
"php",
77
"php56",
88
"php70",
99
"php71",
1010
"php72",
11+
"php73",
1112
"switch",
1213
"switcher",
1314
"memory",
@@ -26,7 +27,8 @@
2627
"sh"
2728
],
2829
"author": "Jalen Davenport <[email protected]> (https://dominion-designs.com)",
29-
"license": "See license in LICENSE.md",
30+
"license": "MIT",
31+
"homepage": "https://github.com/jalendport/switch-php#readme",
3032
"repository": "https://github.com/jalendport/switch-php",
3133
"bugs": "https://github.com/jalendport/switch-php/issues",
3234
"bin": "./switch-php.sh"

switch-php.gif

-21.5 MB
Loading

switch-php.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ NC="\e[0m" # Reset everything
1414

1515

1616
# Currently available php packages
17-
brew_array=("5.6" "7.0" "7.1" "7.2")
18-
17+
brew_array=("5.6" "7.0" "7.1" "7.2" "7.3")
18+
1919

2020

2121
# STARTS THE SPINNER
@@ -85,7 +85,7 @@ show_help() {
8585
printf " - 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.\n"
8686
printf " - 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: \n\n"
8787
printf " ${GREEN}switch-php 7.1 -m 512M${NC} # [email protected] with 512MB of memory\n"
88-
printf " ${GREEN}switch-php 7.2 -m 2G -v${NC} # php@7.2 with 2GB of memory; verbose output\n"
88+
printf " ${GREEN}switch-php 7.3 -m 2G -v${NC} # php@7.3 with 2GB of memory; verbose output\n"
8989
printf " ${GREEN}switch-php 5.6 --memory=1G${NC} # [email protected] with 1GB of memory\n\n"
9090
printf " - 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.\n"
9191
exit
@@ -106,7 +106,7 @@ while :; do
106106
show_help
107107
exit
108108
;;
109-
5.6|7.0|7.1|7.2) # If a version is specified; then
109+
5.6|7.0|7.1|7.2|7.3) # If a version is specified; then
110110
php_version="php@$1"
111111
rflag="true" # Required!
112112
;;

0 commit comments

Comments
 (0)