Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

October 1, 2015

Hi PHP fans, and thanks for joining us this week.

In 2009, Stoyan Stefanov published a tongue-in-cheek article on the now defunct phpadvent site, titled How to Write Unmaintainable Code. He has re-posted the article this week, which contains a lot of funny points that are still valid today.

Also this week, continuing the Beginners Guide to Woo Commerce series, the latest article explains how to add product images or product galleries.

With just over a fortnight to go, and confirmed speakers such as Adam Culp and Cal Evans, the last few tickets for ZendCon are on sale now so don't miss out.

Plus the Nomad PHP team brings us a video tutorial on JSON-API, and the sanity it can bring to your PHP APIs.

Finally, the Five Minute Geek Show podcast team talk about the open source imposter syndrome, and how releasing open source code can be terrifying.

If you would like to see your own work published in, drop me a line on [email protected].
I am always on the lookout for articles, tutorials, podcasts, interviews, books etc. If it's PHP related then I want to hear about it!

Have a great weekend people,

Katie and Ade

We love our sponsors. Why not try them?


 From our sponsors:

Work with the 2.984618% We have the top 3% ultra-vetted freelance developers. It's fact, not gimmick.

(ads by LaunchBit) 


How to Write Unmaintainable PHP Code (A Tongue in Cheek Article Posted in 2009)
With the unemployment rates lately being at the levels that they are, everybody realises that job security is important. And what's the best way to keep a job but to be irreplaceable, one way or another. The simple truth is that if no one can maintain the code you write, you have a job for life. Writing unmaintainable code is a special skill that, strangely enough, seems to come quite naturally to certain developers. But for the rest of you, here are some tips and hints to get you started. at the PHPNW Hackathon
It's PHPNW time again, and that means hackathon! is one of the featured projects, an ideal project for events like this since it's easy to get started with. There will be a development platform virtual machine (that will already have been downloaded onto USB sticks so no conference wifi delay) so you can be up and running in no time.

Tutorials and Talks

Creating an AJAX based PHP Shopping Cart Part 1: Building the Cart
Many sites need to sell products online. There are many PHP e-commerce platforms but when you need something simple and easy, such platforms may be too much to adapt for your needs. Read this article to learn how to implement a shopping cart that you can easily customise, using PHP and a MySQL database,   to let your users view and pick the products they want to buy with fast user interface based on AJAX.

The Beginners Guide to WooCommerce: Adding Product Images & Galleries
In the previous articles we added different types of products in WooCommerce. Images in an online store provide a visual treat for the customers and give them a better idea about any product. So in this article I will explain how you can add product images or product galleries.

Fast Multi-language Docs with SitePoint’s RTDSphinx-PHP
This post will guide you through getting up and running with RTDSphinx-PHP, a ReadTheDocs-friendly Sphinx based PHP documentation skeleton with sane defaults, pre-installed directives, and modified styles for optimal API and prose documentation rendering in multiple languages. For an unfinished example of the documentation, see here and switch the language in the bottom left flyout panel.

Importing Large CSV Files with PHP Part 1: Import Using One Query
Importing CSV files into your application can become a problem when the file is really big, > 65,000 rows big. Each row of the file needs to be parsed, converted into an object, and then saved to a database. All of this needs to happen within a 30 second timeout window. It may sound like an impossible task, but there are actually a couple of solutions that can solve this problem.

PhpStorm: Easily Create New Laravel Project
How to create a Laravel project without Command line or Terminal, directly from PhpStorm.

An Introduction into Event Loops in PHP
If you’ve written some JS, you’re probably familiar with callbacks and DOM events. And though we have callbacks in PHP, they don’t work in quite the same way. That’s thanks to a feature called the event loop. We’re going to look at how the event loop works, and how we can use it in PHP.

Chrome Broke WordPress Admin Panel – Here’s How to Fix That
A recent update of Chrome browser broke the WordPress admin panel. It happened because of a setting related to slimming paint. Of course you can fix it by going to chrome options and then by disabling it. However, your client may not be able to do it because it’s a pretty confusing setting. To stay on the safe side, it’s nice to add this little snippet in your theme and it will make sure that everything works nicely.

Running Drupal on AWS using Zend Server
In this post I’m going to walk you through the steps for creating a new development environment consisting of a Drupal application running on AWS. I’m going to use an EC2 instance with Zend Server and RDS to handle the database part, and the AWS networking functionality to handle networking. First, I’m going to launch a Zend Server instance using the AWS marketplace, which is the easiest way to run a bulletproof, tested and scalable PHP environment on AWS, with the added ability to deploy a Drupal application and many other popular CMS in just a few minutes.

