php/php-src được TopGit xếp vào nhóm dự án mã nguồn mở, với 40.3k sao trên GitHub, viết chủ yếu bằng C. The PHP Interpreter
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
PHP is a popular general-purpose scripting language that is especially suited to
web development. Fast, flexible and pragmatic, PHP powers everything from your
blog to the most popular websites in the world.
PHP is distributed under the Modified BSD License
(SPDX-License-Identifier: BSD-3-Clause).
Documentation
The PHP manual is available at php.net/docs.
Installation
Prebuilt packages and binaries
Prebuilt packages and binaries can be used to get up and running fast with PHP.
For Windows, the PHP binaries can be obtained from
windows.php.net. After extracting the archive the
*.exe files are ready to use.
For other systems, see the installation chapter.
Building PHP source code
For Windows, see Build your own PHP on Windows.
For a minimal PHP build from Git, you will need autoconf, bison, and re2c. For
a default build, you will additionally need libxml2 and libsqlite3.
sudo port install autoconf bison re2c libiconv libxml2 sqlite3
Generate configure:
./buildconf
Configure your build. --enable-debug is recommended for development, see
./configure --help for a full list of options.
# For development
./configure --enable-debug
# For production
./configure
Build PHP. To speed up the build, specify the maximum number of jobs using the
-j argument:
make -j4
The number of jobs should usually match the number of available cores, which
can be determined using nproc.
Testing PHP source code
PHP ships with an extensive test suite, the command make test is used after
successful compilation of the sources to run this test suite.
It is possible to run tests using multiple cores by setting -jN in
TEST_PHP_ARGS or TESTS:
make TEST_PHP_ARGS=-j4 test
Shall run make test with a maximum of 4 concurrent jobs: Generally the maximum
number of jobs should not exceed the number of cores available.
Use the TEST_PHP_ARGS or TESTS variable to test only specific directories:
make TESTS=tests/lang/ test
The qa.php.net site provides more detailed info about
testing and quality assurance.
Installing PHP built from source
After a successful build (and test), PHP may be installed with:
make install
Depending on your permissions and prefix, make install may need superuser
permissions.
PHP extensions
Extensions provide additional functionality on top of PHP. PHP consists of many
essential bundled extensions. Additional extensions can be found on the
PIE Extensions list, and installed with
🥧 PIE, the PHP Installer for Extensions or the
deprecated PHP Extension Community Library - PECL.
Contributing
The PHP source code is located in the Git repository at
github.com/php/php-src. Contributions are most
welcome by forking the repository and sending a pull request.
Discussions are done on GitHub, but depending on the topic can also be relayed
to the official PHP developer mailing list [email protected].
New features require an RFC and must be accepted by the developers. See
Request for comments - RFC and
Voting on PHP features for more information
on the process.
Bug fixes don't require an RFC. If the bug has a GitHub issue, reference it in
the commit message using GH-NNNNNN. Use #NNNNNN for tickets in the old
bugs.php.net bug tracker.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/php/php-src là nguồn chính thức.
php/php-src có bao nhiêu sao?
php/php-src có 40.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/php/php-src. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
php/php-src có phải mã nguồn mở không?
Có — php/php-src phát hành theo license BSD-3-Clause, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/php/php-src.
php/php-src còn đang phát triển không?
Commit gần nhất trên php/php-src là 8 ngày trước (theo timestamp GitHub). Repo có 8.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
php/php-src là gì?
php/php-src (php/php-src) là dự án C trên GitHub. Theo mô tả gốc: The PHP Interpreter
Đọc đầy đủ README ở tab phía trên.
php-src có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về php-src.