sticker

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

December 13, 2018


Here we are again PHP fans with your latest edition of phpweekly.com.

This week saw the release of PHP 7.3.0, available immediately and bringing numerous improvements and new features to the PHP 7 series.

We also have a brief guide on how to install PHP 7.3.

The php.net team announced several other releases - PHP 5.6.39, PHP 7.2.13, PHP 7.1.25 and 7.0.33, all available now.

Plus the 6th PHPKonf will take place in Istanbul next May. Tickets are already on sale and the Call for Papers is open now until the end of January.

And finally, the search for the next Drupal Association Executive Director is under way. Check out the position profile if you feel you could be a good candidate.

Enjoy your read folks and remember, all comments and recommendations are gratefully accepted.

Cheers
Ade and Katie

Please help us by clicking to our sponsor:

encrypt php scripts
Protect your PHP Code
Why not try SourceGuardian 11. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.
 

Articles

The Definitive PHP 5.6, 7.0, 7.1, 7.2 & 7.3 Benchmarks (2019)
Each year we release our in-depth performance benchmarks across various platforms to see how different versions of PHP stack up against each other. This time we again went all out and benchmarked five different PHP versions across 16 different platforms/configurations, as well as testing some popular ecommerce solutions. We’ll show you today how PHP 7.3 knocks the socks off of everything we put it against!

Don't Learn to Code
Do you know each letter in S.O.L.I.D. means? Do you know commonly used design patterns? Do you know the most popular PHP frameworks? Do know what cyclomatic complexity is?  Don't learn to code. Learn how to think.

The Ultimate PHP Security Checklist
Damn, but security is hard. It’s not always obvious what needs doing, and the payoffs of good security are at best obscure. Who is surprised when it falls off our priority lists? This security checklist aims to give developers a list of PHP security best practices they can follow to help improve the security of their code.

7 Easy Tips to Create Better WordPress Themes
Developing a WordPress theme is a complex task. We need to create a system which can handle a lot of content in a well-styled manner in any situation. We have to meet coding standards, and we have to support a bunch of plugins. The tasks sometimes are infinite. Lately, I am developing a more straightforward WP theme (named Alpha) to submit into the official theme repository. So I have some wisdom to share with you if you are interested in making better WordPress themes!

Is PHP a Scripting or a Programming Language?
When it comes to programming, there are two main broad categories of languages. We have programming language and scripting language. The two types are different in several aspects. One of the languages that are commonly used is Hypertext Preprocessor (PHP). So, under which category does it belong to? Is PHP a programming language or a scripting language?

Tutorials and Talks

How To Install PHP 7.3
PHP 7.3 has been released, bringing some great new features to the language such as trailing commas in function calls, throwing errors when JSON parsing fails, array_key_first() / array_key_last() functions, and much more! Here's a brief guide on how to install PHP 7.3 on Linux, Windows, and OS X.

Building a Laravel Translation Package – Handling Missing Translation Keys
In the last instalment of this series, we talked about building the frontend translation management tool. In this article, we are going to move away from the frontend and follow the process of building another backend feature.

Hosting WordPress Yourself Part 7 – Nginx Security Tweaks, WooCommerce Caching, and Auto Server Updates
In the last post of this series, I demonstrated how to configure HTTPS and HTTP/2. In this post I’m going to tie up a few loose ends and cover a number of topics that didn’t quite make the cut in previous posts.

Migrating to password_verify
I’ve recently been updating a website that was written a long time ago that has not been touched in a meaningful way in many years. In addition to the actual work I was asked to do, I took the opportunity to update the password hashing routines.

Displaying the Date and Time in the WordPress Loop
Adding the date and time to the WordPress Loop seems like a simple enough task, right? Well, yes. It can be a case of coding a simple template tag and letting WordPress do the work for you. But sometimes you can run into problems along the way. In this quick tip, I'll show you the different functions WordPress gives you for displaying the date and time and tell you which ones to use if you run into snags.

The Case for Generics in PHP
In 2016, Ben Scholzen and Rasmus Schultz published their PHP RFC: Generic Types and Functions, aka The Generics RFC. Having worked with generics in other languages, I was very grateful and thrilled to come across this RFC, as I could immediately see the tremendous benefits this would bring to the PHP ecosystem. With this said, the benefits of generics can be difficult to understand without having worked with them.