Starting Long Server PHP Scripts and Monitor their Status Part 1: The Theory
Typical HTTP requests take no more than a few seconds. By default PHP limits script execution to 30 seconds. However, sometimes you need to execute tasks that much longer. Read this article to learn how to start long tasks without making the user wait and still give progress information of a long task running on the server side.

The Beginner's Guide to Contributing to a GitHub Project
This is a guide to contributing to an open source project that uses GitHub. It's mostly based on how Zend Framework, Slim Framework and operate. However, this is a general guide so check your project's README for specifics.

Using Eloquent and Schema Builder Commands Outside Laravel
Today, I will be talking about using Laravel's Eloquent ORM, and Schema builder outside Laravel with artisan's Migration commands. I will be using Laravel's Eloquent ORM, Silex as skeleton (you can also use Pimple as dependency injection container separately), and PHPMig for handling Migrations.

Designing Domain Specific Language
When you spin up a framework such as Laravel, Symfony etc, the first thing you'll notice, is that they have their own 'feel'. But what gives an application or a framework a 'feel'? Domain specific language or 'DSL'. Domain Specific Language is almost like a syntax or a language specific to your application and ecosystem. DSL is what makes your applications code unique and more usable.

PHP 7 Quick Overview
PHP 7 is around the corner. According to the wiki time table, if everything goes well it is expected to be released in November 2015. Many of us are excited to learn the language level features and it’s performance. Here's a quick overview of what to expect.
News and Announcements

ZendCon - October 19th-22nd 2015, Las Vegas
Now in its 11th year, ZendCon is the "must attend" event and the largest gathering of the PHP community. ZendCon brings together industry thought leaders, recognised PHP experts, enterprise decision-makers, IT managers, dev and ops teams, and independent developers for four days of professional and business development. Tickets are onsale now.

International PHP Conference - October 25-29th 2015, Munich
The worlds first PHP conference, running for over ten years. With over 60 speakers and hands-on power workshops, internationally renowned experts from the PHP industry meet up with PHP users and developers from large and small companies. Tickets are on sale now.

PHP Barcelona Conference - 30-31st October 2015
The PHP Barcelona user group has announced this years PHP conference, with two days of amazing talks, with the primary objective of promoting the exchange of knowledge and use of language PHP. Tickets are on sale now.

PHP UK Conference - 18-19th February 2016, London
With over 700 delegates, speakers, and sponsors, PHP UK conference aims to deliver fantastic up-to-date content about PHP and related web technologies in a comfortable and professional setting. There are countless networking opportunities to engage with international speakers and delegates, which makes the event one you won't want to miss. The Call for Papers is now open.

Nomad PHP US - October 15th 2015 20:00 CDT
Data Structures in PHP, presented by Matthew Turland. Some problem classes require specialised data structures to optimise runtime or memory usage. This talk will cover more recent additions to the core Standard PHP Library extension from PHP 5.3 as well as several libraries and extensions in the wild that offer additional data structures. No computer science background is necessary; this tutorial will present data structures in understandable terms with practical examples.

Nomad PHP EU - October 15th 2015 20:00 CEST
Behat: Beyond the Basics, presented by Jessica Mauerhan. Join me for an in-depth look at intermediate to advanced level Behat topics. Thanks to Behat, my company was able to take an application that only functioned about 50% of the time, and had almost no forward progress due to bugs and regressions, and make it stable, tested, and are now adding features and releasing at least weekly. Learn from my years of experience.


That Podcast Episode 22: The One Where We're in London Again
Beau and Dave get together at Symfony Live London for a quick catch up and chat with Matthias Noback. Sorry about audio quality, there's a bit of mic handling and swapping going on as we're out on location!

PHP Articles and Book Reviews Report September 2015 Edition
This is the September edition of the podcast hangout recorded by Manuel Lemos and Arturs Sosins to comment on the latest outstanding PHP Articles and Book Reviews published recently. They commented on articles about creating PHP extensions in C to manipulate arrays, making better reuse of PHP code with traits, the benefits of using Git in your projects, performing sentiment analysis on text, and calculating periodical events. They also commented on books about Node.js for PHP developers, learning PHP with MySQL and JavaScript and Laravel 5 Essentails.

MageTalk Magento Podcast #61 - Bad Case of "Brontitis"
The IRCE interview series continues with Phillip sitting down with Bronto's own Ryan Murden.

Voices of the ElePHPant - Interview with Jordi Boggiano
This week Cal Evans chats with one of the main developers of the Composer project, Jordi Boggiano.

