Tag development

Ultimate guide to Tesseract OCR on Laravel

Optical Character Recognition (OCR) is a technology that enables the extraction of text from images and scanned documents. It’s incredibly useful for automating data entry, text extraction, and more in Laravel applications. Tesseract OCR is an open-source OCR engine that’s…

Yoda conditions

Yoda conditions are a programming style, which goal is to prevent accidental assignments of variables within conditionals. Such as in the following situations. To prevent that, the constant is placed at the forefront of the statement, therefore raising an exception…

PDF to plain text with OCR

Parsing a PDF document within a laravel application, is not really a problem nowadays. There are multiple packages already made just for that, which could help you achieve any desired functionality to a level of extent. My favourite, like for…

Homestead phpMyAdmin

Have you ever wondered how to install the trusty phpMyAdmin to your homestead development box? The steps are quite simple, you just have to do the following: Download phpMyAdmin Pull the latest zip of phpMyAdmin source from or directly…

What are Heredoc and Nowdoc?

Most of the time, using a regular string for large outputs is not the optimal solution, especially if the content is spread across multiple lines. There’re several tricks to achieve the desired result with different levels of cleanliness. Instead of…

TIL: strtotime function

While researching the `setcookie` function, another one caught my eye. Apparently, instead of writing the time of expiration in unix seconds, you can use human-readable format, neatly parsed by strtotime() ! It for sure improves the readability of the code,…