PHP Digest No. 111 - Latest News, Materials and Tools (June 12 - 25, 2017)
Fresh selection with links to news and materials. In the release: PHP 7.2.0 Alpha 2, a couple of new RFCs, materials from YiiConf and FWDays, PHP rootkit, and much more.
Enjoy reading!
News and Releases
- PHP 7.2.0 Alpha 2 - Another alpha planned before feature-freeze on July 20th. The list of innovations can be found in the last issue of the digest .
- Phalcon 3.2.0 - Overview of new features.
PHP internals
- RFC: Retry functionality - It is proposed to extend try-catch-finally with the block and keyword retry. In case of throwing the corresponding exception in the presence of retry, the try block will be repeated:
try { somethingSketchy(); } retry 3 (RecoverableException $e, $attempt) { echo "Failed doing sketchy thing on try #{$attempt}. Retrying..."; sleep(1); } catch (RecoverableException $e) { echo $e->getMessage(); }
try { somethingSketchy(); } catch (RecoverableException $e) retry; // Go to top of try block }
- RFC: Unary null coalescing operator - It is proposed to implement a unary version of the operator
??
added in PHP 7.0:if ($_POST["action"]?? === "submit") { // Form submission logic } else { // Form display logic }
Instruments
- amphp / amp 2.0.0 - A powerful asynchronous framework with a concise interface thanks to generators. A number of additional components are also available : asynchronous mysql and postgres clients, DNS resolver , HTTP / WebSocket server , and others.
- wapmorgan / ServerAvailabilityMonitor - The utility monitors servers for availability and sends error reports to e-mail. Supports http, mysql, pgsql, memcache and redis. Sent wapmorgan .
- paragonie / sapient - A library for securing the API, even when TLS is broken. Post in support.
- genkgo / mail - A library for sending mail. A good alternative to PHPMailer or Swift Mailer.
- prooph / event-store - EventStore in PHP 7.1 for implementing the Event Sourcing pattern .
- jonathantorres / construct - The tool generates a folder structure and files for a new PHP project.
- wikimedia / composer-merge-plugin - A plugin for Composer that combines several composer.json files on the fly. It is convenient for dividing a project into internal components with its dependencies.
Learning Materials
Symfony
- Symfony developers unveiled Webpack Encore , a front-end resource management tool that makes it easy to configure WebPack for projects beyond Symfony.
- Symfony 4: application structure
- Symfony 4: Testing the Symfony Flex Plugin
- Symfony Week # 546 (June 12-18, 2017)
- Symfony Week # 547 (June 19-25, 2017)
Yii
Laravel
- Virtual number and voice menu using Laravel and Twilio , as well as SMS control
- nunomaduro / laravel-zero - A microframework for console applications based on Laravel components.
- Laravel notifications
- Queues in Laravel
Zend
- Convert objects to and from arrays using zend-hydrator
- Zend Framework Week 2017-06-22
- Zend Framework Week 2017-06-15
CMS
- Drupal 8.3.4 and 7.56 with the removal of critical vulnerabilities
- Creating faster and more optimized WordPress sites
- Create your own Style plugin - Theming Views in Drupal 8
- Your interpreter is at risk - PHP rootkit - The author demonstrates how easy it is to implement a rootkit as a PHP extension and how dangerous it is.
- PHP Internals Book - Significantly replenished section of PHP 7.
- Overview of Maybe monad implementations in PHP.
- Is snapshot testing applicable in PHP? - Tutorial on using spatie / phpunit-snapshot-assertions .
- Event Sourcing Tutorial
- Simple chat on ReactPHP
- What are immutable objects for example a date
- Sharding with Doctrine
- CakePHP Release Plans
- Non-breaking spaces in test method names - Interesting idea.
- About scaling a service on AWS, Kubernetes, React, PHP, and Elixir
- We write a bot for cryptocurrency trading
- Deploying a PHP Application Using Docker
- Custom Types in PHP
- PHP fwdays '17: How it went and video reports
Thanks for attention!
If you notice a mistake or inaccuracy - please inform me in PM .
Questions and suggestions write to mail or twitter .
Send link
Quick search for all digests
← Previous release: PHP Digest No. 110
Only registered users can participate in the survey. Please come in.
Is it worth adding retry functionality in PHP?
- 50.6% Yes 191
- 31.8% No 120
- 17.5% Anyway 66