Engineering note · Laravel

Using --ignore-platform-req and --ignore-platform-reqs with Composer

By Published Updated

Laravel

Using --ignore-platform-req and --ignore-platform-reqs flags to bypass specific or all platform requirements during Composer install or update.

It's useful when your development environment is missing certain PHP extensions or versions.

CODE SAMPLE Code snippet
// ignore specific one
composer install --ignore-platform-req=ext-php

// ignore all 
composer update --ignore-platform-reqs

--ignore-platform-req=ext-php: Ignores a specific platform requirement, useful when a single extension is missing.

--ignore-platform-reqs: Ignores all platform requirements, useful when multiple extensions or PHP versions are not met.

More engineering notes

Authenticate Users with auth Middleware

Use the auth middleware to enforce authentication for routes, ensuring only authenticated users can...

Sanitize Input to Prevent SQL Injection

Always use Eloquent ORM or Laravel's query builder to interact with the database, which automaticall...