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

Master Zend Framework:
The 3-Step Guide to Downloading Files in Zend Expressive
Aug 29, 2016 @ 10:37:44

On the Master Zend Framework site there's a tutorial posted showing you how to set up file download functionality in a Zend Expressive-based application.

A common requirement of web-based applications is to upload and download files. But, out of the box, there’s no simple way to download them in Zend Expressive. This tutorial shows you how - step-by-step.

Recently, I was asked on Twitter by @dgoosens, about how to download files using Zend Expressive. The timing was pretty good, as I’d done a simple implementation in a recent Zend Expressive project. So I knocked up a quick example and he, @acelayaa, and I talked it over, making various changes and suggestions along the way.

So, In today’s tutorial, I’m going to walk through a 3-step process for downloading files when using Zend Expressive.

He breaks the process down into three parts:

    1. The Download Functionality
    1. Using the Download Method
    1. Running the Application & Downloading the File

He includes code or commands for each step, showing you exactly how to set up this simple piece of functionality. Additionally it's implemented as a (mostly) self-contained method using the Stream handler to set the required headers and body.

tagged: zendframework zendexpressive file download tutorial stream

Link: http://www.masterzendframework.com/downloading-files-in-zend-expressive/?platform=hootsuite

PHP.net:
PHP 5.6.20 & 5.5.34 Released
Apr 01, 2016 @ 09:22:01

The main PHP.net site has officially announced the release of the latest versions in the PHP 5.5.x and 5.6.x series: PHP 5.6.20 and PHP 5.5.34.

The PHP development team announces the immediate availability of PHP [5.6.20 and 5.5.34]. This is a security release. Several security bugs were fixed in this release. All PHP [5.6 and 5.5] users are encouraged to upgrade to this version.

These releases fix issues in several parts of the language including Curl handing, Fileinfo, Mbstring and ODBC. You can get these latest versions from the main downloads page or windows.php.net for the Windows binaries.

tagged: language release php56 php55 bugfix security update download

Link: http://php.net/archive/2016.php#id2016-03-31-4

PHP.net:
PHP 7.0.2 Released
Jan 07, 2016 @ 09:30:21

The PHP project has officially released the latest in the PHP 7.0.x series of releases: PHP 7.0.2:

The PHP development team announces the immediate availability of PHP 7.0.2. 31 reported bugs has been fixed, including 6 security related issues. All PHP 7.0 users are encouraged to upgrade to this version.

There's quite a few bugs fixed in this release including updates in:

  • CURL
  • Filter
  • FTP
  • GD
  • Opcache
  • Session
  • SPL

As always you can download this release from the main download page or the Windows binaries from the windows.php.net site.

tagged: language release php7 minor bugfix download

Link: http://php.net/archive/2015.php#id2016-01-07-1

PHP.net:
PHP 7.0.1 Released
Dec 17, 2015 @ 09:21:50

The latest release in the PHP 7.0.x series has been released today, the first one following the major milestone of PHP 7: PHP 7.0.1.

The PHP development team announces the immediate availability of PHP 7.0.1. Several bugs have been fixed. All PHP 7.0 users are encouraged to upgrade to this version.

This is just a bugfix release with some smaller changes that were held off until after the main PHP 7.0 release came out. Bugs were fixed in the language core, the CLI server, OCI8 functionality and many others. PHP 7 users are encouraged to upgrade to this new release. You can download it as always from either the main php.net downloads page or windows.php.net for the Windows binaries.

tagged: php7 release language bugfix php701 upgrade download

Link: http://php.net/index.php#id2015-12-17-1

Davey Shafik:
Upgrading to PHP 7
Nov 12, 2015 @ 09:19:52

As Davey Shafik mentions in this post to his site, O'Reilly has just released a "mini-eBook" he's written up to help you migrate your current codebase up to PHP 7 compatibility.

Yesterday, O’Reilly published my report on Upgrading to PHP 7. This 80-page mini-eBook is available free (and DRM free) in ePub, Mobi, and PDF formats.

Grab it today or read more details here.

The book guides you through the updates and features that come along with PHP 7 including: "deprecated features, Unicode enhancements, changes in Object-Oriented programming, and other enhancements." You'll get more details on what to change to bring your code up to the level of PHP 7 and remove deprecated features and what to replace them with. The book is free so there's no reason not to pick up a copy and find out what the PHP 7 revolution is all about.

tagged: php7 upgrade ebook oreilly published released download free

Link: https://daveyshafik.com/archives/69401-upgrading-to-php-7.html

PHP.net:
PHP 7.0.0 Alpha 1 Released
Jun 12, 2015 @ 12:50:11

