Laravel Made Easy: One Command for PHP, Node.js, and Composer

Laravel Made Easy: One Command for PHP, Node.js, and Composer

Posted By

kamlesh paul

on

Dec 17, 2024

In the past, running Laravel required manually installing PHP, Composer, and Node.js, which could be challenging for newcomers. To address this issue, Laravel now offers a new command that installs all three components in a single step.

Table of contents

Installation Commands:

  • For Mac:
/bin/bash -c "$(curl -fsSL https://php.new/install/mac)"
  • For Windows:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows'))
  • For Linux:
/bin/bash -c "$(curl -fsSL https://php.new/install/linux)"

Verification

  • After installation, restart your terminal and check the versions of the installed components:
php -v
node -v
composer -v

For further details on installing PHP, you can refer to the official Laravel documentation here.

This simplified setup streamlines the process for new users, making it easier to start developing with Laravel..

Share this article

18 views