Support the ongoing development of Laravel.io →
Installation
Last updated 2 years ago.
0

Do not bother renaming the file, and do not bother with /usr/local/bin. Just place laravel.phar in the folder where you are going to use it.

Then, make sure you have the PHP curl module installed. On OpenSuse: sudo zypper install php5-curl.

Then create your new Laravel application with the following command (notice you use the php command to execute the .phar file): php laravel.phar new <project-name>, e.g. php laravel.phar new sandbox. A new subfolder will be created with the project-name as its name, containing the skeleton of a Laravel application.

Last updated 2 years ago.
0

This is happening to me now and I tried what you suggested.

$ php laravel.phar new newproject

No error, no output, no new project... nothing.

Last updated 2 years ago.
0

After some digging I found out that it is because I'm using suhosen. Anyone else having this problem and using suhosen would need to add:

suhosin.executor.include.whitelist = phar

to: (for Debian)

/etc/php5/cli/conf.d/suhosin.ini

or at the end of:

/etc/php5/cli/php.ini

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.