Fatal error: Class ‘Illuminate\Foundation\Application’ not found

In my situation, I didn’t have the full vendor dependencies in place (composer file was messed up during original install) – so running any artisan commands caused a failure. I was able to use the –no-scripts flag to prevent artisan from executing before it was included. Once my dependencies were in place, everything worked as … Read more

Composer cannot download files

If you are using composer from behind an HTTP proxy, you can use the standard http_proxy or HTTP_PROXY env vars. Simply set it to the URL of your proxy. Many operating systems already set this variable for you. eg: HTTP_PROXY=”http://my-corp-proxy.mcdonalds” php composer.phar install bonus points if you throw it into your bashrc if your on … Read more

Composer [UnexpectedValueException] error will trying to use composer to install a github project

I started getting a similar error and the reason was that Github recently changed the format of their auth tokens: https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available/ To resolve the error: Find the composer/auth.json file (if you’re running the project in a container, you’ll have to bash into it and find the file in there) Remove its github.com entry. Your file … Read more

3rd party dependency conflict in developing WordPress Plugin

Welcome to WordPress hell. We have 2018 and WordPress still does not have any dependency management and still didn’t notice Composer existence. WordPress ecosystem simply relies on assumption, that functions/classes names of plugins/themes should be unique. Obviously distributing popular 3rd-part Composer libraries with your plugin/theme is asking for trouble – it is easy to get … Read more

Running Composer returns: “Could not open input file: composer.phar”

If you followed instructions like these: https://getcomposer.org/doc/00-intro.md Which tell you to do the following: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer Then it’s likely that you, like me, ran those commands and didn’t read the next part of the page telling you to stop referring to composer.phar by its full name and … Read more