News Feed
Sections




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

SitePoint PHP Blog:
Best Practices REST API from Scratch - Implementation
July 24, 2014 @ 13:11:22

PHPMaster.com has posted the second part of their best practices in REST APIs series with this new post focusing more on the implementation part of things.

We ended the first part of this tutorial with all the basic layers of our API in place. We have our server setup, authentication system, JSON input/output, error management and a couple of dummy routes. But, most importantly, we wrote the README file that defines resources and actions. Now it's time to deal with these resources.

They move on and add more functionality for creating (POST) and updating (PUT/PATCH) contacts in the system. They also show how to list contacts and add in some search handling allowing for sorting and returning only certain data. There's also some code for pagination handling, locating a single contact record, basic caching and simple rate limiting.

0 comments voice your opinion now!
rest bestpractices api tutorial implementation contacts

Link: http://www.sitepoint.com/best-practices-rest-api-scratch-implementation/

/Dev/Hell Podcast:
Episode 48 Old as Dirt
July 24, 2014 @ 12:55:53

The /Dev/Hell podcast has released their latest episode today, number 48: Old As Dirt. In this episode hosts Chris Hartjes and Ed Finkler are joined by guest Elizabeth Smith about being "old as dirt" and mentoring other developers.

Our guest this week is Elizabeth Smith, PHP internals veteran and guru of PHP on Windows (she says "I wish every company was as good at giving back to open source as Microsoft"). We talk about being Old as Dirt in relation to a blog post Ed made last week, how to mentor up and coming developers, and the history of PHP on Windows.

They also talk about Ed's The Developer's Dystopian Future article, PHP-GTK and the PHPMentoring project. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly.

0 comments voice your opinion now!
devhell podcast ep48 old mentor elizabethsmith windows

Link: http://devhell.info/post/2014-07-11/old-as-dirt/

NetTuts.com:
Refactoring Legacy Code Part 9 - Analyzing Concerns
July 24, 2014 @ 11:27:56

The NetTuts.com site has posted part nine in their series sharing helpful hints and methods for refactoring legacy code. In this new post they continue on with their example application and look at where methods should be moved to/created and mocking in their tests.

In this tutorial, we will continue to focus on our business logic. We will evaluate if RunnerFunctions.php belongs to a class and if so, to which class? We will think about concerns and where methods belong. Finally, we will learn a little bit more about the concept of mocking.

They show how to move some of the "Runner" functions from procedural to OOP, integrating them with some of the classes and methods that already exist. Tests are also included showing how it all links together. From there they get into concerns about the placement of functionality and how that relates to the work at hand. They also use Mockery to mock out some of the needed objects in their tests for the new structure.

0 comments voice your opinion now!
refactor legacy code series part6 concerns functionality mock unittest

Link: http://code.tutsplus.com/tutorials/refactoring-legacy-code-part-9-analyzing-concerns--cms-21760

Phil Sturgeon:
The Neverending Muppet Debate of PHP 6 v PHP 7
July 24, 2014 @ 10:18:14

Phil Sturgeon has posted about something he calls the "neverending muppet debate of PHP 6 versus PHP 7. As the PHP language moves forward, the PHP 5.x series is coming to a close. The discussion as started up whether to name it "PHP 6" or "PHP 7" and both sides have their proponents.

There are a few major, important conversations happening in the PHP internals mailing list as we speak: The Facebook lot heading up a specification based off of PHP 5.6 Should phpng be moved into master to be the base of the next major PHP version How can we best go about scalar typehinting? There is also another conversation: Should it be PHP 6 or PHP 7 Wait... what?

He goes on to provide a little context, pointing out that back in 2010 PHP 6 was being slated for release as the next major version of the language (this was around the PHP 5.2 days). Unfortunately, it stalled out and some of what was planned went into PHP 5.3. This didn't stop publishers from releasing books and articles about "PHP 6" though. It's already being put up for a vote with "PHP 7" pulling ahead. Phil also includes more context around the discussions, sharing the main points of each side and snippets from the RFC and mailing list thread currently ongoing.

0 comments voice your opinion now!
debate php6 php7 naming internals rfc version

