The orhanerday/open-ai package is a PHP SDK for accessing the OpenAI GPT-3 API. It supports the complete, search, answer, classification, and engine APIs. Here’s an example of using the OpenAI classification API with this package: You’ll get back the following classification for…
Laravel Auto Binder: Bind Interfaces to Implementations Automatically
Laravel Auto Binder is a package by Michael Rubel that binds interfaces to implementations automatically. This package automatically binds interfaces to implementations in the Service Container, scanning the specified project folders. This helps avoid manually registering container bindings when the project needs to bind…
In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn’t a finished design that can be transformed directly into code. It is a description or template for how to…
Structured Query Language(SQL) as we all know is the database language by the use of which we can perform certain operations on the existing database and also we can use this language to create a database. SQL uses certain commands like Create,…
Q:- What is Object Oriented Programming? Object oriented programming is a programming technique to design your application. Application can be of any type like it can be web based application, windows based application etc. In object oriented programming, everything revolves…
Larastan is a development dependency that adds static analysis to Laravel, improving developer productivity and code quality. At the core, it’s a PHPStan wrapper for Laravel and helps you find errors in your code through static analysis. It helps catch bugs before…
What are nolocal and global keywords used for? These two keywords are used to change the scope of a previously declared variable. nolocal is often used when you need to access a variable in a nested function: global is a more straightforward instruction. It makes a previously…
Laravel Site Search is a package by Spatie to create a full-text search index by crawling your site. You can think of it as a private Google search for your sites to crawl and index all your content and provide a…
When it comes to queues, the AWS SQS service is a great option. It’s super cheap, super reliable, and can scale higher than most of us will ever need. In general, I’m a fan of any service I don’t have to manage…
TALL Toasts is a toast notification library for the Laravel TALL stack (Tailwind, Alpine.js, Laravel, Livewire). What makes this package stand out to me is the ability to render customizable toast messages from either the backend or frontend. The TALL Toasts…