© 2023 Hashnode
#composer
When creating a package for other PHP developers to use, it helps to follow some basic rules to help the developers you are trying to get to use your package. While there are other guides on how to pu…
As I have posted previously, the PHP autoloader is one of the great things about PHP. It truly simplifies PHP development by not having to deal with include files or imports that plague most other lan…
Background There was a time when you wanted to install a PHP library on your project. You had to manually download the zip file, extract it and copy the relevant files to your project. You had to mana…
Introduction Most probably you've heard about Dependabot. It's a GitHub service that checks if your project dependencies have new releases, and updates your project, automatically. I believe it's a gr…
From an idea comes its development, that's why, after several package ideas, I came to the conclusion of creating this organisation on Github, but also creating its base template for what I do most: C…
Form validation is very important to prevent unwanted/malformed data from being stored in your database. One wrong input from a user can affect the whole records in a database, so it is necessary to v…
About Now a days we usually create php project by composer and add project depended package or module by composer. Today I am working a project using popular framework laravel. I need install a packag…
Back Story Recently, I have been working on migrating a Drupal site for 8 to 9. After starting the migration, I found out the site was using the Ludwig module as a composer alternative for handling PHP libraries. This started the path into…
I use docker-compose to prepare my dev environment, e.g database, redis, etc. And, sometimes, I forget the location of the docker-compose file. Or, which docker-compose file I used, so here's the tric…
By default composer will look up onto packagist.org, but what if we want to require the package / library from github repository instead of packagist.org? to do that, we need to do 2 steps. 1. Configu…