How to install Laravel from a phar file?

I downloaded the laravel.phar file, renamed it to laravel, moved it to / usr / local / bin, and then made it executable to everyone.

I tried in my home directory laravel new sandbox, but nothing happens.

What have I done wrong?

Thanks.

+4
source share
3 answers

Do not try to rename the file and do not worry about / usr / local / bin. Just place laravel.phar in the folder where you are going to use it.

Then make sure you have the curl PHP module installed. In OpenSuse:

sudo zypper install php5-curl

Laravel ( , php .phar):

php laravel.phar new <project-name> 

. php laravel.phar new sandbox. , Laravel.

+9

:

curl -O http://laravel.com/laravel.phar && chmod +x laravel.phar && mv laravel.phar /usr/local/bin/laravel
+4

.

  • script laravel.bat
  • laravel.bat

@ECHO OFF

php "% ~ dp0laravel.phar" % *

3. laravel.bat , PHAR (laravel.phar)

4. .

... CMD , laravel, return

0

Source: https://habr.com/ru/post/1526863/


All Articles