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!

October 11, 2018


Hi there PHP fans.

The Longhorn PHP Conference is returning to Texas next April, to help PHP developers level up their craft and connect with the larger PHP community. More info to follow so for now Save The Date!


Also this week we have the 2nd and final part of Test-Driving Repository Classes, looking at storing and retrieving entities. 

Cal Evans chatted to Paul M. Jones in his latest Voices of the ElePHPant podcast.

Plus we learn how to format the current date and time in PHP.

And finally, are you prepared for one of the biggest changes that WordPress has ever seen? Read all you need to know about Gutenberg.

Have a great weekend, 

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

Getting Ahead of Gutenberg
One of the biggest changes to WordPress ever is coming soon. Are you ready? How can you prepare? Why is WordPress making this change anyway? Many developers have concerns, namely around backward compatibility. Read on to learn how Gutenberg will affect your existing site.

Tweet Only Links
I’m going to try an experiment. Starting today, I’m making a commitment to tweet only links.

Why Your Choice of Software Testing Suites Matters
Fast end-to-end tests are the next big thing. The tooling has improved tremendously, and the productivity and insight gains are too good to ignore. Modern tools such as Cypress and TestCafe are becoming quite impressive and can give you confidence in your product's quality.

Tutorials and Talks

Test-Driving Repository Classes - Part 2: Storing and Retrieving Entities
In part 1 of this short series (it's going to end with this article) we covered how you can test-drive the queries in a repository class. Returning query results is only part of the job of a repository though. The other part is to store objects (entities), retrieve them using something like a save() and a getById() method, and possibly delete them.

7 Tips to Write Exceptions Everyone Will Love
Have you ever had that feeling, that you've seen that exception before and you know what it means and how to solve? What if that would be clear even for those who see it for the first time? It would save yours and their time. Exceptions are not just error state. Exceptions are the new documentation.

Formatting the Current Date and Time in PHP
This tutorial will teach you how to format the current date and time in PHP. You will also learn how to get the timestamp from a date string and how to add and subtract different dates.

Tiptap is a Rich Text Editor Framework for Vue.js
Tiptap by Philipp Kühn (@philippkuehn) is a renderless and extendable rich-text editor for Vue.js. Where React has slate.js, Tiptap aims to be that style of a framework for Vue.js.

The Five Types of Test Doubles & How to Create Them in PHPUnit
Did you know that a Mock is only one type of a test double? Most of us use the word “mock” to mean any kind of test double, but there’s actually five different types. It really can help you understand what you’re trying to accomplish with your test if you know a little bit more what you’re doing with your test doubles, so this article will explain the kinds of test doubles, when you use them, how you use them and why.

Diving into Symfony’s DependencyInjection — Part 1: First Steps With The Container
In this article, we’re going to dive into Symfony’s dependency injection component. We will use it from scratch, out of the Symfony framework, with the minimum of external dependencies. You can code along with me while reading this article, each steps will be detailed so you can easily follow.

Introducing BladeX View Models
Last week we released BladeX, a package that allows you to use Blade components using a Vue inspired syntax. I'm happy to share that v1.1 of BladeX now has support for view models. In this blogpost I'd like to walk you through the feature.

Using Request and Response Macros
We’ve already talked about the power of the collection macros. Now let’s take a look at the request and response macros as well to explore the possibilities that extending their functionality offers.

Laravel: Validate GET Parameters
In one of our Laravel 5.6 applications at work I had to validate the data of an incoming POST request to our API.

303 See Other
303 See Other can be used to tell a client that the result of the operation can be found on another location.

How to Use Sessions and Session Variables in PHP
Session handling is a key concept in PHP that enables user information to be persisted across all the pages of a website or app. In this post, you'll learn the basics of session handling in PHP.

Subscribing Users to a MailChimp List with Laravel and Guzzle
Managing users and mailing lists are not that painful nowadays. Since we have excellent services that can cover all the needs we have, we don’t need to worry about it too much. But still, let’s take a look at how can we handle user subscriptions when Laravel fires different events.

Using the Right Debugging Tools
A while ago, we updated the MongoDB PHP driver's embedded C library to a new version. The C library handles most of the connection management and other low level tasks that the PHP driver needs to successfully talk to MongoDB deployments, especially in replicated environments where servers might disappear for maintenance or hardware failures.

WordPress Deployment Part 4: Automated Deployments
In my last article, we looked at different methods of deploying a WordPress site using Git. In this article, we’re going to build on what we have looked at previously and consider some alternative hosted services that can help us with automated deployments for our WordPress site.
News and Announcements

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. Tickets are on sale now.

Forum PHP - 25-26th October 2018, Paris
The AFPP, French Users Association of PHP, presents the Forum PHP 2018, the largest annual French-speaking event for all PHP, professional and open-source communities, dedicated to the language and its ecosystem. Late Bird Tickets are on sale now.

DrupalSouth - 3rd-5th December 2018, Canberra
DrupalSouth is one of the longest running Drupal events in the Asia-Pacific region, and the key event for Drupal users in Australia and New Zealand. DrupalSouth Canberra 2018 represents the event’s 10th anniversary. This year promises to be one of the biggest yet, with up to 500 people expected at the Hotel Realm in Canberra for two days of fantastic presentations, discussions, networking and learning. The DrupalGov conference, run annually in Canberra since 2013 with about 250 attendees, will be combined with DrupalSouth this year.

ConFoo - March 13-15th 2019, Montreal
ConFoo Montreal is a multi-technology conference for web developers, with 155 presentations by popular international speakers, focused on pragmatic solutions for web developers. Great content and an amazing experience. Discounted tickets are on sale now.

Longhorn PHP Conference - 18-20th April 2019, Austin Texas
Longhorn PHP is a 3-day conference in Austin, Texas to help PHP developers level up their craft and connect with the larger PHP community. Our main goal as a conference is to equip attendees to be better developers. If you work with developers or alongside developers, we'll showcase tools and techniques to level up your ability to solve the problems you face every day. We’re currently in the early planning stages so for now Save The Date!

Oscon - July 15-18th 2018, Portland
The 21st Open Source Convention takes place next July. OSCON brings open source community, enterprise and engineering teams together to share best practices, projects that transform business and insight into what you need next. The Call for Speakers will open next month so for now Save The Date!

Podcasts

That Podcast Episode 53
The One Where Summer Got Away from Us.

PHP Ugly Podcast #122: Waving Goodbye to #WavePHP18
This month the team discusses the first ever WavePHP as well as some photos from the conference.

php[podcast] Episode 13: PHP 7.3
Fresh off of hosting WavePHP in San Diego, Eric van Johnson and John Congdon put the finishing touches on the latest episode. Share your thoughts on the topics covered and leave a comment below. 

PHP Web Development Podcast Ep #17 - Should Employed Developers Work On Side Projects?
Many developers have side projects for different reasons. Some companies really encourage it whilst others discourage it. We will be discussing how both parties can find a middle ground as opposed to having a Yes or No approach, a middle ground which will be beneficial for both parties.

Voices of the ElePHPant - Interview with Paul M. Jones
This week Cal Evans spoke with internationally recognised PHP expert Paul M. Jones, discussing his book Modernizing Legacy Applications In PHP and the recent South East PHP conference.

Reading and Viewing

A Week of Symfony #614 (1-7 October 2018)
This week, Symfony 3.4.17 and 4.1.6 maintenance versions were released. Meanwhile, we continued deprecating features in preparation for the upcoming Symfony 4.2 version, such as simple_preauth and simple_form and the "--env" and "--no-debug" console options. Lastly, next week the Symfony Loves PHP USA 2018 conference will gather the American Symfony and PHP communities in San Francisco to learn about the latest and best developments with Symfony and PHP.

Best PHP Performance Tips From Community & Influencers
I held an interactive session on social media with the community to know what they think about PHP performance and benchmark level. I developed questions on Reddit and other hosting forums to get interesting replies from the large PHP community. Meanwhile, I received answers from known developers on Twitter too.

Akaunting – Free Accounting Software Powered by Laravel
Akaunting is a free and open source accounting software built on Laravel. It handles everything from invoicing to expense tracking to accounting and runs on your infrastructure.

Drupal.org Terms of Service update - September 2018
As part of our ongoing activities to ensure a safe and welcoming environment for collaboration in Open Source, we have updated the drupal.org Terms of Service, at drupal.org/terms. This change has clarified which behaviors will be regarded as “harassment” and are, therefore, not acceptable whilst using the Drupal online services. The language is now in line with that already employed in the DrupalCon Code of Conduct.

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

browscap
This tool is used to build and maintain browscap files.

ui
Build beautiful dynamic and interactive web UI in PHP.

pufferpanel
An open source game server management panel, designed for both small networks and game server providers.

cascader
Cascader enables the creation of objects from array definitions that represent constructor parameters.

textpattern
A flexible, elegant, fast and easy-to-use content management system written in PHP.

rector
Rector is a reconstructor tool - it does instant upgrades and instant refactoring of your code. I mean, why do it manually if 80 % can Rector handle for you?

php-bitcoinrpc
Fully unit-tested Bitcoin JSON-RPC client based on GuzzleHttp.

zentaopms
Zentao is an agile(scrum) project management system/tool, Free Upgrade Forever!‚Äč

simplesamlphp
SimpleSAMLphp is an award-winning application written in native PHP that deals with authentication.

twofactor_gateway
A set of Nextcloud two-factor providers to send authentication codes via Signal, SMS and Telegram.

infection
AST based PHP mutation testing framework.

majordomo
MajorDoMo (Major Domestic Module) is an open-source DIY smarthome automation platform aimed to be used in multi-protocol and multi-services environment.

bref
Bref helps you build serverless PHP applications.

color-thief-php
Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

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