Link: http://philsturgeon.uk/blog/2014/07/neverending-muppet-debate-of-php-6-v-php-7

That Podcast:
Episode 5 The One Where Everyone Is Going to London
July 24, 2014 @ 09:08:35

That Podcast, hosted by PHP community members Beau Simensen and Dave Marshall has posted their latest episode - Episode #5, "The One Where Everyone is Going to London".

Beau and Dave discuss having been selected to Symfony Live London and how they plan to bring their families with them so everyone can hang out in person for the first time. Beau discusses his other upcoming talks including Nomad PHP EU and php[world] and Dave talks a bit about his pair programming setup. Both agree that rewriting code from another project is a great way to really understand how the thing ticks.

There's a wide variety of topics discussed in this episode including:

You can listen to this latest episode either through the in-page player or by downloading it directly.

0 comments voice your opinion now!
thatpodcast ep5 london symfonylive designpatterns pairprogramming

Link: http://thatpodcast.io/episodes/episode-5-the-one-where-everyone-is-going-to-london/

Community News:
Packagist Latest Releases for 07.24.2014
July 24, 2014 @ 08:09:34

Recent releases from the Packagist:
0 comments voice your opinion now!




Master Zend Framework:
Configuring the ServiceManager with Abstract Factories
July 23, 2014 @ 13:41:10

On the Master Zend Framework site today Matthew Setter has a new post covering the configuring of the service manager using abstract factories.

One of the best features about Zend Framework 2 is undoubtedly the ServiceManager; because it makes it almost painless to configure and retrieve services in a consistent and predictable manner, anywhere in your application, at any time. [...] But the catch is, there's quite a bit to learn if you want to use it properly. As well as that, there's quite a number of ways to use it.

He walks you through some of the pros and cons of the various ways to work with the ServiceManager and where the factories fit in. He takes a bit of time to introduce the concepts behind abstract factories and how to define them in a Zend Framework v2 application. He finishes out the post with a more practical, working example using the interfaces provided to get a "MyUserTable" service.

0 comments voice your opinion now!
configure servicemanager abstract factory tutorial screencast

Link: http://www.masterzendframework.com/servicemanager/configuring-servicemanager-with-abstract-factories

Voices of the ElePHPant:
Interview with Evan Coury
July 23, 2014 @ 12:36:25

The Voices of the ElePHPant podcast is back with a new episode of its podcast. This time it's an interview with PHP community member Evan Coury.

The interview is recoded live at this year's Midwest PHP Conference. They talk about Evan's work around Zend Framework and where he sees things going with the project. He also mentions some of the work being put towards Zend Framework v3 (and if there will be many backwards compatibility breaks like there was with ZF2).

You can listen to this latest episode either through the in-page player or by downloading the mp3. If you like what you hear, consider subscribe to their feed.

0 comments voice your opinion now!
voicesoftheelephpant evancoury community interview zendframework

Link: http://voicesoftheelephpant.com/2014/07/22/interview-with-evan-coury/

Three Devs & A Maybe Podcast:
Functional Programming with Simon Holywell
July 23, 2014 @ 11:03:45

Three Devs & A Maybe podcast has released their latest episode today: Episode #35 - an interview with Simon Holywell. Simon is the author of an upcoming book about functional programming in PHP.

This week we are lucky to have Simon Holywell on the show to talk all things Functional Programming. Initially starting off with a concrete definition of Functional Programming, we move on to a brief history of the paradigm and immutability. Following this we explain recursion (and tail-recursion), along with closures and higher-order functions. From this base we are able to then talk about the different languages available to you which cater towards the functional mindset (i.e. Haskell). We then set our sights on the PHP language and what/wish it had to offer when exploring the functional paradigm. Finally, we mention his upcoming book, along with experiences presenting at user-group meet-ups.

Topics mentioned in this episode include:

You can listen to this latest episode either through the in-page player or by downloading the mp3 directly.

0 comments voice your opinion now!
threedevsandamaybe podcast ep35 simonholywell functional php

Link: http://threedevsandamaybe.com/posts/functional-programming-with-simon-holywell/


Community Events





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


community threedevsandamaybe code configure interview release list install introduction series symfony2 language unittest framework opinion laravel testing podcast refactor developer

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