require ext-dom * -> it is missing from your system. Install or enable PHP’s dom extension.

Make sure you are in htdocs folder while executing the commands. I was trying to install Laravel in a Ubuntu virtual machine and got this error Your requirements could not be resolved to an installable set of packages. Problem 1 – phpunit/phpunit[7.5.0, …, 7.5.20] require ext-dom * -> it is missing from your system. Install or enable PHP’s dom extension. – Root composer.json requires phpunit/phpunit ^7.5 -> satisfiable by phpunit/phpunit[7.5.0, …, 7.5.20]. And To enable extensions, verify that they are

Read more

Install composer using CLI in ubuntu (Globally)

Steps For Installing PHP Composer on Ubuntu STEP 1: Update You distribution Enter this command to update the local repository lists. STEP 2: Download the Composer Installer run the below command in your root directory (We are installing composer globally) Step 3: Verify Integrity of the Download 1. Visit the Composer Public Keys page. Copy the Installer Signature (SHA-384).2. Set the code shell variable: COMPOSER=48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f53. Run the script below to compare the official hash against the one you downloaded: Step 4: Install

Read more