Tutorials and Talks
Understanding Design Patterns - State
Allows an object to alter its behaviour when its internal state changes. The object will appear to change its class.
How to Install ownCloud on Ubuntu 18.04
Let's see what happens when we undertake the process of installing the latest version of ownCloud onto the latest version of Ubuntu Server. The process isn't terribly challenging, at least not when you know what dependencies to install.
Zend Framework: ACLs For Users With Multiple Roles
After covering the essentials of the Zend\Permissions\Acl component (Access Control unit, Cross Cutting Concerns module, in the Zend Framework Advanced course), many students have approached me to ask, “what happens if a user has multiple roles?” In this article I discuss the “traditional” way of handling a user who has multiple roles, and then lay out an easy approach which I simply call Mr. X.
Parsing HTML With PHP Using DiDOM
In this tutorial, we will learn about a fast, easy-to-use HTML parser called DiDOM. We will begin with the installation process and then learn how to extract information from different elements on a webpage using different kinds of selectors like tags, classes, etc.
Setting up PHP, PHP-FPM and NGINX for Local Development on Docker
You probably heard from the new kid around the block called "Docker"? You are a PHP developer and would like to get into that, but you didn't have the time to look into it, yet? Then this tutorial is for you!
Building Deploy Ready PHP Apps
Deploy ready means that your application should be able to be deployed in any environment without changing the application code.
Writing WordPress Posts in Markdown
WordPress allows you to write your posts using Markdown. This feature is available using Jetpack. If you write some of your eBooks or other documents using Markdown, and need to transfer some of the same content to a WordPress blog than this feature is extremely useful. No need to again create a different HTML version of the content.
Notes For Working On The OpenWhisk PHP Runtime
These are some notes for working on the OpenWhisk PHP Runtime, but are probably applicable to the other runtimes too.
Implementing Custom Logic With Raw SQL In Laravel’s Query Builder
Laravel’s query builder offers a nice way to work with raw SQL. We can use them in our where conditions and also in our orderings as well. Let’s see some examples where we can use raw SQL to implement custom logic for ordering the results.
How To Rid Your Database of PHP Class Names in Eloquent's Polymorphic Tables
Polymorphic relations let you set up a relationship between many different model types, without the need for extra tables. This works by storing the "morphable type" (explained below) in the database, in addition to the morphable type's ID. By default, the morphable type stored in the database is the model's full class name. While this works, it tightly couples your database to your PHP application. Let's look at how we can instruct Eloquent to use more generic values for these morphable types.
Building a PHP Framework: Part 7 – The Container
Part 6 began our discussion of PHP containers. Today, I’ll be going into greater detail of the subject and, along with that, I’ll run down the work done so far on the Analyze container.
200 OK
200 OK is the most common HTTP status code. It generally means that the HTTP request succeeded. If the HTTP request was a GET request, the response should include the full representation of the resource.
Improving Performance Perception: On-demand Image Resizing
We’ve been building a sample application — a multi-image gallery blog — for performance benchmarking and optimisations. At this point, our application serves the same image regardless of the resolution and screen size it’s being served in. In this image resizing tutorial, we’ll modify it to serve a resized version depending on display size.
Build a WordPress Plugin with Vue 2
It’s been a while since we’ve played with Vue JS on this blog, so why don’t we take a beginner-focused look at how one might go about building a simple polling plugin for WordPress with Vue.
|