News Feed
Sections




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

Envato:
The Future of WordPress
July 10, 2014 @ 13:14:07

On the Envato blog there's a recent post that covers some of the future of WordPress resulting from some discussions at a recent Future of WordPress panel from the WP Think Tank.

There's one thing that we can all agree on: the future of WordPress is bright. Outside of this, the ever-passionate WordPress community is a hotbed for debates on where WordPress should go from here. With 22% of websites running on WordPress, a vibrant open-source community, amazing themes and plugins and a developer-friendly mindset, WordPress is stronger today than it has ever been. So what's next?

Their list includes changes touching just about all parts of the application including plenty of UI updates, a continued focus on backwards compatibility a shift towards plugin-driven development. This would allow new features to be installed as plugins when they're ready rather than modifying the core package. There's also some emphasis being put on making it work for "more than just blogging" and push towards more enterprise-level acceptance.

0 comments voice your opinion now!
future wordpress blogging platform enhancement architecture

Link: http://inside.envato.com/the-future-of-wordpress/

SitePoint PHP Blog:
Automate PHP with Phake - Real World Examples
July 10, 2014 @ 12:51:07

The SitePoint PHP blog has posted part two of their series looking at using Phake for automation in your applications. In this second part they take some of the basics they shared in part one and apply them in some more practical examples.

In part one, we covered the basics of Phake and demonstrated ways of executing tasks with it, covering groups, dependencies, and arguments. In this part, we'll look at some sample real world applications of Phake. Note that the following examples are largely based on things that I usually do manually that need some sort of automation.

