Certainly! Here’s a helpful solution you can share on Laracasts:
While Composer is the official and recommended way to install and manage Laravel projects, technically, it's possible to work around it—though not easily or practically recommended.
1. Why Composer Is Needed
Composer handles all of Laravel’s dependencies, autoloading, and some config. Manual installation introduces massive headaches and is error-prone.
2. Certificate Errors Fix (Recommended!)
Since both Composer and Herd throw certificate errors, the root problem is likely your system’s CA certificates configuration or PHP’s openssl.cafile setting.
Quick Fixes:
-
Update your CA certificates (especially on Windows, try updating cacert.pem):
Download the latest cacert.pem.
In yourphp.ini:openssl.cafile=C:\path\to\cacert.pem curl.cainfo=C:\path\to\cacert.pem -
On Macs with Herd:
Sometimes Homebrew/PHP isn’t using the latest certs. Try:brew update && brew reinstall openssl -
On Linux:
sudo apt-get install --reinstall ca-certificates sudo update-ca-certificates
If you can fix the Composer error, that is by far the best route.
3. Manual Installation ("Without Composer")
If you really want to avoid Composer:
- Download a fresh Laravel release from GitHub releases.
- Unzip it and upload/copy it to your server/folder.
BUT:
Laravel will NOT run without its vendor directory (dependencies).
You must somehow “copy” a /vendor folder from another, same-Laravel-version project, or download one from somewhere else (not safe, not recommended).
4. Docker or Pre-bundled Environments
If local Composer isn’t working, consider:
- Using Laravel Sail (Docker), which can manage dependencies in a container where Composer isn’t required on your host machine.
- Or initialize on another machine and move the project after running
composer install.
5. Summary
- Best fix: Resolve your Composer certificate issue.
- Workaround: Copy vendor dir from another machine. Danger: you might get mismatched or insecure files.
- Alternative: Use Sail/Docker for install, then work locally.
In conclusion:
Laravel is really built to work with Composer. Fixing your certificate error is the best path—anything else will be technically possible but much more painful.
Let me know if you need more concrete steps for your specific operating system!