PHP Annotated Monthly – August 2017
It’s PHP Annotated Monthly time again. Fresh off a relaxing holiday, PhpStorm Developer Advocate Gary Hockin rounds up all that’s interesting and educational in the PHP world.
PHP, Testing & Development
There’s a slight tweak to the naming of this category as I’ve decided to bundle in testing topics with PHP and development rather than frameworks and libraries.
PHP 7.2 continues to roll onwards closer to release time with the release of beta 2. Thank you to everyone involved in creating this amazing new release – if you’d like to try it out then try the Testing PHP 7.2 With Docker by Colin O’Dell.
If you are working with the PHP 7.2 beta then you’ll want to upgrade to PhpStorm 2017.2.1, as it has support for PHP 7.2 built in.
- Re-Introducing PHPUnit – Getting Started with TDD in PHP
- Handling Incoming Webhooks in PHP
- Why Is a String Called a String?
- Why Using Code As DI Config is a Win!
- Don’t Call Instance Methods Statically
- Writing Tests for PHP Source (Part 5 & 6)
- Writing Tests for PHP Source (Series)
- How to Write JavaScript-Style Test Watchers in PHP
- Why Developers Should Not Code
- Domain Logic and Email Templates
- You Changed the Code, You Didn’t Refactor the Code.
- Immutability of Data
- The Theory of Constraints in PHP
- Refactoring Singleton Usage to Get Testable Code
- How to Analyze Tweet Sentiments with PHP Machine Learning
- Easily Optimize Images Using PHP (and Some Binaries)
- Install and Configure PHP 7.1 on Cloud 9 Workspaces
- Generate Documentations For PHP Projects Through Sami
- Type-Hint All The Things
- Extending ReactPHP’s Child Processes
- Writing Better Tests: Riding The Command Bus
Frameworks and Libraries
We’ve got the usual raft of Laravel articles with many looking at new features in the upcoming 5.5 release. Since I’ve started grouping these into the relevant frameworks for ease of consumption I’ve had a few people complaining that I’m not including enough of their preferred framework. I use a number of sources to compile the articles (and then read each one to check it’s suitable for inclusion), and I’m always open to adding more sources. I want to assure you there’s no bias at my end (if there was it would be wall to wall Zend Framework content), but rather the volume of content released for your framework in any month dictates how many I decide to include. Sorry if you’re framework is having a light month!
Laravel
- Speed Up PHP Application Deployments Via Laravel’s Envoyer
- How to Add Real-Time Notifications to Laravel with Pusher
- Laravel Notification System On Slack And Email
- Recap from Laracon US 2017
- Understand the Basics of Laravel Middleware
- Introducing Laravel Horizon
- Two Best Laravel Packages to Manage Roles/Permissions
- How to Register & Use Laravel Service Providers
- What Packages Do You Install on Every Laravel Application You Create?
- Achieving Geo-search with Laravel Scout and Algolia
- a Laravel Package for Role and Ability Authorization
- Re-Introducing Eloquent’s Polymorphic Relationships
- Laravel 5.5 Custom Validation Rule Objects
- Optimize Images in Laravel Apps
- A Roundup of Laravel Testing Resources and Packages
- How to Build and Test a RESTful API
- What’s New in Laravel 5.5
Zend Framework
Symfony
- The Bulletproof Event Naming For Symfony Event Dispatcher
- Why You Should Learn Symfony in 2017
- Silex is Dead (… or Not)
- Drop-dead Simple SASS Builds in Symfony Flex with Webpack Encore
- Directory Structure Updates
Other
- Highlight Image and Facebook
- Static Analysis Tools for PHP in a Single Docker Image
- Mattermost Webhooks and PHP
- Simple, Compact Time Range Creation with Period
- Should You Use a PHP Framework? Five Pros and Cons
- Craft CMS | Self-Hosted WordPress Alternatives Part 1
- Mautic Step 2 – Cron Jobs
- From Start to Finish
Community, Career, and Events
Community stalwart and all around nice guy Ben Ramsey have stepped up to the plate to get Testfest going again for 2017. PHP Testfest is an event that attempts to get more PHPT tests for the core language by roping in user groups to help get the coverage improved. You can learn more in his blog post Announcing Testfest 2017.
Zeev Suraski of Zend has been trying to collect stories about how PHP has changed your life – if you have anything of interest check out Your PHP Stories.
I really enjoyed The CFP Process for SymfonyCon and SymfonyLive Events. As a speaker and former conference organiser, it’s always very interesting to see what the processes are behind calls for papers so thanks to the Symfony events team for sharing this.
– Gary & The PhpStorm Team