Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Install Laravel without using Composer?

I'd like to know if I can install or use the Laravel PHP framework on any web server without using Composer (PHP package/dependency manager) every time?

I would like to be able to drop my app on to any web server (like a shared server without access to the command line).

If I run composer install the first time (locally), then all the dependencies should be present, correct?

Then, I should be able to drop it onto any server with all of the files (including the vendor directory)?

like image 320
ryanwinchester Avatar asked Apr 11 '13 03:04

ryanwinchester


People also ask

Why does Laravel need composer?

In Laravel, the composer is a tool that includes all the dependencies and libraries. It helps the user to develop a project with respect to the mentioned framework. Third-party libraries can be installed easily using composer. Composer is used to managing its dependencies and the dependencies are noted in composer.

Is composer part of Laravel?

Composer in Laravel is used to manage their dependencies. Once Composer is installed, download the framework and extract its contents into a directory on your server.

Do I need to install composer?

yes, but it's not necessary to download vendors with composer install . you can move composer binary file to Server and move your vendor too, then place vendor folder on your project and use composer dump-autoload . 's that means we can't setup application without composer.

How do I install composer PHP packages without composer?

All packages using composer are still mere directories full of PHP files. You can install them exactly the same way you did before composer existed: copy them somewhere and include the files. Composer-based installation implies running a single command, which is almost always shown in the package home page.


2 Answers

If you really wanted to, you could do all the work that Composer does manually, but you definitely should not. Installing Composer is easy, it's just a matter of getting the composer.phar file and running commands on it.

You do not need to run Composer on your server as well as locally, once you run composer install or composer update your project will have all its dependencies available and you can just upload it straight to your server.

like image 145
Dwight Avatar answered Oct 03 '22 19:10

Dwight


You cannot install laravel local without composer in your project.

like image 40
Flávio H. Ferreira Avatar answered Oct 03 '22 20:10

Flávio H. Ferreira