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

Hackernoon.com:
PHP is dead…Viva le PHP!
Nov 12, 2018 @ 11:04:25

In a recent post to the Hackernoon site, Sergii Shanin shares his take on the "PHP is dead" conversations and posts out there with the expected "Viva le PHP!" (long live PHP!) following it.

The fracas over Gutenberg and WordPress is the latest installment in the death of PHP. Take a deep breath everybody. Let’s ignore the trolls and take a look at what Mark Twain, Fidel Castro and PHP have in common?—?and more to the point, why PHP is still a reasonable choice for startups and small businesses.

t looks like ‘PHP is dead’ blog posts started cropping up in 2011 (let me know if you find older ones). If you search around Medium and the coding bootcamps that are popping up like mushrooms, the only common denominator is that everyone hates on PHP or simply ignores it. Apparently, it’s impossible to code in PHP with an oiled beard and ironic t-shirt while drinking overpriced coffee.

He shares two of the most wide-spread myths about PHP - that it's slow and that it can't scale - and dispels them. He then goes through some types projects where PHP "shines" including content driven websites and e-commerce sites. He shares some the "business sense" around choosing PHP, the perspective senior PHP developers bring to teams and projects, and the seeming "nine lives" of PHP.

tagged: language community scale speed performance business cost opinion

Link: https://hackernoon.com/php-is-dead-viva-le-php-f5dc5eb5c9c4

PHP.net:
PHP 7.1.24, 7.2.12 & 7.3.0RC5 Released
Nov 08, 2018 @ 15:54:50

As announced on the main PHP.net site, several new versions of the language have been released including one for the upcoming PHP 7.3.x series:

The v7.1 and v7.2 releases are bugfix releases and include changes in core functionality, date handling, FTP, Tidy and XML.

The PHP 7.3.0RC5 release is the latest Release Candidate for the PHP 7.3.x series. If all goes well and no major issues come up, the next step in the release process is to officially branch the 7.3.0 release and have one more Release Candidate (6) before a GA release.

As always you can download the bugfix releases from the downloads section (or windows.php.net) and the Release Candidate from the QA site (or windows.php.net/qa). Bugs found should be reported via the PHP bug tracking system.

tagged: language release php71 php72 php73 php73rc5

Link: http://php.net/archive/2018.php

PHP.net:
PHP 7.3.0RC4 Released
Oct 29, 2018 @ 10:03:01

On the PHP.net site they've posted the announcement about the release of the latest Release Candidate for the upcoming PHP 7.3.x series: PHP 7.3.0RC4

The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC4. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.

[...] For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.

As always, testing of this preview release (not intended for use in production) is appreciated and any bugs found should be reported. The source download can be grabbed from this download page and the Windows binaries are over on the Windows QA site.

tagged: language release php73 php73rc4 preview

Link: http://php.net/index.php#id2018-10-25-1

Terry Chay:
What’s something very few people know about PHP?
Oct 24, 2018 @ 09:48:34

Terry Chay has posted the answer to an interesting question about the PHP language that asks what is something very few know about PHP. The original answer was shared on Quora but he's copied it here for more visibility.

Question: What’s something very few people know about PHP? Answer: It is mind-bogglingly popular for web development. That popularity hasn’t diminished even though conventional wisdom says otherwise…

Over a decade ago, I said about 40% of the top 100 websites use PHP. [...] Overall, almost 80% of the internet is powered by PHP, and that has held steady for years! Newer web languages such as Ruby or NodeJS have only grown at the expense of other languages such as ASP, Java, or Perl.

He also shares some about the role of WordPress in these numbers (a big chunk at 30%) and a guess at how many PHP developers there are in the world right now.

tagged: knowledge language community ecosystem popularity wordpress

Link: http://terrychay.com/article/whats-something-very-few-people-know-about-php.shtml

PHP.net:
PHP 7.1.12 and 7.2.11 Released
Oct 16, 2018 @ 09:32:08

The main PHP.net site has announced the release of two new versions of PHP in the 7.1 and 7.2 series: PHP 7.1.23 and PHP 7.2.11.

