composer Archives - draghici.net https://draghici.net/tag/composer/ A web developer's ideas Sun, 17 Mar 2024 07:24:21 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://draghici.net/app/uploads/2017/06/cropped-keyboard-grayscale-150x150.jpg composer Archives - draghici.net https://draghici.net/tag/composer/ 32 32 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.

]]>
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.

]]>