Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

purpletree's avatar

Removing Laravel & Composer? Happy to pay for help.

How do I completely remove Laravel and Composer?

I have installed both but I was unable to get my project set up. Since then I've gone on the internet and typed so many things into my command terminal and as a result, I've gone backwards!

I'd like someone to help me completely uninstall and reinstall Laravel and Composer so I can follow along with the tutorial.

Happy to pay for help.

Thanks

0 likes
8 replies
purpletree's avatar

I typed in the following to see if Laravel was installed

php artisan --version

I get “Could not open input file: artisan”

So not installed, right?

When I try to install it using composer global require laravel/installer

I get the following:

Changed current directory to /Users/aman/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 1 update, 0 removals

  • Downgrading laravel/installer (v2.3.0 => v1.5.0): Downloading (100%) Writing lock file Generating autoload files 6 packages you are using are looking for funding. Use the composer fund command to find out more!

What is going on here?

jovanvta's avatar

If you've just started new laravel project the easiest way is to empty or delete folder containing laravel project.

purpletree's avatar

@jovanvta I never got to that stage! I'm actually wondering whether I should just restore my mac and start again. It's not something I want to do but it's one way to start over completely. I've been sat here for 6 hours trying to solve this... I'm not giving up! lol

Snapey's avatar

php artisan runs the artisan file in the current folder - normally the root of your Laravel project

This has NOTHING to do with;

composer global require laravel/installer

This installs the laravel installer into your system so that you can create a new project at any time using the installer. Not sure why you specified an old version of the installer?

jovanvta's avatar

If you want to remove globally installed laravel package edit ~/.composer/composer.json (or in your case /Users/aman/.composer/composer.json) and then run composer global update.

Hilal_Ahmad's avatar

i want to uninstall laravel globally how should i do it?

Please or to participate in this conversation.