MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

“PHP extension ext-intl and ext-gd are missing” Composer Error in XAMPP


When working with Laravel or any PHP project using Composer, you might encounter an error like this:

Problem 1
    - Root composer.json requires PHP extension ext-intl * but it is missing from your system. Install or enable PHP's intl extension.
Problem 2
    - mpdf/mpdf requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.

This error usually appears when you try to install or update packages such as mpdf/mpdf, PhpSpreadsheet, or maatwebsite/excel in your PHP project.

Let’s understand what causes this and how to fix it step by step.


⚙️ What Causes This Error?

The error occurs because your PHP environment doesn’t have two required extensions enabled:

  1. intl (Internationalization extension) — used for localization, date/time formatting, etc.
  2. gd (Graphics Draw extension) — used for image processing and generating PDFs or Excel files.

Even though these extensions are included with PHP by default, they are often disabled in the configuration file.


🧩 Step-by-Step Solution

Step 1: Open the php.ini File

If you’re using XAMPP, your php.ini file is located at:

C:\xampp\php\php.ini

You can open it using Notepad, VS Code, or any text editor.


Step 2: Enable the Required Extensions

In the file, press Ctrl + F and search for:

;extension=intl
;extension=gd

You’ll see both lines commented out with a semicolon (;).

Remove the semicolon at the beginning of each line:

Before:

;extension=intl
;extension=gd

After:

extension=intl
extension=gd

Save the file once you’ve made the changes.


Step 3: Restart Apache Server

After saving, open your XAMPP Control Panel and restart Apache:

  1. Click Stop next to Apache
  2. Then click Start again

This ensures the changes in php.ini take effect.


Step 4: Verify the Extensions

Open Command Prompt or PowerShell, and type:

php -m

This command lists all enabled PHP extensions.
Make sure you can see both intl and gd in the list.


Step 5: Run Composer Again

Now, go back to your project directory and run:

composer install

If everything is set up correctly, Composer will install the required dependencies without any errors.


🧰 Optional: Temporary Workaround

If you’re in a hurry and just want to bypass the check temporarily (not recommended), you can run:

composer install --ignore-platform-req=ext-intl --ignore-platform-req=ext-gd

However, this only skips the requirement—it doesn’t solve the underlying problem. Your project may not work properly if those extensions are truly needed.


✅ Final Thoughts

This issue is common among developers using XAMPP or WAMP for local PHP development.
The solution is simple: enable the missing extensions and restart your server.

Once done, Composer will run smoothly, and your project will load all dependencies successfully.

Related Posts

Master DataOps Skills in the United Kingdom and London

The United Kingdom has become one of the world’s most dynamic technology ecosystems—with London standing out as a global hub for finance, innovation, and digital transformation. As…

Mastering DataOps Skills in the Netherlands

In today’s fast-moving digital landscape, data has become the foundation of innovation, automation, and decision-making. Whether an organization is building AI-powered systems, optimizing analytics, or enabling real-time…

Unlocking Your DataOps Career: Expert Training & Certification with DevOpsSchool

Elevate your IT career with DataOps expertise from DevOpsSchool, the market leader in tech training and certification. This in-depth review covers everything you need to know about…

DataOps Training in India: Master DataOps with DevOpsSchool’s Expert-Led Course

DevOpsSchool stands as a premier destination for cutting-edge IT training, trusted by professionals and enterprises alike for its commitment to delivering hands-on, career-focused learning experiences. The DataOps…

Master DataOps: Certification Training & Career Boost Guide

In today’s data-driven world, where businesses in Toronto, Ottawa, Vancouver, Montreal, and Calgary are racing to harness insights from vast datasets, the need for agile and efficient…

Mastering Continuous Testing: The Key to Faster, More Reliable DevOps Pipelines

In the fast-paced world of software development, where releases happen multiple times a day and downtime can cost millions, continuous testing has emerged as a game-changer. Imagine…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x