Setting up a local environment doesn't have to be finnicky. Move those config files into the trash bin. Doesnt matter the platform (macOS & Windows compatible), these modern tools make your local environment simpler. Well, at least simpler than XAMPP or MAMP lah.
Laravel Herd
Blazingly fast, native local environment for PHP and Laravel projects. Also support other frameworks like CI3 and such.
Why?
Plug-and-play bro. No manual config required.
Easy access
Your projects can be accessed instantly via a .test domain right out of the box.
Simply lovely
Click-click and you're done. XAMPP or MAMP can never.
Installing Laravel Herd
macOS: Download Herd for macOS, open the .dmg file, and drag it to your Applications folder.
Windows: Download Herd for Windows, run the .exe, and follow the setup wizard.
Setting Up Your First Project:
- Open the Herd tray icon and navigate to Settings > Sites.
- Click Add site and point it to your project folder.
- Ensure your PHP version matches your project requirements (check this via the Herd tray).
- On Windows, you may need to manually add 127.0.0.1 foldername.test to your hosts file if it doesn’t auto-resolve.
- Access your site at http://foldername.test.
DBngin
All-in-one tool for managing local database like MySQL, MariaDB and more.
Simple Controls
Basic start/stop controls. Even a monkey can use.
Compatibility
Just like Laravel Herd, it's simpler than XAMPP/MAMP and fully supports macOS and Windows.
How to Install DBngin:
macOS/Windows - DBngin Download
After downloading, just follow the standard installation prompts for your operating system.
Creating a New Database Server:
- Launch DBngin and click the + icon to add a new server.
- Choose MySQL or MariaDB, select your preferred version, and click Create.
- Click Start to run the server.
- The default port is 3306. Adjust this based on your need.
That's it folks. Now your local environment is faster and more modern. Good luck coding.
Comments
Post a Comment