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

Community News:
PHP 7.0.0 Beta 2 Tagged
Jul 23, 2015 @ 09:45:27

According to this post on Reddit.com (and this NEWS file update) the latest beta of PHP 7.0.0, beta 2, has officially been tagged.

Fixes include updates in several different areas of the codebase:

  • Curl
  • GD (graphics handling)
  • Opcache
  • SOAP
  • the SPL (Standard PHP Library, with MutlitpleIterator)

You can find out more about all of the bugs that were fixed (including a sneak peek at what's coming in beta 3) in the NEWS file.

tagged: language php7 tag beta release version

Link: https://github.com/php/php-src/blob/master/NEWS

JetBrains Blog:
PHP Annotated Monthly – July 2015
Jul 16, 2015 @ 09:40:29

The JetBrains blog has just posted their latest edition of the "PHP Annotated Monthly" series with their review for July 2015.

Our July issue of PHP Annotated Monthly is here, bringing you updates on PHP, frameworks, tools, tips for coding, community, and more. Read this month’s digest curated by Mikhail Vink, PhpStorm Product Marketing Manager.

In this month's article there's mentions of things like:

  • New PHP versions released
  • Work on PHP7
  • Updates to various frameworks and tools
  • Being able to order an elePHPant on demand (and the funding of the woolly mammoth
  • PHP cheatsheets
  • Information about contributing back to PHP

Check out the full post for even more topics and links to other great resources.

tagged: jetbrains phpannotated monthly july2015 newsletter summary language community framework articles

Link: http://blog.jetbrains.com/phpstorm/2015/07/php-annotated-monthly-july-2015/

Amasty.com:
PHP 7 and script languages future: insights from lead Zend.com developer
Jul 13, 2015 @ 12:21:02

The Amasty.com site has posted an article featuring an interview with Dmitry Stogov about his background and the next major release of PHP - PHP 7.

PHP is used on 81.9% of websites all over the world and has celebrated its 20th birthday some time ago. We talked to the PHP 7 lead developer and Zend Technologies Chief Performance Engineer – Dmitry Stogov. He spoke about the newest trends in PHP development and the world of script languages.

He answers questions about:

  • How and why he started coding
  • Why he chose PHP and ended up at Zend
  • The work he's contributed to PHP and more specifically PHP7

This includes the work done on the PHPNG performance improvements for the language that was integrated into the main codebase. He talks about some of the testing and development hurdles they had to overcome and what the most important features are to an end user. They also talk some about the future of PHP, it's overall perception in programming communities and some of the features he finds best in modern PHP development. They end the post asking Dmitry about some of his own interests and any advice he can give to more junior developers.

tagged: dmitrystogoy interview php7 phpng performance background features language

Link: https://blog.amasty.com/php-7-and-script-languages-future-insights-from-lead-zend-com-developer/

Julien Pauli:
PHP closures
Jul 10, 2015 @ 11:54:29

Julien Pauli has posted a look at PHP's closures and how they're actually handled internal to the language.

Back in 2009, when PHP 5.3 got released, a new feature (among many others) were introduced : anonymous functions (also called lambdas or closures). The feature was very expected, as closures have proved their utility through several other languages, particularly javascript that web developers master. [...] Let's see together how Closures have been added to PHP, as usual by turning to the truth : the PHP source code.

He starts at the beginning (a good place to start) and talks about the work that needed to be done on the internals before closures could even be introduced. He walks through the changes made to object handling to make them "callable" and the addition of the "zend_closure" object type. He then gets to the part where "the magic happens" and shows how the userland closure is translated and executed. He ends the post with a look at two other topics: scoping with "$this" and the special handling that was needed for reflection and direct calls to "__invoke".

tagged: closure language functionality object callable scope reflection invoke

Link: http://jpauli.github.io/2015/07/08/php-closures.html

PHP.net:
Release of PHP 5.4.43, 5.5.27 & 5.6.11
Jul 10, 2015 @ 10:35:17

As mentioned on the main PHP.net site today, three new versions of the language have been released to address various bugfix issues: PHP versions 5.4.43, 5.5.27 and 5.6.11.

The PHP development team announces the immediate availability of [these PHP versions]. Five security-related issues in PHP were fixed in this release, including CVE-2015-3152. All PHP 5.6 users are encouraged to upgrade to this version.

One note here too - 5.5.27 is the last official bugfix release according to the release calendar for that major version. Upgrading to PHP 5.6 is encouraged (the next supported version). As always you can grab these latest downloads from the main downloads page (or windows.php.net) and see the full list of changes in the Changelog for each version.

tagged: language version release bugfix v54 v55 v56

Link: http://php.net

SitePoint Web Blog:
PHP vs Node.js Smackdown: Right of Reply
Jul 09, 2015 @ 10:53:22

in response to the previously posted Node.js vs PHP "Smackdown" article on the SitePoint Web blog, PHP blog editor Bruno Skvorc and an author from the SitePoint Javascript channel, James Hibbard, come back with their own rebuttal to some of the points made in the previous article from a more "PHP perspective."

In SitePoint's recent PHP vs Node.js Smackdown, Craig Buckler pitted these development disciplines against each other over a series of ten challenges, to determine which is the overall winner. As Craig notes in the article, these comparisons are always somewhat controversial. As a fun followup, we asked Bruno Skvorc (SitePoint's PHP editor) and James Hibbard (one of SitePoint's JavaScript editors) to provide a commentary on each of the rounds.

For each of the rounds, they start with a summary of the related findings by Craig in the first article and share comments from both Bruno and James. With his slant towards Javascript James often agrees with what the original article stated but Bruno usually disagrees or adds comments in to clarify the PHP side of the situation (from a more insider's perspective).

tagged: smackdown nodejs language comparison reply brunoskvorc jameshibbard

Link: http://www.sitepoint.com/php-vs-node-js-smackdown-right-of-reply/

SitePoint Web Blog:
SitePoint Smackdown: PHP vs Node.js
Jul 08, 2015 @ 12:09:25

The SitePoint Web blog has posted a "smackdown" comparing two popular languages, PHP and Node.js, based on several different points.

The web is ever-changing technology landscape. Server-side developers have a bewildering choice of long-standing heavy-weights such as Java, C, and Perl to newer, web-focused languages such as Ruby, Clojure and Go. It rarely matters what you choose, presuming your application works.

But how do those new to web development make an informed choice? I hope not to start a holy war, but I’m pitting two development disciplines against each other: PHP and Node.js.

He goes through ten "rounds" of evaluations on various points including how easy it is to get started, help & support options, development tools available and hosting & deployment options. In the end, it's his opinion that the winner overall (it was close) is Node.js. However, he does end with one word of advice:

My advice: assess the options and and pick a language based on your requirements. That’s far more practical than relying on ‘vs’ articles like this!
tagged: smackdown nodejs language features comparison winner

Link: http://www.sitepoint.com/sitepoint-smackdown-php-vs-node-js/

PHP Roundtable:
023: PHP's Major "Bus Factor" Problem
Jul 02, 2015 @ 09:27:16

The PHP Roundtable podcast has posted their latest episode - #23: PHP's Major "Bus Factor" Problem, hosted by Sammy Powers with guests from the PHP community: Samantha Quiñones, Davey Shafik, Chris Tankersly and Michelangelo van Dam.

Inspired by a lively Open Spaces session at php|tek 2015, we discuss how PHP's ecosystem could be threatened by a not-so-obvious bus factor and what we can all do to keep things thriving.

You can catch this latest episode either through the in-page video player or directly on YouTube. If you enjoy the show, be sure to subscribe to their feed too!

tagged: phproundtable podcast video ep23 busfactor language problem

Link: https://www.phproundtable.com/episode/how-the-bus-factor-may-negatively-impact-the-php-ecosystem

SitePoint PHP Blog:
Popular Users per Language and Region with Silex and Github
Jun 18, 2015 @ 12:53:49

The SitePoint PHP blog has a new tutorial posted showing you how to use the data the GitHub API provides to find popular users, per language, in an area. His sample example is a simple Silex framework based application and uses the KNPLabs GitHub library to interface with the API.

The data you can get through the GitHub API V3 is mostly what you can see on the GitHub web interface, except you can use the data in your application to come to interesting conclusions. That is what we are going to do in this article. [...] Now, what if there was a web service in which we could specify a location and a language (e.g. PHP) and get a sorted list of contributors to open-source? [...] In our web service, we will have one endpoint (i.e. action, URL) that shows the most popular ten creators. The most popular creators are the people in a location who have the largest number of stargazers. For this, we will retrieve each person’s repositories and add up the number of times each one has been starred.

He steps you through getting a Homestead Improved VM up and running (via Vagrant) and a basic Silex application up and running inside. He then pulls in the KNPLabs GitHub library via Composer and sets up a new client in the default route (and grabs the public user data for a user). He then shows how to change it up and use the Search API and some special queries to locate users by a given location. He adds another class, a "StarGazerCalculator", that's given the users returned, filters out the forks in the list and calculates the total "stargazer" count for the user. He does the same with the "top creators" list and sets it up as a service provider, fetches the data and returns the results as a JSON document.

tagged: popular user language region github api silex tutorial

Link: http://www.sitepoint.com/popular-users-per-language-region-silex-github/

PHP.net:
Release of PHP 5.4.42, 5.6.10 & 5.5.26
Jun 15, 2015 @ 15:04:37

The PHP.net site has announced the latest releases for all current major language versions with fixes including several security-related issues:

The PHP development team announces the immediate availability of [these versions]. Six security-related issues in PHP were fixed in this release, as well as several security issues in bundled sqlite library (CVE-2015-3414, CVE-2015-3415, CVE-2015-3416). All PHP users are encouraged to upgrade to [the latest version for their current installation].

As always, you can get these latest downloads from the main downloads site or windows.php.net for the Windows binaries. Other fixes can be found in the release related list in the Changelog.

tagged: language release security bugfix php54 php55 php56 upgrade

Link: http://php.net/