Published: Sun, 22 Jan 2017 06:46:25 -0600
Fri, 20 Jan 2017 12:52:47 -0600
The Voices of the ElePHPant podcast, hosted by Cal Evans, has posted their latest in the series of interviews with members of the PHP community. In this latest show Cal interviews Shawn Mayzes.
Cal and Sean talk about how Sean got into programming, starting from some original tinkering around to his education through to his work as a professional developer. They also talk about Sean being hard of hearing and how it has had an effect on his career. There's also a mention of the project Sean is a part of, the Larachat.co community. They finish up talking about Sean's participation in the Canadian Deaf Ice Hockey Federation as a player.
You can listen to this latest interview either using the in-page audio or video player, by downloading the mp3 or watching it directly on YouTube. If you enjoy the show, be sure to subscribe to their feed and follow them on Twitter to get the latest updates as new shows are released.
Fri, 20 Jan 2017 11:12:51 -0600
In a new post to his site Matthias Noback introduces you to a package that can help you in your Symfony-based console application, combining the Form and Console components, to make it easier to create "forms" on the CLI.
About 2 years ago I created a package that combines the power of two famous Symfony components: the Form component and the Console component. In short: this package allows you to interactively fill in a form by typing in the answers at the CLI. When I started working on it, this seemed like a pretty far-fetched idea. However, it made a lot of sense to me in terms of a
He continues on talking about the pieces he's using to connect the Form and Console components along with some custom changes he needed to make. He includes an example of the package in use, building a "form" that just asks the user to input a name. An image of the result is included as well. He ends the post with some of his other general findings during the process of creating the package and suggests a few common use cases including installation wizards that can be used in both the CLI and web interfaces.
Fri, 20 Jan 2017 10:07:57 -0600
The Master Zend Framework site has a new tutorial posted guiding you through the process of generating class factories the easy way with the help of the "FactoryCreator" tool in the Zend ServiceManager component.
If there’s one thing that’s always frustrated me when working with Zend Framework, it’s having to create factories for classes. Sure, it’s gotten easier as Zend ServiceManager’s continued to ever improve. And PhpStorm and Zend ServiceManager Grand Master, Gary Hockin, has given me a number of great tips and suggestions.
But it’s always been something I’ve felt frustrated by. Perhaps you feel the same. [...] But, what I’ve felt for some time is that they could also make it easier for us to follow these best practices too, such as with some tooling support. In the latest release of Zend ServiceManager, version 3.2.0, they have.
He goes on to talk about two tools that are included in this latest release: the ConfigDumper and FactoryCreator. He helps you get the FactoryCreator tool installed and provides a simple example of it in use, generating the factory for a "JournalService" class. He includes the results of the generation of the simple example before moving on to a more complicated example: a TableGateway object. The final example shows the generation of the factory for an "Actions" class, handling the controller processing for a simple MVC application. If you're a bit shorter on time, he's also created a screencast version of the tutorial you can view in-page or over on Vimeo.
Fri, 20 Jan 2017 09:39:32 -0600
On the Laravel News site they've posted a tutorial by Joe Ferguson showing you how to [use older versions of Homestead](https://laravel-news.com/using-older-versions-of-homestead, the box not the app, in your development environment if there's a need.
There are two parts to Homestead: the Vagrant box and the Homestead source code (Homestead app). The Homestead Vagrant box is a snapshot of a preconfigured virtual machine ready to use. [...] We use the Laravel Settler repo to build the Homestead boxes. You have to ensure the version of the Homestead Vagrant box is compatible with the version of the Homestead app you are using.
Why would you want to use a previous version? [...] While Homestead development moves forward pretty quickly, you may not be ready to move your clients from PHP 5.5. While you should have already moved your apps to PHP 7.0 for the performance gains, I understand that because Laravel 5.1 supports 5.5, developers may want to continue using that version.
He then walks you through an example, showing how to use PHP 5.5 with Homestead and what version to put for the best support. It requires a little bit of manual fiddling around but not too much. Then it's just a simple "vagrant up" to get it running. He also includes instructions on using PHP 7.0, checking out a different version of the Homestead repository and bringing up the box similar to above.
Fri, 20 Jan 2017 08:05:01 -0600
Popular posts from PHPDeveloper.org for the past week:
Thu, 19 Jan 2017 12:30:26 -0600
On the main PHP.net site they've posted the announcement today about the release of the latest version in the PHP 7.1.x series: PHP 7.1.1:
The PHP development team announces the immediate availability of PHP 7.1.1. Several bugs have been fixed. All PHP 7.1 users are encouraged to upgrade to this version.
Updated in this release are bugs in the language core, the CLI handling, namespacing with DOM and a few various security-related issues. You can find out about the rest of the changes and links to their respective bugs in the Changelog. As always, you can download this latest version from the main downloads page or windows.php.net for the Windows binaries.
Thu, 19 Jan 2017 11:55:51 -0600
The SitePoint PHP blog has a new post from author Christopher Vundi that shows the use of Laravel Cashier to create a custom site connecting to Braintree for subscription handling.
Subscriptions to services online are something extremely common – from subscribing to music streaming services to tutorial sites to access premium content.
With Laravel 5, we saw the introduction of Laravel Cashier, an official Laravel package to help developers manage Stripe’s and Braintree’s subscription billing services without writing most of the boilerplate subscription billing code. [...] In this tutorial, we will be building a dummy Courses site with Braintree subscriptions. In the process, we will learn how to use the various methods offered by Cashier.
This part of the series will help you with some of the setup steps you'll need to create the environment for your application. It also shows you how the custom code would look to allow a user of your system to subscribe to a custom plan. They walk you through all of the setup steps to follow and the code you'll need to make the subscription process work. Some screenshots are included so you can ensure you're setting things up in the correct places.
Thu, 19 Jan 2017 10:24:36 -0600
The TutsPlus.com site has posted the fourth part of their series covering the use of namespacing and autoloading in WordPress plugins. In this latest tutorial they take everything they've shared (and made) previously and put it all together into a cohesive whole plugin.
At this point, we've laid the foundation for our plugin, written the plugin, and defined and explored namespaces and autoloaders. All that's left is to apply what we've learned.
So in this tutorial, we're going to put all of the pieces together. Specifically, we're going to revisit the source code of our plugin, namespace all relevant classes, and write an autoloader so that we can remove all of our include statements.
He starts off talking about namespacing and how it relates to directory structure and the code you'll need for each of the plugin files for put them in the correct namespace. With just these in place, however, errors are thrown. This requires the setup of a custom autoloader and PHP's own spl_autoload_register handling. He includes the code for the autoloader, taking in the class name and splitting it up to locate the correct directory, making it easier to replace the loading of all plugin scripts.
Thu, 19 Jan 2017 09:34:49 -0600
The Laravel News podcast has posted their latest episode, Episode #29, where they welcome the new hosts of the show Jacob Bennett and Michael Dyrynda.
Jacob Bennett and Michael Dyrynda will be taking over as hosts of the show going forward and this episode is a farewell from Jack and Eric and introductions of Jake and Michael.
You can listen to this latest episode and its new hosts either through the in-page audio player or by downloading the mp3 directly. If you enjoy the show be sure to subscribe to their feed to get the latest on when new shows are released.
Thu, 19 Jan 2017 08:05:02 -0600
Here's what was popular in the PHP community one year ago today: