Skip to content

handsome1123/laravel-task-api

Repository files navigation

Insatll Xampp

===============================================

Install Composer (Windows)

  1. Go to the official site: 👉 https://getcomposer.org/download/

  2. Click "Composer-Setup.exe" to download the Windows installer.

  3. Run the installer:

    • Keep the default options.

    • When it asks for PHP path, browse to your PHP installation, e.g.:

      C:\xampp\php\php.exe
      
    • Let the installer add Composer to your PATH automatically.

  4. After installation, close and reopen PowerShell.


🧩 Step 3. Verify installation

Run:

composer -V

✅ If you see something like Composer version 2.x.x, it’s working.


================================================

If your PHP’s OpenSSL certificate file is outdated or missing, so Composer can’t verify secure HTTPS connections. Let’s fix it step-by-step 👇


🧰 Step 1. Download a fresh certificate bundle

  1. Go to: 👉 https://curl.se/ca/cacert.pem

  2. Right-click → Save As... → save it as

    C:\xampp\php\extras\ssl\cacert.pem
    

    (create folders if needed)


⚙️ Step 2. Update PHP’s configuration

  1. Open this file:

    C:\xampp\php\php.ini
    
  2. Search for:

    ;curl.cainfo=
    ;openssl.cafile=
    
  3. Remove the semicolons (;) and set the new path:

    curl.cainfo="C:\xampp\php\extras\ssl\cacert.pem"
    openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"
  4. Save the file.


🔄 Step 3. Restart everything

  • Close PowerShell or Command Prompt.
  • Restart XAMPP’s Apache (and MySQL if running).
  • Reopen PowerShell.

🚀 Step 4. Try again

Run:

composer -V

If it shows a version number → you’re good to go!

5️⃣ Tell Composer explicitly (optional but recommended)

Run these commands to make sure Composer always uses that file:

setx COMPOSER_CAFILE "C:\xampp\php\extras\ssl\cacert.pem"
setx SSL_CERT_FILE "C:\xampp\php\extras\ssl\cacert.pem"

Then close and reopen PowerShell again.


6️⃣ Test again

composer diagnose

✅ You should now see:

Checking https connectivity to packagist: OK
Checking github.com rate limit: OK

🚀 Then you can safely run:

composer create-project laravel/laravel laravel-task-api

If it still fails, please run this:

php -r "echo ini_get('curl.cainfo');"

php artisan migrate

php artisan serve

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published