SlimPHP Archives - draghici.net https://draghici.net/tag/slimphp/ A web developer's ideas Tue, 24 Mar 2026 14:27:38 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://draghici.net/app/uploads/2017/06/cropped-keyboard-grayscale-150x150.jpg SlimPHP Archives - draghici.net https://draghici.net/tag/slimphp/ 32 32 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 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.

]]>
SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” https://draghici.net/slimphp-phpunit-failed-asserting-200-identical-404/ Fri, 05 May 2017 22:07:13 +0000 https://draghici.net/?p=925 I got the “Failed asserting that 200 is identical to 404” while using Slim and phpunit. But the API works fine when manually testing. After some digging, I realized that phpunit did not like the way I included files in my app – if replacing require_once with require where used, the test outputs Fatal error: Cannot redeclare class \DBClass in […]

The post SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” appeared first on draghici.net.

]]>