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

JetBrains Blog:
PHP Annotated Monthly – September 2015
Sep 11, 2015 @ 11:19:16

On the JetBrains blog Gary Hockin has just posted the latest "PHP Annotated Monthly" edition for September 2015. These posts cover recent happenings in the PHP community, linking to more information and the people involved.

As the autumn conference season begins to ramp up, it’s time for the September edition of PHP Annotated Monthly – bringing you all the news, tips, tricks and tutorials from the PHP community.

He touches on three main topics - the PHP language itself, news about various frameworks and tools talked about over the month and happenings in the community itself. Some of the topics mentioned include:

...and lots more. Check out the full post for more topics and links to plenty of others. You can also check out some of the back issues on the Annotated Monthly archive page.

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

Link: http://blog.jetbrains.com/phpstorm/2015/09/php-annotated-monthly-september-2015/

JetBrains Blog:
PHP Annotated Monthly – July 2015
Jul 16, 2015 @ 08: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/

SitePoint PHP Blog:
PHP7 Resource Recap
Apr 30, 2015 @ 09:46:10

With all the talk about PHP7 and the features that are coming with it, it's easy to get lost in the mound of information. Thankfully, the SitePoint PHP blog is here to help. They've posted a roundup of several PHP7-related resources you can use to sort things out (or start learning about) what's to come.

PHP 7 is well on its way. RFCs are being implemented and polished, projects are being tested, libraries upgraded. Extensions are being modified, and the word is spreading. All that remains is getting the shared hosts on the upgrade bandwagon – the arguably most difficult part of improving the global state of PHP. In this article, we’ll take a look at some of the most important PHP 7 related resources and tips you should go through in preparation for the new version.

Mentions in their list include both tutorials and tools including the PHP7 Vagrant box provided by Rasmus Lerdorf and the Go PHP7 Extensions effort to update extensions to be PHP7 ready. Following this there's serveral links to other important reading about what to expect and results of testing done with this upcoming version.

tagged: php7 resource recap summary tool article tutorial

Link: http://www.sitepoint.com/php7-resource-recap/

Pascal Martin:
In favor of RFC "Scalar Type Hints"
Feb 09, 2015 @ 09:40:18

Pascal Martin has a new post today sharing some of his thoughts around one of the currently proposed PHP RFCs for < href="http://blog.pascal-martin.fr/post/in-favor-of-rfc-scalar-type-hints.html">scalar type hinting. PHP has had type hints for custom objects and some things like arrays but this proposal would add in additional ones for things like "string", "int" and "float".

The Scalar Type Hints RFC for PHP 7 has first been initialized in December 2014. It went on with version 0.2 at the middle of January 2015, after changing several major ideas, and is now in version 0.3, integrating return types, as RFC Return Type Declarations has been accepted a few days ago. [...] I’ve been following this RFC (and the previous ones) with some interest, and, as I’ve taken some time to play with it a bit last week, building PHP from the sources of the corresponding Git branch, I’ll try summarizing here why I think it is interesting. Please note this is my personal opinion.

He starts with a look at what the proposal entails around these new scalar type hints and why he thinks they're a good idea. He looks at some of the things that PHP's current weak typing allows and how it has made the language very flexible as a result. He also shows how the proposal suggests the use of the "declare" function to define a strict typing constant to essentially turn on the checking only where needed. He provides a few code snippet example including object/method handling, setting a custom error handler and which of the calls work in which typing method. He finishes the post looking at the "per-file" idea of enabling the strict typing checks and some of his confusion around the point. He also talks about return types, the directives that are proposed to enable the feature and the current status of the RFC.

tagged: scalar type hint rfc summary proposal php7 opinion overview

Link: http://blog.pascal-martin.fr/post/in-favor-of-rfc-scalar-type-hints.html

Matthew Weier O'Phinney:
PSR-7 By Example
Jan 29, 2015 @ 09:13:20

As a part of his involvement in the PHP-FIG standards group, Matthew Weier O'Phinney has been contributing to the PSR-7 proposal. This proposal defines a standardized structure for HTTP message handling. In his latest post he gets into a bit more detail on what this means for the PHP developer and how it might be implemented.

PSR-7 is shaping up nicely. I pushed some updates earlier this week, and we tagged 0.6.0 of the http-message package last week for implementors and potential users to start coding against. I'm still hearing some grumbles both of "simplify!" and "not far enough!" so I'm writing this posts to demonstrate usage of the currently published interfaces, and to illustrate both the ease of use and the completeness and robustness they offer.

He starts with a base definition of what the proposal, well, proposes around HTTP messaging, both the incoming and outgoing. He describes the basic structure of an HTTP message and what each part represents. He talks about message headers, bodies and how the current library could return that content. He then looks at requests vs responses, server-side requests and some various uses cases and more practical examples:

  • HTTP Clients
  • Middleware
  • Frameworks

With the PSR-7 standard in place, all of these different tools could have interchangeable interfaces for HTTP request/responses, easily swappable with any other implementation.

tagged: psr7 http message request response summary tool framework middleware client

