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

Rudi Theunissen:
Efficient data structures for PHP 7
Feb 09, 2016 @ 10:49:37

In this recent article over on Medium.com Rudi Theunissen looks at more efficient data structures for PHP 7 and the introduction of a library that wants to help replace some of the current functionality and dependencies on things like arrays.

PHP has one data structure to rule them all. The array is a complex, flexible, master-of-none, hybrid data structure, combining the behaviour of a list and a linked map. But we use it for everything, because PHP is pragmatic.

[...] The recent release of PHP 7 caused a lot of excitement in the PHP community. We couldn't wait to start using the new features and get a taste of the ~2x performance boost. One of the reasons why it runs that much faster is because the array was redesigned. But it’s still the same structure, “optimised for everything; optimised for nothing” with room for improvement.

He starts with a brief mention of some of the current topics around data structures - the SPL functionality, why fixing them would be difficult and, finally, introducing the library that seeks to supersede them. The remainder of the post goes through the pieces of functionality the library offers and explains how each works including videos and graphs of the performance results:

  • Collection
  • Sequence
  • Vector
  • Deque
  • Stack
  • Queue and PriorityQueue
  • Hashable
  • Map
  • Set

He also answers some of the most common questions he's gotten about the library including the level of testing, documentation for the project and why he structured certain elements and features how he did.

tagged: data structure php7 library ds spl optimized video code

Link: https://medium.com/@rtheunissen/efficient-data-structures-for-php-7-9dda7af674cd#.xg74fpxwg

Community News:
LaraChat Live, Episode #1
Feb 05, 2016 @ 10:27:11

A new Laravel-centric podcast has started up and has posted its first episode: LaraChat Live. Their first recording if from a Google Hangout of a roundtable with host Shawn Mayzes and several other community members from the LaraChat Slack channel

Larachat Live is a live round table discussion from the Larachat community. We discuss PHP and Laravel as well as various other industry related topics.

This weeks discussion (our first round table) will include introductions from community members and our meet & greet outside of Larachat.co. This weekly round table will also include our discussion on PHPMD and PHPCS.

You can watch this episode either using the in-page video player or directly on YouTube. If you enjoy the show and want to keep up with future episodes, subscribe to their YouTube channel and you'll be notified as new videos are published (and when new shows are coming up).

tagged: video podcast roundtable larachat slack channel ep1

Link: https://www.youtube.com/watch?v=rACXJLMReK0

Thijs Feryn:
Michael Heap – Talking about PHPBenelux, Datasift, miles & points
Feb 03, 2016 @ 11:12:44

Thijs Feryn has posted his latest video interview with a member of the PHP community. In this new episode he talks with Michael Heap, a developer at Datasift, about the work he does there and traveling (as they make their way back to the airport...)