The Changelog Podcast #170: BoltDB, InfluxDB and more with Ben Johnson
Our guest this week is Ben Johnson. He joins the show to school us on BoltDB, InfluxDB, and several other key value store databases out there and why he’s so passionate about developing open source software.

The Five-Minute Geek Show Podcast: Episode 57 - Open Source Imposter Syndrome
Releasing open source code can be terrifying.

Free The Geek Podcast: Episode 6 - Building Your Brand as a Freelancer - with Gary Hockin (Part Two)
In this episode, I have, part two of, a fireside chat with, Zend Framework aficionado and Roave stalwart, Gary Hockin, about the ins and outs of building both a brand and a reputation as a freelancer.

Reading and Viewing

How JSON-API Can Bring Sanity to Your PHP APIs
APIs are everywhere: many return JSON and are RESTful or even provide hypermedia controls, but chances are they do not adhere to any standard. Essentially they all speak a different language that has to be learned for each specific provider. Wouldn’t it be great if there was a sane specification that lets you standardise your API? Something around which the community can build tools so you don’t have to reinvent the wheel over and over again? In this talk I will introduce the JSON-API specification and explain how it can benefit you on your next API project.

Interviewing Kristof De Jaeger and Discussing Drupal 8 & Drupalcon
Last week Thijs Feryn had the privilege to chat with Kristof De Jaeger (AKA @swentel on Twitter) at Drupalcon in Barcelona. He did an interview with him, and they talked about a bunch of things, all of which are somewhat Drupal related. Watch the video here.

Add Active Navigation Class to Menu Item Based on URL Using jQuery
In this jQuery tutorial, you’ll learn how to add an active class to a menu item based on the page URL using jQuery… so you can highlight that menu item. Watch the video here.

Symfony2 Essentials Paperback (by Wojciech Bancer, published 8 Sep 2015)
A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient. Build web applications with the latest features of Symfony2, focus on common tasks such as creating CRUD, creating an API, and providing a login.

Fast Track to jQuery Paperback (by Leo Schuman, published 11 Sep 2015)
Fast Track to jQuery is designed for experienced web developers, and code-savvy web designers, seeking a thorough hands-on training in the jQuery JavaScript framework, and related jQuery plugins.


Do you have a position that you would like to fill? PHP Weekly is ideal for targeting developers and the cost is only $50/week for an advert.  Please let me know if you are interested by emailing me at [email protected]

Interesting Projects, Tools and Libraries

Assetic replacement based on the gulp build tool.

Arx core is a boosted web development kit for Laravel, as well as non Laravel projects, including useful classes, starter template, starter assets.

A simple PHP authentication and authorisation library.

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

The PHP client library for the Recurly API.

PHPBU is a PHP framework that creates and encrypts backups, syncs your backups to other servers or cloud services and assists you monitor your backup creation.

A small, speedy database abstraction layer for PHP.

A primitive wrappers library for PHP.

Phake is a framework for PHP that aims to provide mock objects, test doubles and method stubs.

A PHP string manipulation library with multibyte support. Offers both OO method chaining and a procedural-style static wrapper. Tested and compatible with PHP 5.3+ and HHVM.

PHP library to get information from any web page. Compatible with any web service and has adapters to some sites.

Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.

A full-scale PHP 5.3.2+ sandbox class that utilises PHP Parser to prevent sandboxed code from running unsafe code.

A powerful and modern PHP debugging tool.

Lock is a flexible, driver based Acl package for PHP 5.4+.

A PHP desktop/mobile user agent parser with support for Laravel, based on Mobile Detect with desktop support and additional functionality.

A PHP swagger annotation and parsing library.
Please help us by clicking to our sponsor:

 From our sponsors:
Work with the 2.984618% We have the top 3% ultra-vetted freelance developers. It's fact, not gimmick.

(ads by LaunchBit) 

So, how did you like this issue?

Like us on FacebookFollow us on Twitter
We are still trying to grow our list. If you find PHP Weekly useful please tweet about us! Thanks.
Also, if you have a site or blog related to PHP then please link through to our site.

unsubscribe from this list | update subscription preferences 

Protect your PHP code with SourceGuardian 10. Free trial.


Subscribe! Enter your email address below:

NO SPAM: We absolutely hate spam. We will not share, rent, or give away your email address to anyone.You can unsubscribe at any time. Easily!

Talk to us!

If you have some news, want to share a link with us or chat with us feel free to email us.

And we also have an RSS feed that you can use.

Like us on FacebookFollow us on Twitter

Copyright ©