Laravel: Difference between revisions
From AWVVO
Jump to navigationJump to search
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
php -r "unlink('composer-setup.php');" | php -r "unlink('composer-setup.php');" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Install the Laravel installer via Composer == | |||
<syntaxhighlight lang="bash"> | |||
composer global require laravel/installer | |||
</syntaxhighlight> | |||
== Create new application == | |||
<syntaxhighlight lang="bash"> | |||
laravel new example-app | |||
</syntaxhighlight> | |||
[[Category:Laravel]] |
Latest revision as of 13:58, 19 January 2025
https://getcomposer.org/download/
Install composer
Command-line installation
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Install the Laravel installer via Composer
composer global require laravel/installer
Create new application
laravel new example-app