News Feed
Sections




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

php[architect]:
May 2015 Issue Released - "Hunting for Clues"
May 04, 2015 @ 12:07:31

The May 2015 edition of php[architect] magazine has officially been released - "Hunting for Clues".

"Hunting for Clues" is the theme title for this month's issue. It focuses on automated testing and how it can help you hunt down bugs as they appear. In Michael Bodnarchuk's Codeception: Testing for Human Beings he talks about integrating automated testing in your workflow. Xander Guzman discusses two testing and mocking libraries for PHP in Integrating Mockery and Hamcrest into a Project, and Brad Bonkoski discusses leveraging Docker for Reusable Containers for Automated Testing.

Other articles include the continuation of the series for creating PHP extensions, manipulating images with Glide, Facebook's accessibility toolkit and Phpspec testing. You can pick up a copy (physical or digital) directly from the php[architect] site. They also provide one article for free if you'd like a sample of the magazine content.

0 comments voice your opinion now!
phparchitect magazine may2015 hunting clues release

Link: http://www.phparch.com/2015/05/may-2015-phparchitect-issue-launched/

SitePoint PHP Blog:
Automated Testing of Drupal 8 Modules
May 04, 2015 @ 11:06:08

The SitePoint PHP blog has a tutorial posted talking about the automated testing of Drupal 8 modules, the components of the popular PHP-based content management system. In it author Daniel Sipos shows how to create a few tests for some functionality created in previous articles.

In this article we are going to look at automated testing in Drupal 8. More specifically, we are going to write a few integration tests for some of the business logic we wrote in the previous Sitepoint articles on Drupal 8 module development. [...] But before doing that, we will talk a bit about what kinds of tests we can write in Drupal 8 and how they actually work.

He makes use of the SimpleTest unit testing tool for PHP (versus something like PHPUnit) as it has become a standard for Drupal's own testing. He talks briefly about what SimpleTest is, how it integrates with Drupal and what kinds of tests already exist. He then gets into testing his own functionality - checking route information, that the page exists, the contents of the resulting page and the addition of a custom block plugin. He shows how to create these simple tests, extending the WebTestBase class, and checking each item on the list. He also includes an example of the resulting output of the successful testing, including time to execute and the detailed results of each test.

0 comments voice your opinion now!
drupal8 automated testing tutorial simpletest introduction exists form custom plugin

Link: http://www.sitepoint.com/automated-testing-drupal-8-modules/

NetTuts.com:
Localize Your Web Application for Any Country With the Google Translate API
May 04, 2015 @ 10:56:34

In this new tutorial to the NetTuts.com site author Jeff Reifman shows you how to use the Google Translate API to translate the content in your application/website to the language of your choosing. In his examples, he shows how to integrate it with a Yii framework application.

In this tutorial, I'll walk you through my extensions to the Yii I18n extract script which do exactly this. And I'll demonstrate translating my startup application, Meeting Planner, into a handful of languages. Keep in mind, Google Translate isn't perfect and it doesn't address issues related to time and date formats and currencies. But for a quick and affordable (free) way to build default translations for your web application into 50+ languages, this is an ideal solution.

He starts with a brief introduction to the Google Translate API, the languages it supports and how to install the library he's chosen to make the connection. He then gets into the internationalization (i18n) functionality that Yii has (an introduction to that is here) and how to define the "messages" files with the different content strings. These files are defined to there's no need to call out to the API for every piece of content that loads. He shows how to extend the message extraction handling to add in the API request and parsing the result. This information is then added to the current message information files, making it simpler to add in new strings. He then integrates this into the Meeting Planner application and shows how to run the script to call the Google API and switch the language with image results in several different languages of the finished output.

0 comments voice your opinion now!
tutorial internationalization i18n googletranslate api yii framework messages

Link: http://code.tutsplus.com/tutorials/localize-your-web-application-for-any-country-with-the-google-translate-api--cms-23126

Laravel Podcast:
Episode 26 - Illuminated Tesla Micro-Services
May 04, 2015 @ 09:29:27

The Laravel Podcast has released their latest episode, #26 - Illuminated Tesla Micro-Services with host Matt Stauffer and guests Taylor Otwell and Jeffrey Way.

In this episode, the crew discusses the recent release of Lumen, micro-services, Laravel 5.1 event broadcasting, and their favorite cars.

You can listen to this latest show either using the in-page audio player, by downloading the mp3 or subscribing to their feed and getting the latest as they're released (including this latest episode).

0 comments voice your opinion now!
laravel podcast ep26 illuminated tesla microservices mattstauffer taylorotwell jeffreyway

Link: http://www.laravelpodcast.com/episodes/11108-episode-26-illuminated-tesla-micro-services

That Podcast:
Episode 18 The one where the basket dropped
May 04, 2015 @ 08:41:38

