php Archives - draghici.net https://draghici.net/tag/php/ A web developer's ideas Thu, 26 Nov 2026 11:32:07 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://draghici.net/app/uploads/2017/06/cropped-keyboard-grayscale-150x150.jpg php Archives - draghici.net https://draghici.net/tag/php/ 32 32 Another rebuild for my own website https://draghici.net/another-rebuild-for-my-own-website/ Thu, 29 Oct 2026 22:17:58 +0000 https://draghici.net/?p=7311 Looking at my copyright notice, I realized my website is 20 years old. Such an occasion deserves celebrating with some fresh new features. It’s a special occasion, obviously, but the main reasons I want to do some upgrades to the website are not necessarily related to that. First and most important: for about a year […]

The post Another rebuild for my own website appeared first on draghici.net.

]]>
Accelerated AI development – Open File Sharing https://draghici.net/accelerated-ai-development-open-file-sharing/ Fri, 29 Aug 2025 14:30:19 +0000 https://draghici.net/?p=6422 In the following article we will attempt to build an open source file sharing app which is password protected and can be used by multiple users. This is a fairly common project, so the challenge with it will be to delivery quality at a faster pace, with the help of AI agents. AI has started […]

The post Accelerated AI development – Open File Sharing appeared first on draghici.net.

]]>
Modernizing the internals of an old notes taking app https://draghici.net/modernizing-the-internals-of-an-old-notes-taking-app/ Fri, 31 May 2024 05:33:00 +0000 https://draghici.net/?p=5714 Many years ago I worked on a PHP based notes taking app named after a friendly cat in our family back then. I still use it from time to time, but because it’s obsolete, time has come to give it a refresh. A year ago I used Laravel to make an attempt at rewriting it. […]

The post Modernizing the internals of an old notes taking app appeared first on draghici.net.

]]>
React form with zod validation and a canvas https://draghici.net/react-form-with-zod-validation-and-a-canvas/ Fri, 29 Mar 2024 17:47:34 +0000 https://draghici.net/?p=5499 I was recently asked to help with creating a form to submit certain tax redirections for a non-profit organization. I recently decided to have less code samples in the articles I write. I worry that much code might distract the reader from the actual point of the articles: which is the overall architecture of what […]

The post React form with zod validation and a canvas appeared first on draghici.net.

]]>
A simple way to put WordPress on Debian/Ubuntu https://draghici.net/a-simple-way-to-put-wordpress-on-debian-ubuntu/ Fri, 24 Nov 2023 09:50:04 +0000 https://draghici.net/?p=5003 WordPress is not evil, as many developers tend to say. Actually, given it’s ease of use especially for non-techy users, it’s a strong choice when it comes to building a non-static website. Therefore, we will learn about an easy way to install it on a Debian based system. The information in the current article can […]

The post A simple way to put WordPress on Debian/Ubuntu appeared first on draghici.net.

]]>
Using Laravel and React to bootstrap a notes taking app https://draghici.net/using-laravel-to-bootstrap-a-notes-taking-app/ Fri, 28 Jul 2023 09:37:03 +0000 https://draghici.net/?p=4535 Laravel is one of the most powerful frameworks out there. Since it’s built on PHP, it can easily be hosted almost anywhere and many developers already have enough knowledge to maintain or extend the functionality. I will use it for setting up a new project, using Windows, Docker and WSL2. As a main resource, we […]

The post Using Laravel and React to bootstrap a notes taking app appeared first on draghici.net.

]]>
How to install Composer and PHP on Windows https://draghici.net/how-to-install-composer-and-php-on-windows/ Fri, 24 Jun 2022 05:25:00 +0000 https://draghici.net/?p=5476 Composer is a package manager for PHP, probably the most important and well known. I prefer containerizing as much as possible in my projects, but for ease of use in local developments, sometimes it’s easier to have package managers available directly in your command line. Yes, I still sometimes use PHP for small personal projects, […]

The post How to install Composer and PHP on Windows appeared first on draghici.net.

]]>
Task automation with minimal resources https://draghici.net/task-automation-with-minimal-resources/ Fri, 06 Nov 2020 06:24:00 +0000 https://draghici.net/?p=4033 Throwing resources at a problem is rarely the right solution. Having a very powerful server waiting to process updates you might do once a week basically translates to wasting money. Therefore, in the following article we will try to find an alternative. Introduction Using the idea behind the Producer/Consumer pattern, we could use a normal […]

The post Task automation with minimal resources appeared first on draghici.net.

]]>
Creating a Lumen API with OAuth for Google Authentication https://draghici.net/creating-a-lumen-api-with-oauth-for-google-authentication/ Thu, 16 Jan 2020 17:42:00 +0000 https://draghici.net/?p=2066 Lumen is the younger brother of Laravel. It is supposed to be faster and it is especially designed for building APIs. With this project, we aim to create a JSON API which will also provide OAuth support, mainly for using the visitor’s Google account for authentication. Decisions, assumptions and hints The app might be used […]

The post Creating a Lumen API with OAuth for Google Authentication appeared first on draghici.net.

]]>
Virtualmin on Ubuntu – add support for newer php versions https://draghici.net/virtualmin-on-ubuntu-add-support-for-newer-php-versions/ Sun, 05 Jan 2020 22:35:11 +0000 https://draghici.net/?p=2775 The latest versions of php come with big performance improvements. However, a downside is that older code might have unexpected behaviour – as the improvement list is quite long. Command line To get things going, you need to log into your server and execute the following commands with elevated privileges: # Add the PPA sudo […]

The post Virtualmin on Ubuntu – add support for newer php versions appeared first on draghici.net.

]]>
A PHP PDO mysql helper class used in SlimPHP applications https://draghici.net/php-pdo-mysql-helper-class-used-slimphp-applications/ Sat, 09 Dec 2017 00:50:34 +0000 https://draghici.net/?p=936 This is a very simple example on how to use SlimPHP and PDO in a basic API that updates, lists and deletes entries from a table. If you are new to building APIs with SlimPHP, then this is a good starting point. The class itself: The database dependency: Example usage:

The post A PHP PDO mysql helper class used in SlimPHP applications appeared first on draghici.net.

]]>
Setting up Apache and PHP on macOS High Sierra https://draghici.net/setting-apache-php-macos-high-sierra/ Fri, 17 Nov 2017 00:22:04 +0000 https://draghici.net/?p=930 Recently, I had to setup Apache with PHP directly on my mackbook. It was rather easy. I did the following: Source:

The post Setting up Apache and PHP on macOS High Sierra appeared first on draghici.net.

]]>