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
.testdomain right out of the box.Simpler: Click-click and you're done. XAMPP or MAMP can never.
How to Install Laravel Herd:
macOS: Download from
, open theherd.laravel.com .dmgfile, and drag it to your Applications folder.Windows: Download the installer from
, run theherd.laravel.com/windows .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.testto 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: Download the appropriate version from
and follow the standard installation prompts for your operating system.dbngin.com
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.
Comments
Post a Comment