That Podcast, hosted by PHP community members Beau Simensen and Dave Marshall, has posted their latest episode - Episode 18: The one where the basket dropped ("Because if you want to make an omelette...")

Beau and Dave talk about podcast news, Star Wars, Mail and todo apps, putting all your eggs in one basket, AWS, PSR-7, splitting monolithic repositories for composer, boring technologies and recent projects and articles from the community.

Other topics mentioned in this latest episode include inbox zero, Aura.Router, Lumen and the PHP Heads community members list. You can listen to this latest episode either though the in-page audio player, by downloading the mp3 or you can subscribe to their feed and get this and other great episodes as they're released.

0 comments voice your opinion now!
thatpodcast podcast ep18 basket dropped beausimensen davemarshall

Link: https://thatpodcast.io/episodes/episode-18-the-one-where-the-basket-dropped

Community News:
Latest PEAR Releases for 05.04.2015
May 04, 2015 @ 07:08:20

Latest PEAR Releases:
0 comments voice your opinion now!



PHP Roundtable:
019 The Business of PHP
May 01, 2015 @ 11:52:23

The PHP Roundtable podcast has posted their latest episode hosted by Sammy Powers and featuring guests Michael Kimsal, Gary Hockin, Yitzchok Willroth and Matt Stauffer. In this new episode they talk about the "Business of PHP".

We discuss freelancing as a PHP developer, managing client expectations, niches, good customer service, project scope & scope creep, hourly rates vs value based pricing, and whether or not to run a SaaS.

You can catch this latest episode either through the in-page video player or by heading over to YouTube and catching the video there. If you enjoy the roundtable, be sure to subscribe to their feed.

0 comments voice your opinion now!
phproundtable podcast video ep19 business garyhockin michaelkimsal yitzchokwillroth mattstauffer

Link: https://www.phproundtable.com/episode/the-business-side-of-php-clients-customer-service-pricing-oh-my

Blackfire.io Blog:
How Blackfire leverages Docker
May 01, 2015 @ 10:08:34

The Blackfire.io PHP debugging service (from SensioLabs) has a new post to thier blog today talking about how the service makes use of Docker to build the environments for testing out their users' code.

As you may know, Blackfire was represented at the SymfonyLive conference in Paris. During this event, several people came to us and asked how we use Docker at Blackfire.io. One of our goals is to make profiling straightforward for anyone, and it means that we need to be able to easily test our product on a lot of different platforms. And Docker gives us the ability to spin up new containers in milliseconds.

Moreover, our website relies a lot on different tools, so containers can also help us reach an iso-production development environment. But Docker is only available on Linux and a big part of the Blackfire's team is using MacOS X. So how one using MacOS X can use the best of both worlds?

The post goes on to talk about their use of the boot2docker tool and how they can use it to help with the environment customization most developers want out of their testing. They show how it updates the network settings, works with file sharing, allows for multiple domain names/containers and solutions to some other common issues including no container access, no name resolution and a "bonus" section with a Skydock plugin for custom DNS naming.

0 comments voice your opinion now!
blackfireio docker example common issue boot2docker

Link: http://blog.blackfire.io/how-we-use-docker.html

Zend Developer Zone:
Review Day Camp 4 Developers Performant PHP - PSR-7 Video
May 01, 2015 @ 09:21:36

The Zend Developer Zone site has posted a review of a recent Day Camp 4 Developers event, specifically the PSR-7 presentation from Matthew Weier O'Phiney (PSR-7 is the proposed standard for HTTP request/response interfaces).

Having a keen interest in PSR-7 myself, I was delighted to see that Matthew Weier O'Phinney (the Supreme Allied Commander of Zend Framework) was going to be speaking on it himself at the latest Day Camp 4 Developers day. [...] PSR-7 deals with specifying interfaces to define HTTP messages (namely request and response messages), and in this talk Matthew introduces the concepts around HTTP messaging, and the PSR-7 implementation that models them. Matthew is the current editor of the proposed PSR-7 standard so this talk was obviously going to be given straight from the horse's mouth.

The author (Gary Hockin) walks you through the content provided in the video including:

  • an overview of the proposal
  • how other languages solve the same problem
  • how PST-7 will solve these same problems

Overall Gary found the talk well-presented and full of good content, especially for those just learning about PSR-7. You can find out more about Day Camp for developers and future events on their site.

0 comments voice your opinion now!
daycamp4developers performantphp session video psr7 matthewweierophinney review

Link: http://devzone.zend.com/5173/review-day-camp-4-developers-performant-php-psr-7-video/



Community Events

Don't see your event here?
Let us know!


interview example introduction framework composer api extension voicesoftheelephpant php7 performance community symfony2 library release opinion series laravel application podcast version

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework