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!

May 31, 2018

Hello and welcome to the latest @phpweeklynews.
This week the PHP development team has released PHP 7.2.6 and 7.1.18, both available immediately.
Also we take a look at Part 2 of the Building a PHP Framework series, looking in greater detail at what web frameworks are and what they do.
We have an article that looks to answer the question which is best; PHP or Node.js?
And finally, after a couple of months break the That Podcast team makes a welcome return, this week featuring Shawn McCool discussing his open source project Event Sourcery.
Have a great weekend,

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.


Is Node.js killing PHP?
In a complex world of programming languages, it is often hard to understand what you really need. In fact, it may lead to holy wars around the question which one is the best. In this article, we are going to address one of such burning arguments – PHP vs Node.js. Their comparison seems necessary, as they both act in the same field, mostly aimed at the web development. Moreover, they are both open source platforms and are often applied for the same web solutions. So, let us see the battle of Node.js vs PHP and define the winner!

What I Make of Adobe’s Magento Acquisition
When Adobe announced that they were going to buy Magento it was with a little bit of envy that I heard the news. During my time at Zend I did a lot of work with the folks at Adobe and I can truly say that it was one of the highlights of my time at Zend.

Invest in Promote Drupal. Get A Special Bonus
The Promote Drupal Initiative is your opportunity to make Drupal - and your business - known and loved by new decision makers. Donate to the Promote Drupal Fund today. Help us help you grow your business. Together, let's show the world just how amazing Drupal is for organisations.

The 52 Best Tools for Freelancers to Scale a Business
People choose to freelance for a number of reasons—but most often, it is because they desire freedom. But, freelancing is not all rainbows and smiles. Check out these tools to make your job easier.

Tutorials and Talks

