-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d21dafd
Showing
7 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test | ||
on: [push] | ||
jobs: | ||
run: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['5.3', '5.4', '5.5'] | ||
name: PHP ${{ matrix.php-versions }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
run: bash install.sh ${{ matrix.php-versions }} | ||
- name: Testing PHP version | ||
run: | | ||
php -v | ||
php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}" | ||
- name: Testing | ||
run: | | ||
php -m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/builds |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Shivam Mathur | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2011 liip ag | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# PHP5 for darwin | ||
|
||
<a href="https://github.com/shivammathur/php5-darwin" title="php5 install scripts for darwin"><img alt="Build status" src="https://github.com/shivammathur/php5-darwin/workflows/Test/badge.svg"></a> | ||
<a href="https://github.com/shivammathur/php5-darwin/blob/master/LICENSE" title="license"><img alt="LICENSE" src="https://img.shields.io/badge/license-MIT-428f7e.svg"></a> | ||
<a href="https://github.com/shivammathur/php5-darwin/tree/master/dist" title="builds"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.3, 5.4 and 5.5-8892BF.svg"></a> | ||
|
||
> Scripts to install end of life PHP versions. | ||
PHP versions in this project have reached end of life and should not be used except for testing backward-compatibility. | ||
|
||
## Usage | ||
|
||
### PHP 5.3 | ||
```bash | ||
curl -sSL https://github.com/shivammathur/php5-darwin/releases/latest/download/install.sh | bash -s 5.3 | ||
``` | ||
|
||
### PHP 5.4 | ||
```bash | ||
curl -sSL https://github.com/shivammathur/php5-darwin/releases/latest/download/install.sh | bash -s 5.4 | ||
``` | ||
|
||
### PHP 5.5 | ||
```bash | ||
curl -sSL https://github.com/shivammathur/php5-darwin/releases/latest/download/install.sh | bash -s 5.5 | ||
``` | ||
|
||
## License | ||
|
||
This project is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). | ||
Please see the [license file](LICENSE) for more information. | ||
This project uses builds from [liip/php-osx](https://github.com/liip/php-osx "liip/php-osx") and their LICENSE can be found [here](LIIP_LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
curl -o /tmp/php.tar.xz -sSL https://github.com/shivammathur/php5-darwin/releases/latest/download/php"$1".tar.xz | ||
sudo tar -C /usr/local -xf /tmp/php.tar.xz | ||
sudo chmod 777 /usr/local/php5/post-install | ||
sudo /usr/local/php5/post-install | ||
for tool in pear peardev pecl php php-config phpize; do | ||
sudo ln -sf /usr/local/php5/bin/"$tool" /usr/local/bin/"$tool" | ||
done |