{"repo":"rryqszq4/ngx-php","free":true,"listed":false,"github":"https://github.com/rryqszq4/ngx-php","clone":"git clone https://github.com/rryqszq4/ngx-php.git","description":"ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.","language":"C","stars":700,"topics":["nginx","php","php7","module","nginx-module","php8"],"license":"BSD-2-Clause","category":"deployment-docker-iac","readme_excerpt":"ngx-php ======== ngx-php is an extension module of high-performance web server nginx, which implements embedded PHP7 and PHP8 script to process nginx location and variables. ngx-php draws on the design of ngx lua and is committed to providing non-blocking web services with significant performance advantages over php-cgi, mod php, php-fpm and hhvm. ngx-php doesn't want to replace anything, just want to provide a solution. There is a legacy version of ngx php5, which records some of my past code practices and is also valuable. Benchmarks about ngx-php and php Table of contents ----------------- What's different with official php Requirement Installation Synopsis Test Directives Nginx API for php Nginx non-blocking API for php Nginx constants Copyright and License What's different with official php ---------------------------------- Global variable is unsafe in per request Static variable of a class is unsafe in per request Do not design singleton mode The native IO function works fine, but it slows down nginx Requirement ----------- - Linux only - PHP-7. PHP-8.3 - nginx-1.4.7 nginx-1.26.x Installation ------------ Compile install CentOS / RedHat 7 Edit nginx.conf and load the required modules at the top: load module modules/ndk http module.so; load module modules/ngx http php module.so; Ubuntu Mac osx https://github.com/rryqszq4/ngx-php/blob/master/docs/zh-cn/osx install.md Docker Synopsis -------- Test ---- Using the perl of Test::Nginx module to testing, searching and finding","default_branch":null,"files":null,"tree":[],"storefront":"/r/rryqszq4","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rryqszq4/ngx-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}