php / php-src
git clone https://github.com/php/php-src.git
php-8.5.11 · 26d ago
🔥 on GitHub Trending today
The PHP Interpreter
+6
stars, 24h · #412
—
stars, 7 days
—
stars, 30 days
40k
★ total
8.2k
forks · 2.2k open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageC
LicenseBSD-3-Clause
Created2011-06-16 (15y ago)
Last pushtoday
Watchers1.3k
OwnerOrganization
Seen on GitHub Trending
- 2026-10-20 — #8 daily in c · +6 ★
Links
- GitHub: github.com/php/php-src
- Homepage: https://www.php.net
- Releases · Issues · Hacker News mentions
README excerpt
# The PHP Interpreter 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. On Ubuntu, you can install these using: [code] On Fedora, you can install these using: [code] On MacOS, you can install these using `brew`: [code] or with `MacPorts`: [code] Generate configure: [code] Configure your build. `--enable-debug` is recommended for development, see `./configure --help` for a full list of options. [code] Build PHP. To speed up the build, specify the maximum number of jobs using the `-j` argument: [code] 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. Tests run in parallel by default, using up to 10 detected logical processors. Set `-jN` in `TEST_PHP_ARGS` or `TESTS` to override the worker count: [code] This runs `make test` with a maximum of 4 concurrent jobs. Alternatively, use `-j1` to run tests sequentially. Use the `TEST_PHP_ARGS` or `TESTS` variable to test only specific directories: [code] 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: [code] 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 internals@lists.php.net. New features require an RFC and must be accepted by the developers. See Reque