Semantic Versioning When You Change the Required Programming Language Version
Here at White October, we maintain a number of Open Source projects.  We’ve recently been discussing changing the minimum PHP version supported by some of them.  The question naturally arose as to how we change the version number when we do that.

Updating Apache, PHP and MySQL for macOS Mojave
When Mac OS X upgrades it overwrites previous configuration files. However, before doing so it will make backups. The backup files often have a suffix of previous or pre-update. Most of the time, configuring your system after updating Mac OS X is simply a matter of comparing the new and old configurations. This post will look at the differences in Apache, PHP, and MySQL between Mac OS X Sierra and macOS Mojave.

Tracking Vue Errors With Honeybadger in Laravel
I feel like Vue and Laravel were almost made to go together and I’ve been using Vue for quite a while. I’m super stoked that Honeybadger recently shipped an official Vue.js integration. Let’s walk through setting everything up so you so if your Vue app catches fire, you can get it handled!

Floats and Money
A very common and oft-repeated programmer’s wisdom is “Don’t use floats for currency”. This always made a lot of sense to me. The idea is that floats are imprecise, due to the way they are stored.

Creating Exception Types on-the-fly in Modern PHP
We pioneered a pattern for exception handling for Zend Framework back as we initially began development on version 2 around seven years ago.

How to Get PHP 7.4 Typed Properties to Your Code in Few Seconds
PHP 5.6 and 7.0 is going to be dangerous since 2019, PHP 7.1 is new baseline and PHP 7.3 is just about to be released in the end of 2018. Is this the best time to upgrade your code to PHP 7.4? Probably not. Unless you're able to compile PHP repository yourself and live on the edge of the edges. PHP 7.4 can be the smoothest upgrade you've experienced.

403 Forbidden
403 Forbidden should be used when a client is trying to do a request it’s not allowed to do for a variety of reasons. Maybe the user doesn’t have the right permissions, or maybe it’s logged in with the wrong credentials. It’s a good generic status code for anything that’s “not allowed” for a variety of reasons, and is extremely common.

Get Started With CRUD Operations in PHP MySQL Databases
In this article, we're going to explore how you could use a MySQL database to perform CRUD (create, read, update, and delete) operations with PHP. If you want to get your hands dirty with database connectivity in PHP, this article is a great starting point.
News and Announcements

PHP 7.3.0 Released
The PHP development team announces the immediate availability of PHP 7.3.0. This release marks the third feature update to the PHP 7 series. PHP 7.3.0 comes with numerous improvements and new features.
 
PHP 5.6.39 Released
The PHP development team announces the immediate availability of PHP 5.6.39. This is a security release. Several security bugs have been fixed in this release. All PHP 5.6 users are encouraged to upgrade to this version.
 
PHP 7.2.13 Released
The PHP development team announces the immediate availability of PHP 7.2.13. This is a security release. All PHP 7.2 users are encouraged to upgrade to this version.
 
PHP 7.1.25 Released
The PHP development team announces the immediate availability of PHP 7.1.25. This is a security release. All PHP 7.1 users are encouraged to upgrade to this version.
 
PHP 7.0.33 Released
The PHP development team announces the immediate availability of PHP 7.0.33. Five security-related issues were fixed in this release. All PHP 7.0 users are encouraged to upgrade to this version.

DrupalCon - April 8-12th 2019, Seattle
DrupalCon gathers a range of citizens of the Drupal ecosystem to learn, share and collaborate together. The value of the conference is in the perspectives, energy and diversity of experiences participants share. No matter who you are or where you’re from, you’re invited to participate in DrupalCon. Tickets are on sale now.

PHPKonf - May 4th 2019, Istanbul
PHPKonf should be one of the best PHP conferences where community members from around the world come together to learn and share information about the latest trends and technologies in professional PHP development. For the 6th year, we'll host some of the best speakers, awesome talk topics, latest technologies and up to date news in PHP. The Call for Papers is open and tickets are on sale now.

International PHP Conference - June 3rd-7th 2019, Berlin
The International PHP Conference is the world's first PHP conference and stands since more than a decade for top-notch pragmatic expertise in PHP and web technologies. At the IPC, internationally renowned experts from the PHP industry meet up with PHP users and developers from large and small companies. Here is the place where concepts emerge and ideas are born - the IPC signifies knowledge transfer at highest level. Tickets are on sale now.

Podcasts

Laravel News Podcast LN75: Giving Thanks, Global App Settings and OPcache
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.

