RyanWinchester RyanWinchester - 3 months ago 40
PHP Question

Can I Install Laravel without using Composer?

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


  • I am learning PHP and frameworks and I am working on a CMS based on Laravel for practice.

  • I would like to be able to drop it onto any webserver without having to use composer every time.



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)?

Answer

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 it's dependencies available and you can just upload it straight to your server.

Comments