He includes three different task examples, each with the code to make them happen (and descriptions of what it's doing):

  • Uploading Files to Server with a Phake task
  • Seeding the Database
  • Syncing Data

You can find out more about Phake on the project's GitHub page (including grouping, aborting and describing tasks).

0 comments voice your opinion now!
phake automate library tutorial part2 practical example

Link: http://www.sitepoint.com/automate-php-phake-real-world-examples/

NetTuts.com:
Refactoring Legacy Code Part 8 - Inverting Dependencies for a Clean Architecture
July 10, 2014 @ 11:04:13

NetTuts.com has posted part eight in their series looking at refactoring legacy code - Inverting Dependencies for a Clean Architecture. In this latest post they move away from just refactoring the code and start to look more at fixing the architecture of the application.

Old code. Ugly code. Complicated code. Spaghetti code. Gibberish nonsense. In two words, Legacy Code. This is a series that will help you work and deal with it. It's now time to talk about architecture and how we organize our newly found layers of code. It's time to take our application and try to map it to theoretical architectural design.

They look at the current structure of the code (well, of their refactored version) and how to apply the Dependency Inversion Principle (part of the SOLID methodology) via interfaces. The code is included for the refactor as well as tests to add to their "Golden Master" test suite to ensure continued correct functionality.

0 comments voice your opinion now!
refactor legacy code series part8 inverting dependencies

Link: http://code.tutsplus.com/tutorials/refactoring-legacy-code-part-8-inverting-dependencies-for-a-clean-architecture--cms-21659

Three Devs & A Maybe Podcast:
Laravel, Forge and Homestead with Taylor Otwell
July 10, 2014 @ 10:42:44

The Three Devs & A Maybe podcast has posted a new episode with special guest Taylor Otwell of Laravel framework fame. In this latest episode (#33) they talk with him about the framework, the Forge product and the Homestead project (a packaged VM environment ready to host Laravel applications).

This week we are very lucky to have the creator of Laravel, Taylor Otwell on the show. Starting off with his journey into the world of programming (through .NET), we move on to discuss how Laravel came to being. We then touch upon our experiences experimenting with different programming stacks, and what features of C# he would like to see introduced into PHP. Finally, we ask Taylor what resources he would recommend to someone just starting out in the industry.

Other topics mentioned in this episode include the Laracasts website, FuelPHP and PhoneGap. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. You should also consider subscribing to their feed to get the latest shows as they're released.

0 comments voice your opinion now!
threedevsandamaybe podcast ep33 taylorotwell laravel forge homestead

Link: http://threedevsandamaybe.com/posts/laravel-forge-and-homestead-with-taylor-otwell/

Matthias Noback:
A better PHP testing experience Part II Pick your test doubles wisely
July 10, 2014 @ 09:36:27

Matthias Noback has posted the second part in his look at a better PHP testing experience, focusing this time on picking test doubles wisely. Test doubles are a more general term for what most developers who test code might call a "mock".

In the introduction to this series I mentioned that testing object interactions can be really hard. Most unit testing tutorials cover this subject by introducing the PHPUnit mocking sub-framework. The word "mock" in the context of PHPUnit is given the meaning of the general concept of a "test double". In reality, a mock is a very particular kind of test double. [...] Each type of test double has its own merits and it is vital to the quality of your test suite that you know when to use which one.

He builds on the "non-assertion centric" approach he talked about in the first part and how a similar problem could be caused by the large amount of work needed to create complex mocks. He points out that having to create them in a specific way and the mocks being a bit difficult to use can make the tests fragile and easily broken. He looks at a few different kinds of test doubles (mocks, dummies, spies) with code examples for each for added clarification. He also makes two recommendations for testing instead of complex mocking: create the actual mock classes instead of just mocks and don't overuse mocking.

0 comments voice your opinion now!
testdouble mock unittest phpunit pick wisely

Link: http://php-and-symfony.matthiasnoback.nl/2014/07/test-doubles/

Community News:
Packagist Latest Releases for 07.10.2014
July 10, 2014 @ 08:08:38

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




SitePoint PHP Blog:
10 Essential Sublime Text Plugins for Full-Stack Developers
July 09, 2014 @ 12:32:33

Users of the Sublime Text 2 editor already know how flexible and useful it can be in developing their own software. SitePoint has a new post that wants to help enhance that experience even more with a list of 10 essential plugins you can use as a full-stack developer.

When I started with web development a few years ago, Vim was my first choice of text editor. It was easy to work with and I could get the basics done without much hassle. [...] In spite of the "Vim vs Emacs" debate out there, about a year ago I decided to try out a native text editor and Twitter was abuzz with one of them (no prizes for the guessing which one.) The creators of Sublime Text say it's a text editor you'll fall in love with and, having worked with it for almost a year now, I must say I completely agree with them.

Among their "top 10" list are things like:

  • Package Control
  • GitGutter
  • AllAutocomplete
  • ColorPicker
  • DocBlockr

Each item on the list comes with a link to the library, a brief description of what it has to offer and a screenshot (in most cases) of it at work.

0 comments voice your opinion now!
essential sublimetext2 plugin list fullstack developer

Link: http://www.sitepoint.com/10-essential-sublime-text-plugins-full-stack-developer/

NetTuts.com:
Running WordPress on OpenShift An Introduction
July 09, 2014 @ 11:07:47

On the NetTuts site today there's a new tutorial that wants to help you get WordPress installed on OpenShift, the platform-as-a-service offering from RedHat that includes full PHP support.

OpenShift is a very good platform for running a WordPress site. PagodaBox and AppFog fair for hosting PHP applications for free; however, PagodaBox is quite slow, and has a hard limit of 10MB of MySQL for free plan. AppFog no longer supports custom domain on their free plan. You can also run PHP on Heroku, but it's a bit on the slow, as well. OpenShift solves all of above problems: It's fast enough, offers a free custom domain, offers large disk space, and a significant amount of MySQL storage.

They start by introducing some of the features OpenShift offers and the basics of what it includes in the free plans. They then walk you through the full process to getting an account set up and creating the environment for the WordPress install:

  • Sign Up for an Account
  • Setup Your Publish Key
  • Get Your WordPress Up (includes code changes if porting an existing installation)
  • Use Your Own Domain
  • Setup phpMyAdmin

They also offer some tips post-installation to help keep things up and running (monitored), enabling remote SSH access and using SFTP to connect to the application if there's a need.

0 comments voice your opinion now!
openshift tutorial install configure wordpress paas

Link: http://code.tutsplus.com/tutorials/running-wordpress-on-openshift-an-introduction--cms-20058

Master Zend Framework:
How to view an Instagram Photo Stream in Zend Framework 2
July 09, 2014 @ 10:53:59

On the Master Zend Framework site Matthew Setter has a new tutorial showing how to pull in Instagram photo feeds in a Zend Framework 2 application via their on developer functionality.

In today's tutorial, we're going to learn how to retrieve and display an Instagram photo stream in Zend Framework 2. We're going to cover the essentials of adding the libraries we'll need to composer.json, handling authentication and then retrieving and displaying our photo stream in a controller action. We'll be doing all of this by using composer to create a new Zend Framework 2 project, based on the ZF2 Skeleton App project and then add a new controller and action which will handle the work involved.

The tutorial uses a basic skeleton application and a PHP Instagram library to make the connection to their API. He shows you how to register your application with Instagram and set up the OAuth configuration to handle the authorization process. He walks you through the creation of the controller, setup of session support and the creation of a "photosAction" to view the results of the photo feed pull. He includes a screenshot of what the end result should look like with it all up and working.

0 comments voice your opinion now!
zendframework2 tutorial instagram photo feed api

Link: http://www.masterzendframework.com/api/view-instagram-photo-stream


Community Events





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


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

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