Voices of the ElePHPant - Interview with Michael Moussa
Cal Evans chats with Michael Moussa about his upcoming talk at Sunshine PHP.

That Podcast Episode 56: The One Where We Talk about Astrocasts
Because Beau has been busy...

Full Stack Radio Podcast Episode 103: Steve Schoger - Design Q&A + Refactoring UI Details
In this episode, Adam and Steve Schoger answer listener questions about UI design, and share all of the details about their upcoming book and design resource Refactoring UI.

MageTalk Magento Podcast #184 - “Put on Your Hard Hat”
The guys talk about Phillip's perspective on Magento 2.3. PLUS: hosted PWA PaaS? Is that even possible? PLUS: the Return of Joe Constant!

PHP Ugly Podcast #130: Mission Implausible
The week Eric and Thomas discuss various topics including Malware vector: become an admin on dormant, widely-used open source projects.

php[podcast] Episode 15: Generics and php[world]
In this very special episode Eric Van Johnson, John Congdon, Chris Holland and Oscar Merida recorded this episode live at php[world] just last week. Share your thoughts on the topics covered and leave a comment below.

Reading and Viewing

New Short Course on File Handling in PHP
If you want to learn the ins and outs of file handling for PHP, try our new course, Practice PHP and Learn: File Handling. In just under an hour of video instruction, you'll master all the important aspects of reading, writing, creating and handling files in PHP.

WordPress 5.0 “Bebo” - Say Hello to the New Editor
We’ve made some big upgrades to the editor. Our new block-based editor is the first step toward an exciting new future with a streamlined editing experience across your site. You’ll have more flexibility with how content is displayed, whether you are building your first site, revamping your blog, or write code for a living.

Update on the Drupal Association Executive Search Process
In September of this year I was privileged to be asked to serve as the Interim Executive Director for the Drupal Association. At that time, the Drupal Association board announced the formation of a search committee, to begin the process of finding the Drupal Associations next leader in earnest. Please feel free to share this position profile with individuals you believe would be good candidates for Drupal Association leadership.

Interview With Core Contributor of Yii Framework, Alexander Makrov
Alexanader Makrov is one of the core contributors of Yii, a very famous PHP framework. He is involved with PHP-fig, a group of PHP projects. He is also an excellent conference speaker. He is a common participant of many open source projects. During the course of his career, he has worked with numerous design patterns and techniques using various programming languages.

Jobs





Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $50/week for an advert.  Please let me know if you are interested by emailing me at katie@phpweekly.com

Interesting Projects, Tools and Libraries

rollback
Ansible role to rollback scripting applications like PHP, Python, Ruby, etc. in a capistrano style.

instagram-php-scraper
This library is based on the Instagram web version. We develop it because nowadays it is hard to get an approved Instagram application. The purpose is to support every feature that the web desktop and mobile version support.

shopware
Shopware 5 is the next generation of open source e-commerce software made in Germany.

hrm
HRM is a web based HR management system that covers the needs of SMEs for managing their employees and the recruitment process. The system is built on Laravel 5.3.

contao
Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. This is a monorepo holding the official Contao 4 bundles.

db-dumper
This repo contains an easy to use class to dump a database using PHP.

json-machine
JSON Machine is a fast, efficient and easy-to-use JSON stream parser based on coroutines developed for unpredictably long JSON streams or documents.

ansible-wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli).

phpipam
phpIPAM is an open-source web IP address management application. Its goal is to provide light and simple IP address management application.

podlove-publisher
This is the podcast publishing plugin for WordPress.

tinyfilemanager
It is a simple, fast and small file manager with single php file. It is also a web code editor. It'll run either online or locally, on Linux, Windows or Mac based platforms. The only requirement is to have PHP 5.5+ available.

alicebundle
A Symfony bundle to manage fixtures with Alice and Faker. 

Please help us by clicking to our sponsor:

encrypt php scripts 
Protect your PHP Code
Why not try SourceGuardian 11. Click here to download a 14 Day Trial copy. Protect your code using Windows, Linux or Mac and run everywhere with our free Loaders.
 

So, how did you like this issue?

Like us on FacebookFollow us on Twitter
We are still trying to grow our list. If you find PHP Weekly useful please tweet about us! Thanks.
Also, if you have a site or blog related to PHP then please link through to our site.

unsubscribe from this list | update subscription preferences 
 

Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright © PHPWeekly.com