Posts
Javascript 2D Library Konva.js
In this post, we’ll take a look at the Konva.js. Konva is a pretty nice 2D javascript graphics library for the browser. I discovered it when I needed a 2D…
Setting Up PHP Debugging With XDebug
In this post, we’ll learn how to set up the Xdebug debugger for PHP in Visual Studio Code…
PHP Exceptions
In this code snippet, we’ll learn how to throw and handle an exception in PHP. Exceptions are used to indicate that an error has occurred within our code. For this demo…
PHP Making PDFs
In this code snippet, we’ll learn how to make a PDF file in PHP. We will use the FPDF library to generate a PDF. More specifically we’ll see how to create page headers/footers…
PHP Reading And Writing Excel Files
In this code snippet, we’ll learn how to read and write excel files in PHP. We will use the PHPSpreadsheet library to read/write Excel files and we’ll learn how to read cells, find a…
PHP Using DomDocument To Work With HTML
In this code snippet, we’ll see how to work with HTML using DomDocument in PHP. If you need to change HTML in code or extract some data from it(web scraping) you…
PHP Global Exception Handler
In this code snippet, we’ll make a global exception handler in PHP. A global exception handler is used to catch any unhandled exception that might bubble up in your code. This…
PHP APIs With The Slim Framework
In this code snippet, we’ll make a REST API with the Slim framework in PHP. Slim is a framework that enables you to easily and quickly build REST APIs in PHP…
PHP Objects And OOP
In this code snippet, we’ll take a look at objects and basic of object oriented programming in PHP. I will just show how to make and use classes, interfaces, properties…