Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Laravel Installer Through Composer

Install the Laravel installer.

PHP

Ubuntu 18.04 - Install Mcrypt for PHP

Install mcrypt for PHP in Ubuntu 18.04

Netbeans - Adding Support for Laravel

Add support for Laravel in Netbeans so that you can get auto-completion and hints working.

PHP

PHP Error and Exception Handling

Learn how to register some handlers so that we can capture any kind of issue that occurs in our PHP application.

PHP

Cookies in PHP

A tutorial on using PHP to set and read cookies in the user's browser.

PHP

PHP - Strict Types

Learn about using declare(strinct_types = 1); in PHP and the implications it has.

Getting Started With Doctrine ORM

Get started with th Doctrine database abastraction layer (DBAL).

Setup Your Own Satis Server For Private PHP Packages

Steps on setting up your own satis server.

PHP

PHP - Creating Strict Type Arrays

Using strict type arrays in PHP.

Sending Metrics To Statsd With PHP

Start firing data off to your Graphite server's statsd collector in order to start tracking/monitoring events.

PHP

Enable PHP Opcache

Enable the PHP opcache

PHP

Getting Started With PHP CodeSniffer

Get started with using the codesniffer tool in order to ensure your code adheres to the PSR-2 standards.

Get Started with Satis Using Docker

Deploy your own private satis server for private PHP packages.

PHP

PHP Cheatsheet

A cheatsheet for PHP

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.

Compile PHP 7.2 with pthreads

Install PHP 7.2 With Pthreads for multithreading

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

A fantastic timestamped lecture on defensive PHP. Everyone should watch this!

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

Laravel 5 Cheatsheet

A cheatsheet for using Laravel 5.

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