The PHP development team announces the immediate availability of PHP 7.1.23 [and 7.2.11. This is a bugfix release.

All PHP 7.1 [and 7.2] users are encouraged to upgrade to this version.

Bugs fixed in theses releases include updates to the core language, the curl extension, opcaching, reflection functionality and the XMLRPC handling. If you're interested in all of the changes and want more detail, check out their respective Changelogs. As always, you can download these latest releases from the main downloads page or from the windows.php.net site.

tagged: language release php71 php72 bugfix

Link: http://php.net/archive/2018.php#id2018-10-11-3

TutsPlus.com:
PHP Control Structures and Loops: if, else, for, foreach, while and More
Oct 15, 2018 @ 12:42:13

On the TutsPlus.com site today they're "getting back to basics" with a tutorial targeted at those just learning the PHP language. In this latest tutorial, they focus on control structures and loops such as if, else, for, foreach, while and more.

In simple terms, a control structure allows you to control the flow of code execution in your application. Generally, a program is executed sequentially, line by line, and a control structure allows you to alter that flow, usually depending on certain conditions.

Control structures are core features of the PHP language that allow your script to respond differently to different inputs or situations. This could allow your script to give different responses based on user input, file contents, or some other data.

They start with a flowchart showing the basic idea behind how flow control structures work and provide a more "real world" example of a user login. It then goes through each of the control structure types, providing a simple explanation of what it does, where it's useful and code examples of it in action.

tagged: control structure language tutorial beginner

Link: https://code.tutsplus.com/tutorials/php-control-structures-and-loops--cms-31999

PHP.net:
PHP 7.3.0RC3 Released
Oct 11, 2018 @ 11:19:17

The main PHP.net site has posted the announcement about the release of the latest Release Candidate for the upcoming PHP 7.3.0 series: PHP 7.3.0RC3.

The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC3. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.

For source downloads of PHP 7.3.0RC3 please visit the download page. Windows sources and binaries can be found on windows.php.net/qa/.

For more information on what changed and how to migrate to this new version, check out the NEWS and UPGRADING files respectively. The next release would be RC4, planned for October 25th.

tagged: language release releasecandidate php73rc3 php73

Link: http://php.net/index.php#id2018-10-11-1

PHP Roundtable Podcast:
Episode 78 - DocBlocks, Annotations, PSR-5 & The Like
Oct 10, 2018 @ 12:49:34

The PHP Roundtable podcast, hosted by PHP community member Sammy K Powers, has posted a new episode: Episode #78 - DocBlocks, Annotations, PSR-5 & The Like. In this show Sammy is joined by * Chuck Burgess*, Marco Pivetta, Rasmus Schultz, Margaret Staples and Alexey Gopachenko

We discuss DocBlocks, PSR-5, Annotations, reflection, automatic API documentation generation, and their future in PHP.

You can catch this latest episode either using the in-page video or audio player or by watching it directly on YouTube. If you enjoy the episode, be sure to subscribe to their feed and follow them on Twitter for updates when new shows are being recorded and released.

tagged: phproundtable podcast ep78 docblocks annotation psr5 future language

Link: https://www.phproundtable.com/episode/docblocks-annotations-psr-5-and-the-like

PHP.net:
PHP 7.3.0RC2 Released
Oct 02, 2018 @ 12:55:40

On the main PHP.net site, they've posted the announcement of the release of the latest Release Candidate for the upcoming PHP 7.3.0 version: PHP 7.3.0.RC2.

The PHP team is glad to announce the next PHP 7.3.0 pre-release, PHP 7.3.0RC2. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki.

[...] For more information on the new features and other changes, you can read the NEWS file, or the UPGRADING file for a complete list of upgrading notes. Internal changes are listed in the UPGRADING.INTERNALS file. These files can also be found in the release archive.

As with other preview releases you can download this version from the QA site for source packages and the Windows QA site for the Windows binaries.

tagged: version release releasecandidate language php73rc2 php73

Link: http://php.net/index.php#id2018-09-28-1

Laravel News:
Typed Properties Coming to PHP 7.4
Oct 02, 2018 @ 11:49:02

On the Laravel News site, there's a post talking about a feature that's coming in PHP 7.4: typed properties. It covers some of the basics of what they are and how they can help improve your code.

The Typed Properties 2.0 RFC was accepted with a vote of 70 in favor and one no vote. A 2/3 majority is required because typed properties is a language change. The typed property change is a PHP 7.4 proposal.

The post quotes the purpose of the feature from the RFC and provides an example of how most developers ensure property type safety now: via getters and setters. They then show a refactored version of this with typed properties, making for a much shorter class definition. They also include a code snippet showing all of the possible types you can use with the typed property functionality. They finish the post with a few of their own thoughts about string typing versus weak typing in PHP and link to the pull request that's in progress to implement the feature.

tagged: typed properties feature language php74

Link: https://laravel-news.com/php7-typed-properties