PHP Programming Language
Created:
25 years of PHP history a chronological story of PHP by JetBrains.
- New in PHP 8 - stitcher.io
- PHP in 2019 - stitcher.io
- PHP The Right Way; apparently the best way to do PHP dev in 2019. :thumbsup: Also PHP - The Wrong Way
- The 2018 Guide to Building Secure PHP Software - Paragon Initiative Enterprises Blog [Dec 2017]
Jan 2019 Notes:
- My Modern PHP Development Setup · John Mackenzie; Jan 2019
- Use PHPStorm
- Use
.editorconfig
- Use Docker
- Use PHP-CS-Fixer
- VSCode is also nice
- Built in server –
php -S localhost:8000
- Frameworks
Success stories
Facebook’s backups were written in PHP. Well, the second version was, anyway. (T… | Hacker News
Multiprocess, forking, long-lived, server-side, I/O intensive PHP. And it worked brilliantly. Over the following years, it scaled from a backup set of a few hundred TB to many, many petabytes.
Alternatives
alekcz/pcp: PCP: Clojure Processor – Like drugs but better
Just use it like PHP on a webserver (say nginx):
#new pcp config => change .php to .clj
index index.clj index.html index.htm;
#new pcp config => change .php to .clj
location ~ \.clj$ {
#default nginx config on digital ocean lemp image
#include snippets/fastcgi-php.conf;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
include scgi_params;
scgi_intercept_errors on;
scgi_pass 127.0.0.1:9000;
}
PCP has following libraries built in:
(require '[cheshire.core :as json]
'[clostache.parser :as clo]
'[selmer.parser :as parser]
'[selmer.filters :as filters]
'[clj-http.lite.client :as client]
'[next.jdbc :as jdbc]
'[honeysql.core :as sql]
'[honeysql.helpers :as helpers]
'[postal.core :as email]
'[clojurewerkz.scrypt.core :as sc])
FrankenPHP: the modern PHP app server “Uses the official PHP executor embedded in a state-of-the-art web server: Caddy”; written in golang