Brought to you in conjunction with <?PHPDeveloper.org
NEWS
32 \ May 2019 \ http://www.phparch.com
April Happenings
PHP Releases
PHP 7.3.4:
https://php.net/archive/2019.php#id2019-04-04-1
PHP 7.2.17:
https://php.net/archive/2019.php#id2019-04-04-2
PHP 7.1.28:
https://php.net/archive/2019.php#id2019-04-04-3
News
Implementing Event Sourcing: Improving the
Developer Experience
On his blog, Freek Van der Herten shares this post about the
latest version of the laravel-event-projector package. Version
two adds two features under the hood to “improve the
developer experience.” One is to auto-detect event handling
methods and event handler auto-discovery.
http://phpdeveloper.org/news/26975
Building a RESTful API Using ReactPHP: Basic
Authentication
In this post, Serega Zhug continues a series on writing an API
with ReactPHP. In particular, adding Basic HTTP authentica-
tion to client requests. He explains how Basic authentication
works and the shows how to use PSR-15 middlewares to use
an adapter to add it to a ReactPHP server.
http://phpdeveloper.org/news/26962
A PHP Compiler, aka The FFI Rabbit Hole
In this blog post, Anthony Ferrara introduced another one
his project—php-compiler. He starts with a brief discussion
on the different kinds of compilers used with programming
languages and a quick look at different components need-
ed for “compiling” source code. His latest project uses the
FFI extension being added to PHP 7.4 to implement a PHP
compiler in PHP.
http://phpdeveloper.org/news/26955
From Zend Framework To The Laminas Project
Matthew Weier O’Phinney has this update on his blog about
the future of the Zend Framework project which he leads.
It’s being renamed as Laminas as it moves to an open source
project supported by the Linux Foundation. At the moment,
they are still working on migrating the project, but he expects
to have updates in the next few months.
http://phpdeveloper.org/news/26948
Using PHPStan to Detect Errors in Your
Magento Project
Stephan Hochdörfer posted this to the bitExpert blog about
using PHPStan, a static analyzer, to find problems in a Magen-
to project. He goes through some of the hurdles involved with
getting PHPStan to understand the Magento codebase which
led him to create a prototype extension, phpstan-magento, to
address some of them and that other Magento developers can
use.
http://phpdeveloper.org/news/26931
PDF Rendering with WKHTML and Laravel
There are many ways to render a PDF from HTML in PHP.
Gergő D. Nagy shares this post about rendering multi-page
documents with WKHTML. While his example integrates
with Laravel, it uses the Snappy package which abstracts the
interactions with the executables for WKHTML and is not
tied to the framework.
http://phpdeveloper.org/news/26858
PHP GR8
On his blog, PHP core contributor Joe Watkins dives deep into
explaining the JIT being added to PHP 8. First, he explains
what the JIT is, how it differs from opcode caches like APC
and OPCache, and why it’s needed to improve performance
further. He also describes the use cases that benefit the most
from the optimizations made by the JIT.
http://phpdeveloper.org/news/26838
How to Run PHP 8 With JIT Support Using Docker
Arkadiusz Kondas shares a more straightforward way that lets
anyone test PHP 8 and the JIT extension. Instead of compil-
ing it from source, he’s provided a Docker image with PHP 8
already compiled. His post shows how to install it, enable JIT
support, run PHP, and test performance.
http://phpdeveloper.org/news/26953