The first release on the path to PHP7 has officially been released according to this new post on the main PHP.net website - PHP 7.0.0 Alpha 1.

The PHP development team announces the immediate availability of PHP 7.0.0 Alpha 1. This release marks the beginning of the PHP 7 major series. All users of PHP are encouraged to test this version carefully, and report any bugs and incompatibilities in the bug tracking system. PHP 7.0.0 Alpha 1 comes with new version of the Zend Engine with features. [...] For more information on the new features and other changes, you can read the NEWS file or the or the UPGRADING file for a complete list of upgrading notes. These files can also be found in the release archive.

As with other alpha PHP releases, you can download this preview version from the downloads page or windows.php.net/qa website for the binaries.

tagged: php7 alpha1 release version download preview news upgrading

Link: http://php.net/archive/2015.php#id2015-06-11-3

PHP.net:
PHP 5.5.17 is available
Sep 18, 2014 @ 12:27:11

The PHP development group has just released the latest in the PHP 5.5.x series today - PHP 5.5.17.

The PHP development team announces the immediate availability of PHP 5.5.17. Several bugs were fixed in this release. All PHP 5.5 users are encouraged to upgrade to this version.

Bugs fixed include updates in the core language, the COM extension, GD image handling, OpenSSL functionality and the SPL. You can download this latest release (source) from the main downloads page or Windows users can use windows.php.net. You can get the full list of changes and the bugs they relate to in the latest Changelog.

tagged: language release php55 bugfix download update

Link: http://php.net/archive/2014.php#id2014-09-18-1

Sameer Borate:
Downloading Gmail attachments in PHP – an update
Jul 29, 2014 @ 09:37:40

Sameer Borate has posted an update to a previous post of his about downloading attachments in PHP. In this new post he updates the script to remove any other dependencies other than the IMAP PHP extension.

As mentioned in the earlier post, automatically extracting attachments from Gmail can be important for reasons where you need to process the attached files periodically with a CRON job or need to process the files programmatically. Also it can be useful for automatically archiving important attachments. [The code in this post] is a simple proof-of-concept plain PHP code, devoid of any object-oriented features that extracts attachments from your Gmail account.

The example code makes a request to the Gmail IMAP servers with the given username and password, grabs the first set of emails, parses their attachments to pull them down to the local host. He also includes some searching capability to locate ones only matching certain criteria. A list of the allowed search keywords is also included. He finishes the post with a look at using READONLY mode and fetching the email headers.

tagged: attachment download gmail tutorial search

Link: http://www.codediesel.com/php/downloading-gmail-attachments-in-php-an-update/

PHP.net:
PHP 5.6.0RC1 is available
Jun 20, 2014 @ 09:09:28

On the PHP.net site a new announcement has been posted about the release of PHP 5.6.0RC1, the first release candidate in the PHP 5.6.0 series.

The PHP development team announces the immediate availability of the first release candidate of PHP 5.6. As we entered the feature freeze with beta1, this is a bugfix-only release. All users of PHP are encouraged to test this version carefully, and report any bugs in the bug tracking system.

As this is a release candidate, it is not valid for production use but any testing that can be done is appreciated. There's several new features coming in PHP 5.6 including constant scalar expressions, variadic functions, argument unpacking, "use const"/"use func" and many more. Check out this page in the manual for full details and code example of each. As always, you can download this preview release from the QA downloads page or here for the Windows binaries.

tagged: php56rc1 language release candidate features download test

Link: http://www.php.net/archive/2014.php#id2014-06-19-1

Community News:
PHPUnit Announced End of Life on PEAR Installation Method
Apr 21, 2014 @ 10:29:53

There's a new addition to the GitHub wiki that's quite important for the PHPUnit users out there. Sebastian Bergmann has officially announced the end of life for the PEAR version of the installer for the popular PHPUnit tool.

Since PHPUnit 3.7, released in the fall of 2012, using the PEAR Installer was no longer the only installation method for PHPUnit. Today most users of PHPUnit prefer to use a PHP Archive (PHAR) of PHPUnit or Composer to download and install PHPUnit. Starting with PHPUnit 4.0 the PEAR package of PHPUnit was merely a distribution mechanism for the PHP Archive (PHAR) and many of PHPUnit's dependencies were no longer released as PEAR packages. Furthermore, the PEAR installation method has been removed from the documentation. We are taking the next step in retiring the PEAR installation method with today's release of PHPUnit 3.7.35 and PHPUnit 4.0.17.

Included in this end of life, they'll also be decommissioning pear.phpunit.de to happen no later than the end of 2014.

tagged: pear phpunit install method composer phar download

Link: https://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method