{"id":20428910,"url":"https://github.com/ppmathis/gatherphp","last_synced_at":"2026-05-29T06:31:24.224Z","repository":{"id":6350353,"uuid":"7586956","full_name":"ppmathis/gatherphp","owner":"ppmathis","description":"Manage multiple PHP versions easily and comfortably.","archived":false,"fork":false,"pushed_at":"2014-12-26T12:11:19.000Z","size":166,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T05:30:38.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppmathis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-13T10:49:53.000Z","updated_at":"2014-12-26T12:11:19.000Z","dependencies_parsed_at":"2022-08-29T20:11:37.759Z","dependency_job_id":null,"html_url":"https://github.com/ppmathis/gatherphp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ppmathis/gatherphp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppmathis%2Fgatherphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppmathis%2Fgatherphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppmathis%2Fgatherphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppmathis%2Fgatherphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppmathis","download_url":"https://codeload.github.com/ppmathis/gatherphp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppmathis%2Fgatherphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33640627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T07:29:24.885Z","updated_at":"2026-05-29T06:31:24.206Z","avatar_url":"https://github.com/ppmathis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GatherPHP #\n\nManage multiple PHP versions easily and comfortably with GatherPHP.\n\n## License ##\nApache License (version 2)\n\n## Installation of GatherPHP ##\nJust clone the git repository of gatherphp into some directory of your choice and you are good to go!\n\n```bash\ngit clone git://github.com/NeoXiD/gatherphp.git\n```\n\n## Install a new PHP version ##\nJust run the following command and a new PHP version will get installed:\n\n```bash\n# Example: ./install.sh 5.4.10\n./install.sh [PHP Version]\n```\n\n**Notice:** Do *not* use sudo for installing new versions. Either put GatherPHP in a directory where you've got write access to or use an interactive shell. (```sudo -i```, ```sudo su```...)\n\nGatherPHP will automatically fetch the correct archive, extract, configure and install it. But that is not all yet - you can append flags after the *PHP Version*, like here:\n\n```bash\n./install.sh 5.4.10-debug\n./install.sh 5.4.10-debug-zts\n```\n\nThe order of the flags does not matter - GatherPHP will sort them for you! These are all the available flags:\n\n- **debug** compiles a version with debugging symbols\n- **zts** enables thread safety\n- **32bits** forces the creation of a 32bits version on a 64bit machine\n- **pear** adds \u0026 installs PEAR support\n\nAfter the installation, GatherPHP creates some symlinks in /inst/bin. If you will extend your $PATH variable so that it will point to /path/to/gatherphp/inst/bin, you can use commands like this:\n\n```bash\nphp-5.4.10 ...\nphpize-5.4.10-debug ...\npear-5.3.0 ...\n```\n\n## Switching the standard PHP version ##\nWith GatherPHP, you can also easily change the system-wide standard PHP version. Just execute the following command and a nice 'setup' will guide you through the progress:\n\n```bash\n./default.sh\n```\n\nOfcourse you **must** run this command with the correct permissions. (It will install itself into /usr/local/bin or /usr/local/sbin, so you should use sudo.)\n\n## Configure options customization ##\nWhenever you install a PHP version, GatherPHP will look for the following files in the **custom/** folder:\n\n- **options-** *major.minor.patch-flags* **.sh** (e.g. ```options-5.4.10-debug-pear.sh```)\n- **options-** *major.minor-flags* **.sh** (e.g. ```options-5.4-debug-pear.sh```)\n- **options-** *major-flags* **.sh** (e.g. ```options-5-debug-pear.sh```)\n- **options-** *major.minor.patch* **.sh** (e.g. ```options-5.4.10.sh```)\n- **options-** *major.minor* **.sh** (e.g. ```options-5.4.sh```)\n- **options-** *major* **.sh** (e.g. ```options-5.sh```)\n- **options.sh**\n\nThe first file which can be found will be taken - other files will be ignored. While installating a PHP version, GatherPHP shows you which configure options file will be used. A options file should look like this:\n\n```bash\n#!/bin/bash\nconfig_options=\"\t\t\\\n--disable-all\t\t\t\\\n--enable-session\t\t\\\n--enable-filter\t\t\t\\\n--disable-cgi\t\t\t\\\n\"\n```\n\n## php.ini customization ##\nGatherPHP will also look for the following files in the **custom/** folder to generate a php.ini file:\n\n- **php.ini**\n- **php-** *major* **.ini** (e.g. ```php-5.ini```)\n- **php-** *major.minor* **.ini** (e.g. ```php-5.4.ini```)\n- **php-** *major.minor.patch* **.ini** (e.g. ```php-5.4.10.ini```)\n- **php-** *major-flags* **.ini** (e.g. ```php-5-debug-pear.ini```)\n- **php-** *major.minor-flags* **.ini** (e.g. ```php-5.4-debug-pear.ini```)\n- **php-** *major.minor.patch-flags* **.ini** (e.g. ```php-5.4.10-debug-pear.ini```)\n\nOther than during the configure options part, **all** the available ini files are merged together in the order specified as above.\nIf no custom file can be found, GatherPHP will try to copy the php.ini-recommended / php.ini-development configuration from the PHP sources.\nIf there is also no configuration file available, GatherPHP will notice you.\n\n## Post-installation scripts ##\nGatherPHP also supports post-installation scripts for copying extensions, installating PEAR modules and so on. Again, it will look for the following files in the **custom/** folder:\n\n- **post-install.sh**\n- **post-install-** *major* **.sh** (e.g. ```post-install-5.sh```)\n- **post-install-** *major.minor* **.sh** (e.g. ```post-install-5.4.sh```)\n- **post-install-** *major.minor.patch* **.sh** (e.g. ```post-install-5.4.10.sh```)\n- **post-install-** *major-flags* **.sh** (e.g. ```post-install-5-debug-pear.sh```)\n- **post-install-** *major.minor-flags* **.sh** (e.g. ```post-install-5.4-debug-pear.sh```)\n- **post-install-** *major.minor.patch-flags* **.sh** (e.g. ```post-install-5.4.10-debug-pear.sh```)\n\nA post-installation script gets called with the following parameters:\n\n```bash\n/bin/bash script.sh [Installed Version] [Installation Directory] [Binary Directory]\n```\n\n- - -\nGatherPHP - © 2013 P. Mathis (pmathis@snapserv.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppmathis%2Fgatherphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppmathis%2Fgatherphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppmathis%2Fgatherphp/lists"}