mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
6e80db5087fb703df4f2f1d7f7d9e36db31cc3f7
This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because Git can do output conversion if core.autocrlf=true is set on Windows and then uses CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
Local development
This is the git repo for the official www.php.net website.
To setup a local mirror of the website:
$ git clone https://github.com/php/web-php.git
$ cd web-php
$ php -S localhost:8080 .router.php
This repo includes most (generated) files that are required for normal operation of this website, such as
- News & events data
- Several manual pages (and a translation), see manual/{en,ja}/
- User contributed notes for manual pages
- A "router" for the builtin PHP webserver
Setting up an official mirror
To install a full official mirror please see the mirroring guidelines.
Code requirements
Code must function on a vanilla PHP 5.3 installation as some php.net mirrors still run PHP 5.3. Please keep this in mind before filing a pull request.
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:26:27.645Z
Languages
PHP
94.4%
CSS
2.6%
JavaScript
2.5%
PowerShell
0.2%
TypeScript
0.2%