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

Thijs Feryn:
Interviewing Michelle Sanver and discussing Drupal 8, Drupalcon & Michelle’s move to Z&
Oct 08, 2015 @ 12:49:04

Thijs Feryn has posted another of his video interviews with people from around the PHP community. In his latest episode he talks with Michelle Sanver about Drupal 8, DrupalCon and her recent move to Zürich.

I was at [Drupalcon in Barcelona](https://events.drupal.org/barcelona2015) last week and talked to a lot of cool people. [Michelle Sanver](http://twitter.com/michellesanver) is one of them. The interview I had with her was actually the very first one I did, [although I released some stuff earlier](http://blog.feryn.eu/2015/09/28/interviewing-kristof-de-jaeger-and-discussing-drupal-8-and-drupalcon/).

Besides the Drupal (and moving) related topics they also cover Michelle's role at Liip and with the PHPWomen organization. You can catch the episode either through the in-page video player or just the audio over on Soundcloud.

tagged: thijsferyn interview michellesanver drupal, drupalcon, video

Link: http://blog.feryn.eu/2015/10/03/interviewing-michelle-sanver-and-discussing-drupal-8-drupalcon-michelles-move-to-zurich/

SitePoint PHP Blog:
Can PuliPHP Re-Revolutionize PHP Package Development?
Oct 08, 2015 @ 11:17:56

In this recent post to the SitePoint PHP blog Nicola Pietroluongo looks at a newer tool in the PHP ecosystem that builds on to of the already widely popular Composer to expand packages outside of just the PHP code - Puli.

Puli is a new toolkit built on top of [Composer](https://getcomposer.org) that helps to manage and exchange resources like configuration files, images, CSS files, translation catalogs, and others. These are, you’ll agree, often difficult to maintain and share across projects.

The article starts with a brief overview of how it works and where it connects in with Composer, pulling in other dependencies as defined in a puli.json file. It then walks you through the creation of a simple package - installing the Puli CLI tool, building out the project file/folder structure and mapping resources/assets into the bundle. Finally they show how to install a demo package they've created, how the project maps in to the application and the pieces that make it up. The post ends with a look at the "resource discovery" feature Puli also includes making it easier to pull in configuration options without having to manually define them.

tagged: puli package development tutorial bundle asset dependency

Link: http://www.sitepoint.com/can-puliphp-re-revolutionize-php-package-development/

Laravel News:
Learn to use Model Factories in Laravel 5.1
Oct 08, 2015 @ 10:46:21

On the Laravel News site there's a tutorial helping you learn to use Model factories in your Laravel 5.1+ application. These factories make it easy to create instances of "fake" models that can be interacted with as if they were the real thing.

These have several use cases with the two biggest being–testing and database seeding. Let’s take a deeper look at this feature by building out the beginning of a little fictional app.

They provide a situation where these factories can solve a potential problem: making an application easier to test because of the (potentially) high volume of customers. He walks you through the creation of a new application and building out the models and matching migrations. Next up is the generation of the database seed values and, finally, the creation of the fake models and the code needed to connect it all together. The post ends with a look at using these factories to generate models in tests, creating them with simple data and some of the other features they offer.

tagged: model factory laravel fake tutorial testing introduction

Link: https://laravel-news.com/2015/10/learn-to-use-model-factories-in-laravel-5-1/

PHP Roundtable:
031: Checking in with PHP & HHVM internals
Oct 08, 2015 @ 09:05:03

The PHP Rountable podcast has posted their latest episode recorded live and looking at HHVM - Episode #31: Checking in with PHP & HHVM internals. In this episode host Sammy K Powers is joined by Julien Pauli, Sara Golemon, Bob Weinand and Nikita Popov.

We chatting with some PHP & HHVM internals folks to learn what's been going on in the world of internals.

You can watch this latest episode either through the in-page video player or directly over on YouTube. If you enjoy the show, be sure to subscribe to their feed for information about their latest episodes as they're released. They're recorded live too, so be sure to also follow them on Twitter to find out where and when the next one will be recorded.

tagged: phproundtable podcast video hhvm internals live recording hangouts

Link: https://www.phproundtable.com/episode/checking-in-with-php-and-hhvm-internals

PEAR Blog:
PEAR 1.10.0 with PHP7 support is out
Oct 07, 2015 @ 12:55:22

In a quick post on the PEAR blog there's an announcement about the release of a version of the tool with full PHP 7 support, version 1.10.0.

After a year of development, PEAR [version 1.10.0](http://pear.php.net/package/PEAR/download/1.10.0) has been released. It works on PHP7 and is [E_DEPRECATED](http://php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-deprecated-error) and [E_STRICT](http://php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-strict) compatible.

Apart from those big changes, a number of annoying bugs have been fixed and some features implemented – have a look at the release notes and the roadmap. Thanks to Ferenc Kovacs, Hannes Magnusson, Remi Collet and Ken Guest for their patches.

The post includes the commands you'll need to do to upgrade to this latest version, a simple two-step process of clearing the current cache and performing the upgrade. If you're installing PEAR for the first time, you can follow along with the documentation to get up and running quickly.

tagged: pear php7 support release announcement

Link: http://blog.pear.php.net/2015/10/07/pear-1-10-0/

Paragon Initiative:
How to Safely Implement Cryptography Features in Any Application
Oct 07, 2015 @ 11:51:41

The Paragon Initiative blog has posted a new article showing you how to safely implement cryptography in any PHP-based application (or really just about any application) with the help of libsodium.

Why not {Mcrypt, OpenSSL, Bouncy Castle, KeyCzar, etc.}? These cryptography libraries are really building blocks that by and large must be used, with expert care, to build the interfaces you want developers to use. In most cases, libsodium is the interface you want developers to use. [...] By default, these libraries don't provide [authenticated encryption](https://tonyarcieri.com/all-the-crypto-code-youve-ever-written-is-probably-broken). Most of them force developers to use RSA (or ECDSA but certainly not EdDSA), which is [hard to get right](http://www.daemonology.net/blog/2009-06-11-cryptographic-right-answers.html) and for which [index calculus attacks are improving each year](https://events.ccc.de/congress/2014/Fahrplan/system/attachments/2501/original/20141227.pdf).

He goes on to talk about NaCI as a possible option (libsodium is from a fork of it) but points out that NaCI isn't as easily available as libsodium to non-C/Python developers. He shares a few reasons why he thinks "libsodium is so great" and a few reasons not to use it (mostly dealing with outside limitations, not technical ones). Finally he points you in the right direction to help you get started using libsodium for PHP as a PECL extension.

tagged: cryptography feature safe guide tutorial introduction pecl extension

Link: https://paragonie.com/blog/2015/09/how-to-safely-implement-cryptography-in-any-application

SitePoint PHP Blog:
Functional Prog, Distributed DBs, JSON-Patch and More!
Oct 07, 2015 @ 10:31:27

The SitePoint PHP blog has posted a wrapup/review of the WebCampZG conference that happened in Croatia back on October 3rd & 4th (2015). It's "an annual conference for web developers, held in Zagreb on the first weekend of October".

This weekend, Chris Ward (the mobile channel editor at SitePoint) and me attended [Webcamp ZG](http://www.sitepoint.com/webcamp-zagreb-2015-a-conference-you-must-not-miss), the annual international web-oriented conference in Zagreb, Croatia. [...] The conference is a two day event, each day spearheaded by a keynote type of talk before diving into the bulk of the content. The schedules of both days contained plenty of breaks with food, drinks and snacks scattered throughout, providing for both energy and excellent socialization and networking contexts.

He covers both days of the event, talking about the sessions that were presented (including one from SitePoint-er Chris Ward) and the evening activities that followed. Despite some missteps in session content and the wifi - always a problem at tech conferences - Bruno found the event "a blast" and plans on attending in the future.

tagged: webcampzg webcampzg15 zagreb croatia conference wrapup review

Link: http://www.sitepoint.com/functional-programming-distributed-databases-json-patch-and-more/

PHP Town Hall Podcast:
Episode 44: Live From PNWPHP
Oct 07, 2015 @ 09:26:26

The PHP Town Hall podcast has posted their most recent episode, Episode #44, where they were live from the Pacific Northwest PHP Conference that happened back in September (2015).

Live from [PNWPHP ‘15](http://pnwphp.com/), Ben and Phil are joined by guests [Ben Marks](https://twitter.com/benmarks), [Yitzchok Willroth](https://twitter.com/coderabbi) and later we are joined by returning guest [Sara Golemon](https://twitter.com/SaraMG) who popped in to talk about HHVM/Hack while Phil played waiter for the rest of the episode.

Ben talks about Magento and some of his conference traveling madness, as does Yitz, who got trapped in a hotel for a whole weekend due to some interesting combination of Jewish holidays and an argument over the interational date line in New Zealand. Phil also tells us all about his NZ speeding ticket, mowing down possums like it’s Carmageddon, and makes a few terrible jokes because he’s scarily sober.

You can listen to this latest episode either through watching it on the in-page video player, using the in-page audio player or just downloading the mp3 of the show. If you enjoy it, be sure to subscribe to their feed and follow them on Twitter to get updates on when new episodes are released.

tagged: phptownhall ep44 pnwphp conference live benmarks yitzchokwillroth saragolemon

Link: http://phptownhall.com/blog/2015/09/12/episode-45-good-evening-seattle/

Community News:
Recent posts from PHP Quickfix (10.07.2015)
Oct 07, 2015 @ 08:05:02

Recent posts from the PHP Quickfix site: