Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Slim3 Cheatsheet

A cheatsheet for working with the Slim3 framework.

PHP

Creating Phar Files

Create your own phar files.

PHP

Ubuntu 16.04 - Install PHP 7.2 From PPA

Install a later version of PHP on Ubuntu 16.04 by using a PPA from Ondrej.

Create Symfony Project

Install the Symfony PHP framework.

PHP

PHP - CLI Progress Bar

Have your PHP application show a progress bar whilst it works.

Slim3 - Simplifying Routing At Scale

A video-tutorial demonstrating how you can move a lot of the routing registration in Slim3, into the controllers, thus simplifying your codebase if you have a lot of routes.

PHP - Using UUID Instead of Auto Increment or Sequence

Learn how to use UUIDs in MySQL for your table IDs, rather than using auto_increment.

PHP Lecture - Identify All the Things With UUIDs!

A lightning talk on UUIDs from the maintainer of the ramsey/UUID package library for PHP.

PHP - Doctrine ORM Good Practices and Tricks

A talk made by Macro Pivetta on "Doctrice ORM Good Practices and Tricks".

PHP

PHP - Finally Clause

Learn about the finally clause.

PHP Packages - Requiring Self For Testing

Learn how to include your package within itself for testing and not have to keep pushing the code and composer updating.

MySQLi Prepared Statements

A brief tutorial on using prepared statements and their pros/cons.

PHP

Ubuntu 16.04 - Install PHP Inotify

Install the Inotify extension for PHP 7.0 in Ubuntu 16.04

Composer Aliases

How you can use aliases for package names for testing dev branches.

Ubuntu 16.04 - Compile PHP 7.2 with pthreads

Install PHP 7.2 With Pthreads for multithreading on Ubuntu 16.04

PHP Multithreading - Thread Pool Example

An example of using a thread pool for handling threads more efficiently.

Getting Started With Selenium Testing using PHP

Get started with using Selenium for automating tests, and writing those tests in PHP.

Set up Latest Dev PHP with Multithreading on Ubuntu 16.04

This tutorial will show you how to recompile PHP with ZTS enabled, before then adding the pthreads extension in order for us to be able to easily write multithreaded PHP CLI scripts.

Install PHP 7.0 With Pthreads on Ubuntu 16.04

Install PHP 7.0 With Pthreads for multithreading on Ubuntu 16.04

Set Up PHP With Multithreading on Ubuntu 16.04

This tutorial will show you how to recompile PHP with ZTS enabled, before then adding the pthreads extension in order for us to be able to easily write multithreaded PHP CLI scripts.

PHP

PHP - The Importance of Actually Implementing The Interface

An example of why you need to use the implements keyword on a class to implement an interface, and not just implement its methods.

PHP - Async cURL Requests

PHP - Specifying Package Requirements

PHP

PHP - Convert a String to Characters With str_split

PHP

PHP - Colon Syntax

Deploy Your Own S3 Server

PHP

PHP - Splat Operator

PHP 7 - Spaceship Operator

PHP

PHP - Generators

PHP 7.0 - Anonymous Classes

Using DI to Avoid Inheritance

Ubuntu 16.04 - Install GPG Extension for PHP 7

Extremely Defensive PHP

PHP-FPM - Show/Hide Errors

Ubuntu 16.04 - Install NGINX with PHP

PHP - Using Traits

Ubuntu 16.04 - Install PHP SSH2 Extension

Debian 8 - Install GPG Extension for PHP 5.6

Debian 8 - Install PHP 7.1

Dependency Injection

Slim3 - Use Middleware to Check User Is Logged In

Debian 8 - Setting up PHP For Aerospike

Getting Started With Using PostgreSQL in PHP

RabbitMQ Job Queue With PHP

PHP - Install YAML Support

PHP

PHP Gotchas and Tips

PHP

PHP Time/Date Cheatsheet

PHP - Converting Data for Google Charts

Fixing Laravel 4 Routing Autocomplete

If you use netbeans like me and new to Laravel, you may get confused/frustrated by lack of autocomplete after typing Route:: This post explains what is going on and how you can fix this.

Using Markdown in PHP Safely

Install Zookeeper PHP Extension

PHP

Ubuntu 14.04 - Install PHP 7 From PPA

RabbitMQ Exchanges With PHP

PHP

PHP - Callbacks And Sharing Resources

Getting Started with MongoDB GridFS And PHP

Debian 8 - Install MongoDB PHP Driver

PHPUnit - Installation

PHP

PHP - Use the Integrated Webserver for Quick Debugging

Getting Started With PHP And RethinkDB

Ubuntu - Create a Laravel Project

Set up a new Laravel project. Laravel is a popular PHP framework.

Hosting Multiple Dockerized Websites on a Single Host

Debian 7.x - Install PHP 5.6

Install PHP 5.6 in Debian 7.x