PHP Annotated Monthly – April 2017
As the nights get longer and the sun shows itself a little more, Gary Hockin, Developer Advocate for PhpStorm at JetBrains, rounds what’s new in PHP… it’s PHP Annotated Monthly.
PHP and Development
Another slew of new PHP versions last month, with PHP 7.1.3 and 7.0.17 released. The newest version of PHP 5 (and only supported version) is 5.6.30. I know, I go on about this every month, but if you’re running anything lower than PHP 5.6, then you’re unsupported. Even if you are running PHP 5.6 you’re only supported for security patches (and then only until the end of next year). You probably should consider upgrading.
- Is Best Practice Actually Poor Practice? Dependency Injection, Type Hinting, and Unit Testing
- Detecting Out of Sync Mocks in Mockery
- PHP and immutability – part two
- PHP traits to create test doubles
- Procedurally Generated Game Terrain with ReactJS, PHP, and Websockets
- Building maintainable PHP apps using Composer
- Using CircleCI for a PHP project
- How Compatible Are They?
- Debugging a PHP application with strace
- Creating Strictly Typed Arrays and Collections in PHP
- Explicit Global State with Context Objects
- PHP and immutability
- How to Perform Extract Service Refactoring When You Don’t Have Tests
- Getting started with workflows in PHP
- Accessing Google Page Insights in PHP
- Validating JSON against schema in PHP
- Closure Binding as an alternative to ‘use’ variables
- Google Spreadsheets and PHP
- Managing PUT requests with file uploads in psr-7 and middleware PHP applications
Frameworks and Libraries
Once again we’re having Laravel (and Zend Framework) heavy, and that’s not by design. I try to use public RSS services to aggregate articles from multiple sources, including PHP Weekly and PHP Developer, but it’s time-consuming and difficult to collate all the links I think are interesting enough to the entire community to include here. If I’ve missed your framework or library article, I’m sorry, but I just didn’t think they would fit in an article that targets the entire PHP community.
Thanks to Alexander Makarov for pointing me in the direction of some Yii content – get in touch if you’d like to do the same for your framework of choice.
Zend Framework
- Announcing Expressive 2.0
- Using Configuration-Driven Routes in Expressive
- Using Anonymous Classes to Write Middleware
- Handling OPTIONS and HEAD Requests with Expressive
- My thoughts after migrating some projects to Zend Expressive 2
- Error Handling in Expressive
- Nested Middleware in Expressive
- Migrating to Expressive 2.0
Laravel
- Laravel Forge PHP SDK
- How Can I Use Laravel Envoyer or Deployer with SemaphoreCI?
- Utilizing Laravel’s Cache with Query Params
- How to Use Queue in Laravel 5.4 For Email VerificationHow to set up your Laravel application for zero-downtime (Envoyer/Capistrano) deploys
- My Laravel Package Building Workflow
- Authentication using Laravel Passport
- Removing all Vue dependencies from Laravel
- Get Started Running Laravel in a Docker Container
Symfony
- Monolith vs Micro
- Compose your Applications
- Loading fixtures for a Symfony app in Behat tests
- The Symfony Trademark
Yii
- Running Cron Services
- Yii2 PhpStorm plugin was updated
- Which Yii 2 project template to choose, basic or advanced?
Other
- How WordPress makes HTTP requests
- A Package for Snapshot Testing in PHPUnit
- Creating Friends to Follow
- Working With PHPUnit and PhpStorm
- Sculpin and Docker
- Keep PhpStorm metadata away from project sources
- Continuous Deployment with Semaphore CI
- Introducing WP Image Processing Queue – On-the-Fly Image Processing Done Right
- Why is Doctrine Dying
Community, Career, and Events
It was sad to see the conversation in and around the Drupal community for all the wrong reasons in the last few weeks. While it’s not the platform to vent my opinion, I sincerely hope that the friction between the Drupal leadership and one of its long-time community leaders can be solved.
- Accepting Adam’s TDD Challenge
- Laracon Online 2017 Recap
- Q&A With The Speakers From Laracon Online 2017
- How I Got From 0 to 1 000 Stars on GitHub in Three Months With My Open Source Side Project
- What Conference Organizers Wish Speakers Knew
Lots of conferences have open CFP at the moment including the fantastic Pacific Northwest PHP, and lots of places are selling tickets, including my favorite conference (and not just because I’m an organizer) PHP South Coast.
We hope you have an excellent April, and we’ll speak to you all again soon.
If you are not subscribed yet, don’t forget: you can now get PHP Annotated Monthly delivered to your inbox, so you’ll never miss the monthly roundup again. Sign up here and get next month’s PHP Annotated Monthly delivered right to you.
– Gary & The PhpStorm Team