PHP is a widely-used server-side scripting language known for its versatility in web development and integration with databases.

Machine Learning with TransformersPHP: Automatically Tagging Posts in Laravel

In this tutorial, I will be demonstrating using TransformersPHP to perform one of the most common Natural Language Processing (NLP) tasks - zero shot text classification. There are so many examples and applications of this task, like sentiment analysis for comments, spam detection, ticket classification, etc. But for this tutorial, I chose to show how to use it in Laravel with a simple example - automatically tagging posts. It might not exactly be the most practical example, but it's a good starting point to demonstrate the power of TransformersPHP.

Introduction to OOP in PHP

In this first article of the "Mastering OOP in PHP series", you'll learn the basics of OOP, setting up your PHP environment, creating classes and objects, and why OOP is essential. Bake some cakes, dive into real-world analogies, and explore the power of OOP with practical examples.

November 07, 2023
Quick Tips 4 min read

How to Implement Retries in GuzzleHttp

Learn how to fortify your web requests with Guzzle HTTP's retry mechanism. Dive into custom retry logic and discover how to make your HTTP requests resilient, even in the face of network hiccups and server glitches.

October 12, 2023
« 12 »