msmrobin.hashnode.devIntegrate Swagger UI with Codeigniter4Swagger is a widely used API documentation and testing tool that seamlessly integrates with popular web frameworks like Laravel, Spring Boot, CodeIgniter, and ExpressJS. In this article, we will focus on integrating Swagger with CodeIgniter. Installi...Dec 16, 2024·3 min read
msmrobin.hashnode.devHow to install the `sodium` extension if your PHP version hasn't it directly in Ubuntu 22.04?Prerequisites: Indeed, the prerequisite packages and dependencies are crucial for successfully installing and configuring the sodium extension in your XAMPP environment. Installing autoconf, libsodium-dev, and ensuring the correct paths and configura...Jun 27, 2023·2 min read
msmrobin.hashnode.devActivate the "New Document" option with specific file extensions in Ubuntu 22.04Here's how you can do it: Open a terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the application launcher. Navigate to your templates directory by running the following command: cd ~/Templates Create blank files with the d...Jun 7, 2023·2 min read
msmrobin.hashnode.devGetting migration and seeder files from connected DB using db_craftDB-Craft DB-Craft is a package for CodeIgniter 4 that provides convenient commands to generate migration and seeder files from a connected database. Installation You can install the DB-Craft package via Composer by running the following command: comp...Jun 6, 2023·1 min read
msmrobin.hashnode.devHow to get the scheme, host, port, and path from a complete URL using PHP?Suppose you have some URLs like: $urls = [ 'https://www.hishabkitab.com/dashboard', 'http://hishabkitab.com:8080', 'http://localhost:5034', 'https://ohr.hishabkitab.com' ]; If you want only a host from the URLs. You can use PHP built...May 12, 2023·1 min read