Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP.net:
PHP 7.3.0alpha4 Released
Jul 19, 2018 @ 12:49:13

The official PHP site has posted an announcement of the release of the latest alpha for the upcoming PHP 7.3.0 release: PHP 7.3.0 alpha 4.

The PHP team is glad to announce the release of the fourth PHP 7.3.0 version, PHP 7.3.0alpha4. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.

This is a development release and should not be used in production. Changes in this alpha release include updates to core functionality, updates to filtering, FPM handling, mbstring and zip archive functionality. You can check out the NEWS file for a complete list of updates.

To download this latest release to try with your codebase, you can download the source from the QA downloads or get the Windows binaries from the Windows QA site. The next planned release of PHP 7.3.0 is the first beta and is set to release on August 2nd, 2018.

tagged: language release alpha php73alpha4 php73

Link: http://php.net/index.php#id2018-07-19-1

Laravel News Podcast:
Episode 65 - Jigsaws, Git tools, and Laravel development packages
Jul 19, 2018 @ 11:04:26

The Laravel News podcast, hosted by Jacob Bennett and Michael Dyrynda, has released their latest episode: Episode #65 - Jigsaws, Git tools, and Laravel development packages. In this episode Michael and Jacob also talk about:

You can listen to this latest episode either using the in-page audio player or by downloading the mp3 directly. If you enjoy the show, be sure to subscribe to their feed to get updates when new shows are released.

tagged: laravelnews podcast ep65 jigsaw git laravel package

Link: https://laravel-news.com/podcast/65

Matthew Weier O'Phinney:
Notes on GraphQL
Jul 19, 2018 @ 10:19:15

In a post to his site Matthew Weier O'Phinney shares some notes about GraphQL usage that he's gathered over the last week or so of working with it.

The last week has been my first foray into GraphQL, using the GitHub GraphQL API endpoints. I now have OpinionsTM.

The promise is fantastic: query for everything you need, but nothing more. Get it all in one go. But the reality is somewhat... different.

He talks about his experience working with the results and the amount of data manipulation that was required to actually get at what he wanted. He shares the query he used, the result the API provided and what he ultimately wanted. He also mentions the less than useful documentation, issues with pagination and an update based on comments of pulling data from the GraphSQL API versus the REST API.

tagged: graphql notes api github request response issues

Link: https://mwop.net/blog/2018-07-18-graphql.html

Robert Basic:
Legacy code is 3rd party code
Jul 19, 2018 @ 09:43:50

In a post to his site Robert Basic makes an interesting suggestion about older codebases (legacy code) and how they should be handled. He suggests treating legacy code like 3rd party code.

Within the TDD community there’s an advice saying that we shouldn’t mock types we don’t own. I believe it is good advice and do my best to follow it. [...] This hidden advice is that we should create interfaces, clients, bridges, adapters between our application and the 3rd party code we use.

[...] What if we start looking at our legacy code the same way we look at the 3rd party code? This might be difficult to do, or even counterproductive, if the legacy code is in a maintenance-only mode, where we only fix bugs and tweak bits and pieces of it. But if we are writing new code that is (re)using legacy code, I believe we should look at legacy code the same way we look at 3rd party code, at least from the perspective of the new code.

He suggests that legacy code and new code should live in different parts of the application's structure and that, in order to use the legacy code, the new code should use interfaces to it rather than using it directly. He gives an example, showing the use of a User class from the legacy code and interfaces that could be used from the new code to work with it.

tagged: legacy code 3rdparty opinion interface separation

Link: https://robertbasic.com/blog/legacy-code-is-3rd-party-code/


Symfony Blog:
SymfonyLive Berlin 2018 Call for Papers
Jul 18, 2018 @ 15:38:01

On the Symfony project blog they've posted an announcement about the opening of the SymfonyLive Berlin 2018 Call for Papers.

Berlin will see its next SymfonyLive from October 24th to 26th! This year, we are moving to a new, but familiar, venue: the Mercure MOA, where the international SymfonyCon 2016 took place.

As usual for the Berlin edition, we will have two days of workshops, and a single day conference with two tracks full of talks about Symfony and related technologies.

The call for papers is open and will end July 31st. They're looking for a wide range of topics including developer workflows, modern Javascript and, of course, Symfony features. The post also talks about what kind of speakers they're looking for and about the workshop schedule.

tagged: symfonylive berlin 2018 callforpapers conference

Link: https://symfony.com/blog/symfonylive-berlin-2018-call-for-papers

Matt Sparks:
I Want Scalar Objects in PHP
Jul 18, 2018 @ 14:16:09

Matt Sparks has an interesting post to his site sharing something he'd like to see in PHP 8 (quite a ways off in the future but still worth thinking about): scalar objects.

Recently, I read an interesting article from Andrew Carter entitled Make PHP Great Again [cheap plug: this link was included in my most recent Newsletter]. In it Andrew brought up the topic of scalar objects. If you’re not familiar with scalar objects, they represent a single value (integer, boolean, string, etc.) that you can perform operations on*.

He shares an example of what it might look like in PHP and his response to a tweet from Nikola Posa about what features they'd like to see. He then spends the remainder of the post making his case for the inclusion of scalar objects and how it can help clean up some of PHP's own naming and functional inconsistencies.

tagged: scalar object language feature opinion

Link: https://developmentmatt.com/i-want-scalar-objects-in-php/

Laravel News:
New Outer Array Functions Coming to PHP 7.3
Jul 18, 2018 @ 12:47:44

On the Laravel News site they've shown a spotlight on a new feature that's coming with the next major release of the PHP language (v7.3): outer array functions.

PHP 7.3 introduces two new array functions for working with the “outer” keys of an array. The RFC proposal included four new functions for both keys and values, but only the array key functions were accepted: array_key_first() and array_key_last().

[...] Although the outer array value functions were declined, at least new functions will be available for getting the outer keys of an array.

They then provide some code examples of this new functionality, showing how use these new functions to extract values. It also includes examples of the two functions - array_value_first and array_value_last - that were rejected from the RFC when voting happened.

tagged: array outer function php73 feature key value

Link: https://laravel-news.com/outer-array-functions-php-7-3

Community News:
Recent posts from PHP Quickfix (07.18.2018)
Jul 18, 2018 @ 08:05:02

Recent posts from the PHP Quickfix site:

tagged:

Link:

Symfony Blog:
The conference schedule for SymfonyLive London 2018 is out!
Jul 17, 2018 @ 12:49:39

On the Symfony blog there's a new post announcing the speakers for SymfonyLive London 2018 happening in late September.

We’re very pleased to announce that the conference schedule for this year’s edition of the SymfonyLive conference in London is online. Join us on September 28th for an intense conference day dedicated to Symfony, divided into 2 tracks.

Discover now all the speakers selected and the talks they will present there! We’re very excited to welcome 14 speakers at the conference.

Speakers at this year's event include:

  • Michael Cullum
  • Nicolas Grekas
  • Neal Brooks
  • Samuel Roze

Fabien Potencier, founder and project lead for Symfony, will also be there to give the opening keynote for the conference. You can find out more about the conference on the main site and pick up your tickets for either just the training days, just the session days or for a package of both.

tagged: conference symfonylive london 2018 speaker announcement

Link: https://symfony.com/blog/the-conference-schedule-for-symfonylive-london-2018-is-out