{"id":22151383,"url":"https://github.com/src-run/phpenv","last_synced_at":"2025-03-24T13:21:50.518Z","repository":{"id":136386380,"uuid":"59284882","full_name":"src-run/phpenv","owner":"src-run","description":"Simple installer for phpenv, leveraging the sstephenson/rbenv project at its core, with optional installation of the php-build and php-conf plug-ins.","archived":false,"fork":false,"pushed_at":"2018-01-29T10:12:08.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T18:24:09.424Z","etag":null,"topics":["bash","php","phpenv","rbenv"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/src-run.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-20T10:09:07.000Z","updated_at":"2018-01-29T10:04:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"acae26c3-f38b-4db2-a314-c7ff7f9e40bf","html_url":"https://github.com/src-run/phpenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fphpenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fphpenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fphpenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-run%2Fphpenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/src-run","download_url":"https://codeload.github.com/src-run/phpenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276110,"owners_count":20588895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash","php","phpenv","rbenv"],"created_at":"2024-12-02T00:32:39.746Z","updated_at":"2025-03-24T13:21:50.497Z","avatar_url":"https://github.com/src-run.png","language":"Shell","readme":"# phpenv\n\nInstaller for `phpenv`, which leverages the great [`sstephenson/rbenv`](https://github.com/sstephenson/rbenv.git)\nproject at its core (with optional installation of the [`php-build`](https://github.com/php-build/php-build.git)\nand [`php-conf`](https://github.com/src-run/php-conf.git) plug-ins). Additionally, the required `build-deps` for\nPHP can be installed during script execution.\n\n## Installation\n\n__Single Command Install:__ You can use this installer script without cloning the repository yourself by calling the\nfollowing command:\n\n```bash\ncurl -s https://raw.githubusercontent.com/src-run/phpenv/master/bin/phpenv-installer-remote.bash | bash\n```\n\n__Clone Repository Yourself:__ Alternatively, you can clone the repository yourself and execute the installer script:\n\n```bash\ngit clone --recurse-submodules https://github.com/src-run/phpenv.git\nbash phpenv/bin/phpenv-installer.bash\n```\n\n## `phpenv` Usage\n\nThe `phpenv-install.sh` command sets up a separate `rbenv` for usage with PHP. This environment is  stored in the\n`$HOME/.phpenv` directory and contains a `phpenv` executable which sets the `PHPENV_ROOT`  environment variable\nto `$HOME/.phpenv`.\n\nTo install PHP versions, you can either put compiled version within the `$HOME/.phpenv/versions` directory, or\n(if you installed the `php-build` plug-in) you can use the following commands:\n\n```bash\nphpenv install -l     # list available versions\nphpenv install 7.1.13 # installed php version 7.1.13\nphpenv rehash         # refresh installed versions\nphpenv global 7.1.13  # set 7.1.13 as global active version\nphp -v                # outputs version 7.1.13 info\nphpenv global system  # go back to the system-installed php version\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-run%2Fphpenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrc-run%2Fphpenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-run%2Fphpenv/lists"}