PHP ClassesPHP Articles and Book Reviews Report November 2015 Edition (26.11.2015, 05:09 UTC)
By Manuel Lemos
This is the November 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 Microsoft Word DOCX documents from HTML, PHP 7 Anonymous classes and nested classes, tracking accesses to your site API using Google Analytics, and reading and writing Microsoft Excel files using PHP stream handlers.

They also commented on the review of the Hack and HHVM book.

Listen to the podcast, or watch the hangout video to learn more about these PHP articles and book reviews.
SitePoint PHPLiking, Watchlisting and Uploading through Vimeo’s API (25.11.2015, 17:00 UTC)

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.

Vimeo Logo


To get up to speed, please skim through the code presented in the previous part and get it to run in your development environment (preferably Homestead Improved). Alternatively, just download the final code of the previous post here. Once you’re ready, continue with the content below.

Interacting with Videos

In this section, you’re going to add the capability to like and add videos to be watched later. But before that, you first need to update the scopes for the Vimeo login (in the previous post, we only asked for public and private scope permissions). Add interact as one of the items, and once that’s done, access the login page in the browser and try logging in again.

$scopes = array('public', 'private', 'interact');
$state = substr(str_shuffle(md5(time())), 0, 10);
$_SESSION['state'] = $state;

$url = $vimeo->buildAuthorizationEndpoint(REDIRECT_URI, $scopes, $state);

$page_data = array(
    'url' => $url

It should now show an additional item under permissions. Check that to allow video interactions.

Continue reading %Liking, Watchlisting and Uploading through Vimeo’s API%

Nomad PHPConfig is not code! How to use environment variables in PHP (25.11.2015, 16:27 UTC)

Speaker: Ben Smith @abenjaminsmith You should be enforcing a total separation of config from code in your PHP applications. Learn how to utilize environment variables in your apps, including app bootstrapping, security for app secrets, deploying to remote environments, and more.

The post Config is not code! How to use environment variables in PHP appeared first on Nomad PHP.

Nomad PHPZero to API with Lumen (25.11.2015, 16:24 UTC)

Speaker: Amanda Folson @AmbassadorAwsum Building and maintaining an API or microservice doesn’t have to suck. We’ll use Laravel’s new micro-framework Lumen to build an API using all of the Laravel features we love without all of the full-stack stuff we don’t need.

The post Zero to API with Lumen appeared first on Nomad PHP.

PHP ClassesHow to Create a PHP Utilities Framework (25.11.2015, 06:36 UTC)
By Nadir Latif
When you talk about Web frameworks, many developers think about MVC frameworks. However, most Web applications need also libraries of common utility packages for general purposes unrelated with MVC.

Read this article to learn how to build a PHP utilities framework to address general PHP application needs that you can use or take ideas to build your own general purpose framework.
PHP ClassesImproving Your PHP Application Deployment with Docker Part 1: Setting Up Docker (24.11.2015, 07:02 UTC)
By Grigori Kochanov
Docker is a sensational tool for building containers for applications with any tools that you need like PHP, MySQL, Nginx, or whatever else you need, with much greater efficiency of resources like CPU, RAM, etc..

Read this article to learn more about Docker and how you can set it up to run your PHP application development or production environment.
thePHP.ccProfessional Object-Oriented Development (24.11.2015, 07:00 UTC)
Cal Evans (Voices of the ElePHPant) Interview with Sebastian Bergmann (24.11.2015, 05:00 UTC) Link
SitePoint PHPBuilding a Basic Video Search App with Vimeo’s API and Slim (23.11.2015, 17:00 UTC)

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.

Vimeo Logo

Creating a New App

The first thing you’re going to need is a Vimeo account. Once you have one, go to and click on My Apps. This will list out all the apps that you’ve created. Since it’s your first time, it should be empty. Click the create a new app button to start creating a new app. Enter the name, description, URL and callback URL of the app. For the URL and callback URL you can enter a URL on your development machine (like

vimeo new app

Click on the create app button once you’re done adding the details. You will be redirected to the app page where you can click the ‘authentication’ tab to reveal the tokens which you can use to interact with the API. We’ll need those later.

API Playground

Before you move on to coding a demo app, take a look at the API Playground. This is a tool provided by Vimeo so developers can play around with the API without having to code anything. It allows you to make calls to specific API endpoints, set custom values for the parameters that can be passed through those endpoints and see the actual result which is a JSON string.

Check the ‘Authenticate this call as {your user name}’ checkbox so that all API calls are performed on behalf of your Vimeo account. If you do not check this box, the API calls will be performed as an unauthenticated request. This means that it won’t be using your app credentials, nor a specific user to perform requests to the API. In effect, it’s then limited to only accessing publicly available information.

Going back to the API Playground, select the application which you’ve created earlier. You can click the make call button to perform the request. The default URL used in the playground is which just lists out all the endpoints which are available from the API. To change this, you can click on the (Empty…) link on the left side of the screen. From there, you can select the endpoint to which you want to send a request. You can try the users endpoint for starters. Once selected, it allows you to input the ID of a specific user and search for users by specifying a set of parameters.

api playground users

Continue reading %Building a Basic Video Search App with Vimeo’s API and Slim%

Cal Evans (Voices of the ElePHPant) Periscope – Sebastian Bergmann (23.11.2015, 15:27 UTC)

At PHP World 2015, we ran an experiment, we “Periscoped” all of our recordings. The audio recordings will still be released as part of the feed, however, the video will be posted here for archival purposes.

Show Notes

Thanks to our sponsor PHPArchitect


The post Periscope – Sebastian Bergmann appeared first on Voices of the ElePHPant.

LinksRSS 0.92   RDF 1.
Atom Feed   100% Popoon
PHP5 powered   PEAR
ButtonsPlanet PHP   Planet PHP
Planet PHP