{"id":13624246,"url":"https://github.com/php-build/php-build","last_synced_at":"2025-12-17T14:17:00.130Z","repository":{"id":987177,"uuid":"2198467","full_name":"php-build/php-build","owner":"php-build","description":"Builds PHP so that multiple versions can be used side by side.","archived":false,"fork":false,"pushed_at":"2025-11-20T11:44:31.000Z","size":1569,"stargazers_count":1029,"open_issues_count":35,"forks_count":156,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-11-20T13:18:21.574Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://php-build.github.io","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/php-build.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2011-08-12T18:09:20.000Z","updated_at":"2025-11-20T11:44:35.000Z","dependencies_parsed_at":"2023-02-18T02:31:08.871Z","dependency_job_id":"cd287bc5-8e80-420d-8408-0041ed22b86a","html_url":"https://github.com/php-build/php-build","commit_stats":{"total_commits":847,"total_committers":84,"mean_commits":"10.083333333333334","dds":0.7922077922077921,"last_synced_commit":"f178cffd43b4a33660d650e5d042e7fcb076637c"},"previous_names":["chh/php-build"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/php-build/php-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-build%2Fphp-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-build%2Fphp-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-build%2Fphp-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-build%2Fphp-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-build","download_url":"https://codeload.github.com/php-build/php-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-build%2Fphp-build/sbom","scorecard":{"id":732360,"data":{"date":"2025-08-11","repo":{"name":"github.com/php-build/php-build","commit":"08af21f6f39155de6131c081e3637680dcc62a8c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Maintained","score":7,"reason":"8 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":5,"reason":"Found 15/30 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: parameter expansion requires a literal: bin/phpenv-update:0","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:124: update your workflow using https://app.stepsecurity.io/secureworkflow/php-build/php-build/ci.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T14:47:27.588Z","repository_id":987177,"created_at":"2025-08-22T14:47:27.589Z","updated_at":"2025-08-22T14:47:27.589Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27783730,"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-12-17T02:00:08.291Z","response_time":55,"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":["hacktoberfest"],"created_at":"2024-08-01T21:01:40.456Z","updated_at":"2025-12-17T14:17:00.110Z","avatar_url":"https://github.com/php-build.png","language":"Shell","readme":"# php-build [![Build Status](https://api.travis-ci.com/php-build/php-build.svg?branch=master)](https://travis-ci.com/php-build/php-build)\n\nphp-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from Sam Stephenson's [ruby-build].\n\n## Overview\n\n* [Installation](#installation)\n* [Contributing](#contributing)\n* [Changelog](#changelog)\n* [License](#license)\n\n## Installation\n\n### As `phpenv` plugin\n\n#### With [phpenv] via installer\n\nIt's the standard way: installs `phpenv` in $HOME/.phpenv (default\n$PHPENV_ROOT value).\n\n```shell\ncurl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer \\\n    | bash\n```\n\nSee more on https://github.com/phpenv/phpenv-installer: install [phpenv](https://github.com/phpenv/phpenv) +\n[php-build/php-build](https://github.com/php-build/php-build) (and\nother plugins), updating all of them when you want to!\n\n#### With `phpenv` manually\n\nLocate your phpenv directory:\n\n    % ls $HOME/.phpenv\n\nClone the Git repository into phpenv plugins directory:\n\n    % git clone https://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build\n\nNow you can use php-build as phpenv plugin, as follows:\n\n    % phpenv install \u003cdefinition\u003e\n\nThe built version will be installed into `$HOME/.phpenv/versions/\u003cdefinition\u003e`.\n\n### As standalone `php-build`\n\nClone the Git Repository:\n\n    % git clone https://github.com/php-build/php-build.git\n\nThen go into the extracted/cloned directory and run:\n\n    % ./install.sh\n\nThis installs `php-build` to the default prefix `/usr/local`.\n\nTo install php-build to an other location than `/usr/local` set the `PREFIX`\nenvironment variable:\n\n    % PREFIX=$HOME/local ./install.sh\n\nIf you don't have permissions to write to the prefix, then you have to run\n`install.sh` as superuser, either via `su -c` or via `sudo`.\n\n## Contributing\n\nIssue reports and pull requests are always welcome.\n\n- Freenode channel: `#php-build`\n- Google group: https://groups.google.com/forum/#!forum/php-build-developers\n\nAll contributions will be reviewed and merged by the core team:\n\n* [Graham Campbell](https://github.com/GrahamCampbell)\n* [Rogerio Prado de Jesus](https://github.com/rogeriopradoj)\n* [Loïc Frering](https://github.com/loicfrering)\n* [Christoph Hochstrasser](https://github.com/CHH)\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md).\n\n## License\n\nphp-build is released under the [MIT License][license].\n\n[license]: LICENSE\n[phpenv]: https://github.com/phpenv/phpenv\n[ruby-build]: https://github.com/rbenv/ruby-build\n","funding_links":[],"categories":["Configuration","Table of Contents","PHP安装 PHP Installation","配置 Configuration","Shell","PHP 安装(PHP Installation)"],"sub_categories":["PHP Installation","PHP安装 PHP Installation"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-build%2Fphp-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-build%2Fphp-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-build%2Fphp-build/lists"}