How I Built The LaravelQuiz Chatbot With BotMan and Laravel
Ever wondered how well you know your favourite PHP framework Laravel? Give the LaravelQuiz Chatbot a try, and you will find out. This article is a step by step guide on how I created this chatbot with BotMan and Laravel.
How to Test Private Services in Symfony
Two versions of Symfony are affected by this dissonance between services and tests. Do you use Symfony 3.4 or 4.0? Do you want to test your services, but struggle to get them in a clean way? Today we look at possible solutions.
A Package That Makes Event Sourcing in Laravel a Breeze
In most applications you store the state of the application in the database. If something needs to be changed you simply update values in a table. When using event sourcing you'll take a different approach. All changes to application state are stored as a series of events. The key benefit here is that you now have a history of your database.
Adding an Auto-Generated Sitemap to Your Jigsaw-based Static Site
I love Tighten's static site generator, Jigsaw. I've tried a few other static site generators, and (of course, I'm biased) I think Jigsaw has the best combination of power and simplicity. Plus, it feels like I'm writing Laravel code - because, essentially, I am.
Simple Horizontal Scrolling Menu in Just CSS
I recently visited a site with a horizontally scrolling sub-menu (pictured below) which I really liked. Because of the stigma of horizontal scrolling on desktop fostered from the non-responsive days, I often immediately dismiss it as bad practice but actually I found this pattern to be very usable on my phone.
Scheduling MySQL Backups with Laravel
You can export your whole database by running one line in your command line. It’s accessible and useful. But it’s a bit wiser to you automate the entire process. Let’s see how!
When and Where to Determine the ID of an Entity
This is a question that always pops up during my workshops: when and where to determine the ID of an entity? There are different answers, no best answer. Well, there are two best answers, but they apply to two different situations.
An Introduction to Mongo DB
MongoDB is an open-source, document-oriented, NoSQL database program. If you’ve been involved with the traditional, relational databases for long, the idea of a document-oriented, NoSQL database might indeed sound peculiar. “How can a database not have tables?”, you might wonder. This tutorial introduces you to some of the basic concepts of MongoDB and should help you get started even if you have very limited experience with a database management system.
Understanding Design Patterns - Iterator
Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Working with Mutable and Immutable DateTime in PHP
Mutable dates can be the source of confusion and unexpected bugs in your code. My goal isn’t to tell you that DateTime is evil because it’s mutable, but to consider the tradeoffs and benefits of using mutable versus immutable DateTime objects. Either approach warrants a good test suite and an awareness of how modifier methods affect your date objects.

News and Announcements

PHP 7.2.6 Released
The PHP development team announces the immediate availability of PHP 7.2.6. This is a primarily a bugfix release which includes a memory corruption fix for EXIF. PHP 7.2 users are encouraged to upgrade to this version.

PHP 7.1.18 Released
The PHP development team announces the immediate availability of PHP 7.1.18. All PHP 7.1 users are encouraged to upgrade to this version.

Symfony 4.1.0 Released
Symfony 4.1.0 has just been released, with a list of the most important changes.

Mid-Atlantic Developer Conference - July 13-14th 2018, Baltimore
Mid-Atlantic Dev Con is a polyglot event, designed to bring together programmers from the region, regardless of their choice of platform, for two full days of learning from each other and building a stronger regional community. Tickets are on sale now.

Laracon EU - 29-31st August 2018, Amsterdam
Laracon EU is a unique international Laravel event with over 750 attendees. The conference has multiple tracks and is focusing on in-depth technical talks. Come learn about the state of the industry while networking with like-minded and diversely experienced developers. Tickets are on sale now.

ZendCon - 15-17th October 2018, Las Vegas
ZendCon & OpenEnterprise is the premier technology conference designed to teach and share practical experiences from the front lines of enterprise PHP and open source environments. Focused on solving real-world, enterprise-class problems, technical business leaders, strategists, and developers will assemble to discuss case studies and best practices around the application of PHP and open source to transform business. The Call for Papers ends TODAY, and Blind Bird tickets are on sale now.


This week Cal Evans interviews Karen Baker, founder of ShipperHQ and WebShopApps.
That Podcast Episode 50: The One Where We Talk to Shawn about Event Sourcery, CQRS, Event Sourcing and GDPR
In this episode, Dave and Beau talk to Shawn McCool about his experiences with CQRS and Event Sourcing, the GDPR, and his recently revealed open source project event sourcery. Event sourcery is a PHP CQRS/ES library with a core principle of keeping it simple, while providing some more advanced technical capabilities, like keeping personal data out of the immutable event streams.
Full Stack Radio Podcast Episode 89: Sam Selikoff - Choosing Ember.js in 2018
In this episode, Adam talks to Sam Selikoff about how Ember fits into the JS framework landscape in 2018, and why it might be the right choice for your next project.
MageTalk Magento Podcast #170 - “Level Up” Live at Imagine 2018
Phillip and Kalen recap the first day and a half of Imagine 2018, and Kalen remarks how the entire Magento community is being asked to "level up" with a call to higher standards and higher goals from Magento CEO, Mark Lavelle. Listen now!
PHP Roundtable Podcast Episode 71: Extra! Extra! PHP 7.2 Released!
The next major version of PHP is here! PHP 7.2 comes with a nice set of upgrades, performance enhancements, and a brand new crypto library right out of the box. We discuss some of the features and breaking changes that we should be aware of before upgrading to PHP 7.2.
Laravel News Podcast LN63: The latest Laravel Releases, Editors, Package Development, and Community Packages
Jake and Michael discuss all the latest Laravel releases, tutorials, and happenings in the community.
The Laracasts Snippets Episode 84: Basic Financial Literacy
In the United States (and surely many other countries), financial literacy is not taught in schools. You might think that basic investing and a review of compound interest would be profoundly important learning material. But according to the school board, you'd be wrong. Perhaps it's only natural then that those living in the US are deeper in debt than ever in our history.
Topics include how a “location API” allows cops to figure out where we all are in real time, and introducing Visual Studio Live Share.
Our hosts, Eric van Johnson and John Congdon review Treasure, Old & New which is the May 2018 issue of php[architect] magazine. Share your thoughts on the topics covered and leave a comment below.
Post Status Draft Podcast - The History of the Web, and WordPress’s 15th Birthday
In this episode, Brian is joined by Jay Hoffmann — the owner and curator of The History of the Web, a timeline and history of the web — and they discuss the project, as well as WordPress’s 15 year arc of history.

Reading and Viewing

What Are The WordPress PHP Coding Standards?
In this video from my course, Learn PHP for WordPress, you'll learn all about the coding standards and why they're important.
Building a PHP Framework: Part 2 – What is a Web Framework?
Part 1 of this series detailed why I have this crazy idea to build a PHP framework. In this post I’ll be discussing what web frameworks are, what they do, and give some initial ideas for Analyze.
Cloudways Interview - Success Story of Adam Stone, CEO of Freelancing Startup Speedlancer
Freelancing startup Speedlancer hires qualified freelance designers, writers, and data entry professionals that businesses could employ on a freelance basis. The startup helps businesses save time that was previously wasted on bidding and hiring freelancers so that the jobs gets done as quickly as possible. We spoke with Adam on his journey of becoming a serial entrepreneur and his breakthrough success of Speedlancer in the freelancing industry.
This article is Part 2 of my review of the book "Fifty quick ideas to improve your tests". I'll continue to share some of my personal highlights with you.


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 [email protected]

Interesting Projects, Tools and Libraries

A Hero for your ZF2, ZF3, and ZF Expressive application to log ( DB and Mail ) and handle php errors & exceptions during Mvc process/between request and response.
Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
A small set of PHP scripts that will help you in shortening your url. 
This is the official installer to start new projects based on the Symfony full-stack framework. The installer is only compatible with Symfony 2 and 3.
NukeViet CMS is multi Content Management System, the 1st open source content management system in Vietnam.
Simple library writen in PHP without framework dependancy for database version control. Supports Sqlite, MySql, Sql Server and Postgres.
PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use.
Improvements to PHP's type system in userland: generics, typed lists, tuples and structs.
An easier way to use PHPUnit with CodeIgniter 3.x.
This repo provides the most complete Phalcon Framework stubs which enables auto completion in modern IDEs.
Skosmos is a web-based tool providing services for accessing controlled vocabularies, which are used by indexers describing documents and searchers looking for suitable keywords.
Make your Laravel app comply with the crazy EU cookie law.
Shopware 5 is the next generation of open source e-commerce software made in Germany.
PHPDish is a powerful forum system written in PHP. It is based on the Symfony PHP Framework.

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 ©