Link: https://mwop.net/blog/2015-01-26-psr-7-by-example.html

Pascal Martin:
October 2014 on internals@php
Dec 01, 2014 @ 11:03:32

Pascal Martin has posted his latest summary of the discussions happening on the php.internals mailing list for the month of October 2014.

809 messages have been exchanged in October 2014 on PHP’s internals@ mailing-list — a bit more than in September. [...] First of all, PHP 5.6 has entered its normal cycle of releases, with a first maintenance version at the beginning of the month.

He includes a graph of the (monthly) number of emails over the last year and how October fits in. Topics mentioned include:

If you'd like to follow along with the discussions or are interested in getting an "inside look" at what's going on with the language, you can use either the web-based reader or subscribe to the mailing list.

tagged: phpinternals mailinglist summary oct2014 rfc discussion

Link: http://blog.pascal-martin.fr/post/php-mailing-list-internals-october-2014-en

Pascal Martin:
September 2014 on internals@php
Oct 07, 2014 @ 09:35:15

Pascal Martin has posted his latest edition of the happenings on the PHP internals mailing list for the month of September. In this latest edition he covers some of the major topics discussed this past month including:

  • the "Implicit isset() in Shorthand Ternary Operator" RFC (or, as it came to be known, the "Null Coalesce Operator" RFC)
  • An RFC for a "loop + or control structure"
  • an opinion to make PHP 7 transtyping operations more strict
  • the RFC to "Remove alternative PHP tags"
  • another RFC proposed to "Fix list() behavior inconsistency"

There's links to lots of other topics and various messages on the list including lots of other RFCs and plenty of discussion around them. Check out the full post for more great information and links around last month's php.internals happenings.

tagged: internals september mailinglist sept2014 summary rfc discussion

Link: http://blog.pascal-martin.fr/post/php-mailing-list-internals-september-2014-en

Pascal Martin:
August 2014 on internals@php
Sep 10, 2014 @ 09:44:39

Pascal Martin has posted his latest summary of topics and conversations from August on the php.internals mailing list.

I’ve been quite busy in August (and I’ve taken some holidays, during which I pretty much had no Internet access, which doesn’t help), and I haven’t been able to write my digest of internals@ for July 2014 in due time. Instead of writing it now and keeping getting late for August’s one, I’ve chosen to skip my digest of July - and to write August’s one, which you can read below.

He summarizes the around 700 messages on the list in August, including a graph showing them broken out over the days of the month. Topics up for discussion in August included:

  • the first Release Candidate of PHP 5.3.29 and the PHP 5.3.29 final release (EOL for 5.3)
  • release plans (bugfixes) for PHP 5.4
  • the release of PHP 5.6 was getting close
  • a thread wondering if they should do one last 5.x version before the release of PHP 7
  • the conversation around the RFC for moving the phpng branch into master,

Check out the full post for the details on each of these and more of the happenings on the internals list during August.

tagged: phpinternals mailing list summary aug2014 201408

Link: http://blog.pascal-martin.fr/post/php-mailing-list-internals-august-2014-en

Pascal Martin:
June 2014 on internals@php
Jul 01, 2014 @ 10:37:01

Pascal Martin has posted a summary of the PHP internals mailing list discussions for the month of June.

June 2014 came back down to a reasonable 493 messages on PHP’s internals@ mailing-list, after a month of May with more than 800 mails, including some long discussions about phpng.

He goes over several other topics discussed last month including:

  • the upcoming PHP 5.6 release
  • the end of life on PHP 5.3
  • a discussion around "pickle" (an alternative extension installer)
  • the "bare name array" RFC
  • the serialization break (that was later rectified)

...and many more. Check out the full summary for more discussions and links to several of the topics and resources involved.

tagged: phpinternals mailing list wrapup summary june2014

Link: http://blog.pascal-martin.fr/post/php-mailing-list-internals-june-2014-en

SitePoint PHP Blog:
8 Must Have PHP Quality Assurance Tools
Jun 25, 2014 @ 09:22:42

The SitePoint PHP blog has a new post today with what it calls the eight must- have PHP QA tools to ensure the overall quality of your codebase. These tools cover everything from unit testing out to ensuring code standards are met.

The [QA Tools] site is a simple list of interesting tools that can help you properly test your application, while also analyzing it and producing interesting data for you to look at. This post will be little more than a re-iteration of some of those tools with added information, use cases and advice about them – however, we’re open to expanding this list with other QA tools you throw our way that get plenty of votes in the comments below or seem interesting and/or useful enough.

Their list of eight covers a wide range of QA needs:

  • PHPUnit
  • Behat
  • vfsStream
  • PHP Mess Detector
  • PHP CodeSniffer
  • Dead Code Detector
  • Copy Paste Detector

For each there's a brief description and some of the commands you'll need to get it installed. Configuring them for your environment is a bit out of the scope of the article, though, so you'll have to pick that up on your own.

tagged: list eight qualityassurance tools install summary

Link: http://www.sitepoint.com/8-must-have-php-quality-assurance-tools/