Michael Heap is a developer who works at [Datasift](http://datasift.com/). On Thursday January 28th 2016 Michael flew from London Heathrow to Brussels to attend the [PHPBenelux Conference 2016](http://conference.phpbenelux.eu/2016). Unfortunately he forgot his laptop on the plane.

While driving Michael to the airport, I decided to ask him a couple of questions and that resulted in a nice conversation.

You can watch the video using either the in-page player or over on YouTube directly. If you're more of the audio-only sort, you can catch the recording over on Soundcloud.

tagged: thijsferyn interview michaelheap datasift travel phpbenelux16 travel video podcast

Link: https://blog.feryn.eu/michael-heap-talking-about-phpbenelux-datasift-miles-points/

Chris Hartjes:
Jan 29, 2016 @ 11:53:30

Chris Hartjes has a post on his site sharing a video from a presentation he gave about "metatesting" to a local PHP user group:

Yesterday I gave a short talk at GPUG about a topic I've dubbed "metatesting". Borrowing the phrase from a children's card game I wanted to talk about the state of testing and associated tools.

You can watch the presentation through the in-page video player including both the slides and Chris' presentation of them. In it he talks about mature testing tools (and extending them rather than creating new ones), open source projects and their tests or lack thereof, how testing reduces the cost of bugfixing and much more. Check out the full presentation for some great tips and updates on where software (and PHP) testing is today.

tagged: metatesting video presentation slides gpug usergroup

Link: https://littlehart.net/atthekeyboard/2016/01/28/metatesting/

Adam Wathan:
Test Driven Laravel from Scratch
Jan 15, 2016 @ 09:22:51

Adam Wathan recently presented a talk at ZendCon 2015 about test-driven Laravel development. As the talk wasn't recorded he put together a condensed version of it and has posted it to his site.

This talk covers some common obstacles people run into when trying to get started with test driving real applications, including: what’s the very first test I should write, [...] how do I test routes, [and] should I start at the unit level or the acceptance level?

The video is embedded in the post but you can also watch it separately over on Vimeo. Adam also has some other videos for those interested in things like social logins with Laravel 5, polymorphism in the database layer and refactoring loops and conditionals.

tagged: video testdriven development laravel zendcon15 screencast

Link: http://adamwathan.me/2016/01/11/test-driven-laravel-from-scratch/

What is the difference between a framework and a library?
Dec 30, 2015 @ 11:34:10

On Reddit.com's /r/php subreddit there's a discussion that's started up around this video that proposes some of the differences between a framework and a library.

Many people have asked me this question before. It's sometimes hard to get a straight answer, but if we remove all of moot details, use cases, and focus simply on the architectural design details the difference becomes quite clear. This video attempts to explain this difference in a relatively simple and straight-forward manner.

The conversation doesn't just talk about PHP frameworks specifically. There's also some mention of things like jQuery from other programming communities. There's plenty of suggested definitions in the conversation but most revolve around two ideas: that the library is a "tool" to use when needed and the framework is the structure of the application (hence "framework") that "uses you".

tagged: framework library difference video youtube discussion

Link: https://www.reddit.com/r/PHP/comments/3yei0q/what_is_the_difference_between_a_framework_and_a/

Community News:
Bulgaria PHP Conference 2015 Videos Posted
Dec 21, 2015 @ 12:11:55

This year's Bulgaria PHP Conference has officially posted the videos from all of their sessions at this year's event to the official conference website. There's lots of great sessions from this year's event including talks from Larry Garfield, Ilia Alshanetsky and Beth Tucker Long. The full list of videos is a bit long to have here, but here's a sampling:

You can check out the rest of the videos on the conference website or directly over on their Vimeo channel.

tagged: bulgariaphpconference bpc15 conference video sessions release

Link: http://www.bgphp.org/videos/

SitePoint PHP Blog:
Liking, Watchlisting and Uploading through Vimeo’s API
Nov 26, 2015 @ 10:26:40

The SitePoint PHP blog continues their series looking at using the Vimeo API from PHP with the second part of their series, enhancing the previous functionality. In this new tutorial they show you how to hook in to the Vimeo API and "like" videos, add them to watchlists and even push them through as uploads.

In a previous post, we used the Vimeo API to build a rudimentary video application with Silex and Twig. We added login and user feed functionality and wrapped it all up with a video searching feature. In this one, we’ll add in liking a video, adding a video to a watchlist for later, and uploading videos via the Vimeo API.

You'll need to have the functionality from part one in place first. From there they take off running, showing you how to interact with videos to perform the "like" and "add to watchlist" actions. The interaction with the API is fired from Javascript on the page and passed through a backend script through to the API. They follow this with the handling for the uploads, using a standard file upload form for input with a few validations once submitted. The code then uses the library to pull in the contents of the file and push it through to the API.

tagged: vimeo api tutorial part2 series watchlist like upload video

Link: http://www.sitepoint.com/liking-watchlisting-and-uploading-through-vimeos-api/

Thijs Feryn:
In interview in the Nevada desert with ContinuousPHP: tech & community in Luxembourg
Nov 25, 2015 @ 10:47:16

In his latest video interview Thijs Feryn talks caught up with the ContinuousPHP team out in the Nevada desert while at this year's ZendCon.

I did a fair number of interviews while I was at Zendcon in Las Vegas. The entertainment capital of the world is located in the desert. So it seemed fun to do this interview in the desert.

ContinuousPHPThis week’s episode features Frédéric Dewinne and Oswald De Riemaecker from ContinuousPHP. We talk about how they met and how they almost instantly founded the company. ContinuousPHP is a Platform As A Service that focuses on continuous delivery and continuous deployment in the PHP space.

They talk about ContinuousPHP, how it started out and where some of the funding came from initially. They also talk about life as a startup and growing a community around the service and the PHP community there in Luxembourg. You can check out this latest episode either through the in-page video player, directly on YouTube or, for the audio-only version, over on Soundcloud.

tagged: thijsferyn interview video continuousphp luxembourg zendcon15

Link: http://blog.feryn.eu/2015/11/23/in-interview-in-the-nevada-desert-with-continuousphp-tech-community-in-luxembourg/

SitePoint PHP Blog:
Building a Basic Video Search App with Vimeo’s API and Slim
Nov 24, 2015 @ 12:02:15

The SitePoint PHP blog has a new tutorial posted showing you how to integrate the Vimeo API with Slim to create a simple web application allowing you to search for videos matching a simple query string.

In this tutorial, you’ll get to know the basics of the Vimeo API. With it, you can fetch information on a specific user or get information on the videos uploaded by the user. If the video is private, you can only get it from the API if the user has given permission to your app.

They start with helping you create a new application on the Vimeo developer site and introduce you to the API playground for trying out various API queries and fetching the results. Following this the tutorial starts in on the application itself, helping you get a Slim application up and running with Twig templating and the Vimeo API library. They bootstrap the application with your Vimeo application credentials and how to log into the API via access tokens. The flow then allows the user to connect their Vimeo account to your Slim application. With this connection in place the user can then view their profile information and execute a search on the "videos" endpoint with a simple query string.

tagged: tutorial api vimeo video slim framework search results apiplayground application

Link: http://www.sitepoint.com/building-a-basic-video-search-app-with-vimeos-api-and-slim/