Home

Posts

Code Snippets JS 2D Library Konva.js

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…
Snippets Setting up PHP Debugging With XDebug

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…
Code Snippets Exceptions

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 Code Snippets Make a PDF

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…
Code Snippets Reading And Writing Excel Files

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…
Code Snippets Using DomDocument To Work With HTML

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…
Code Snippets Global Exception Handler

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 Code Snippets APIs With The Slim Framework

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 Code Snippets OOP and Objects

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…

Advertisment ad adsense adlogger