{"id":33018464,"url":"https://github.com/CHH/phpenv","last_synced_at":"2025-11-16T14:00:37.938Z","repository":{"id":63243449,"uuid":"2162240","full_name":"CHH/phpenv","owner":"CHH","description":"Thin Wrapper around rbenv for PHP version managment","archived":false,"fork":false,"pushed_at":"2021-05-31T19:56:06.000Z","size":317,"stargazers_count":570,"open_issues_count":22,"forks_count":53,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-05-20T11:33:36.155Z","etag":null,"topics":[],"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/CHH.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":"2011-08-05T19:38:32.000Z","updated_at":"2024-02-23T19:17:58.000Z","dependencies_parsed_at":"2022-11-15T16:30:29.253Z","dependency_job_id":null,"html_url":"https://github.com/CHH/phpenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CHH/phpenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHH%2Fphpenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHH%2Fphpenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHH%2Fphpenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHH%2Fphpenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CHH","download_url":"https://codeload.github.com/CHH/phpenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CHH%2Fphpenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284719042,"owners_count":27052182,"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","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"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":"2025-11-13T18:00:39.568Z","updated_at":"2025-11-16T14:00:37.931Z","avatar_url":"https://github.com/CHH.png","language":"Shell","funding_links":[],"categories":["PHP安装","PHP安装 PHP Installation","Development Software","PHP Installation","PHP 安装(PHP Installation)"],"sub_categories":[],"readme":"# phpenv\n[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/CHH/phpenv?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nSets up a separate rbenv environment for PHP\n\n[man page](https://github.com/CHH/phpenv/blob/master/man/phpenv-install.1.ronn)\n\n\n## SYNOPSIS\n\n    phpenv-install.sh\n    UPDATE=yes phpenv-install.sh\n\n## DESCRIPTION\n\nThe `phpenv-install.sh` command sets up a separate rbenv \nenvironment for usage with PHP. This environment is \nstored in the `$HOME/.phpenv` directory and contains\na `phpenv` executable which sets the `RBENV_ROOT` \nenvironment variable to `$HOME/.phpenv`.\n\nTo install PHP versions, just put them to the `$HOME/.phpenv/versions`\ndirectory. You can use [php-build](http://github.com/chh/php-build)\nto do this with one command:\n\n    $ php-build -i development 5.4.9 $HOME/.phpenv/versions/5.4.9\n    $ phpenv versions\n      5.4.9\n    $ phpenv rehash\n    $ phpenv global 5.4.9\n    $ php --version\n      PHP 5.4.9 (cli) (built: Nov 25 2012 17:27:10) \n      Copyright (c) 1997-2012 The PHP Group\n      Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies\n          with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans\n\nThe `phpenv-install.sh` command has an optional \n\"update\" mode which updates the `$HOME/.phpenv` to \nthe latest source code from the rbenv repository \nand creates a new `phpenv` executable.\n\nThis mode is triggered by setting the \n`UPDATE` environment variable before \ncalling `phpenv-install.sh`, for example:\n\n    $ UPDATE=yes phpenv-install.sh\n\nFinally, enable phpenv in your shell by adding `$HOME/.phpenv/bin` and\n`$HOME/.phpenv/shims` to your `PATH` and adding `eval \"$(phpenv init -)\"`\nto your `$HOME/.bash_profile` or `$HOME/.bashrc` (or your shell's \nrespective file) and restart your shell.\n\n## IMPORTANT NOTES\n\n- **For rbenv users**: Make sure that `~/.rbenv/bin` takes precedence\n  in the `PATH` over `~/.phpenv/bin` by placing it before, so `rbenv` gets\n  used from `~/.rbenv`.\n\n-  You need to have `git` installed to run the `phpenv-install.sh` command.\n\n## SEE ALSO\n\n[rbenv](http://github.com/sstephenson/rbenv)\n\n\n[SYNOPSIS]: #SYNOPSIS \"SYNOPSIS\"\n[DESCRIPTION]: #DESCRIPTION \"DESCRIPTION\"\n[IMPORTANT NOTES]: #IMPORTANT-NOTES \"IMPORTANT NOTES\"\n[LICENSE]: #LICENSE \"LICENSE\"\n[SEE ALSO]: #SEE-ALSO \"SEE ALSO\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCHH%2Fphpenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCHH%2Fphpenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCHH%2Fphpenv/lists"}