
On this page
If you have a few years of projects in Laragon, rebuilding them by hand in a new tool is the part nobody wants to do. EnvKit has an importer for that. It registers your Laragon project folders as EnvKit sites, turns on the PHP extensions Laragon had enabled, installs the PHP and database server you were using if EnvKit doesn't have them yet, and copies your databases across.
Here is what each step does, and when it skips something on purpose.
Before you start
The Laragon importer is Windows only. On macOS, the equivalent is Tools → Import from Laravel Herd.
You need a web server installed in EnvKit first. The import checks this and stops early with "Install a web server first — open Services and install Nginx, then add or share a site." If it isn't there yet, open Services and install Nginx.
You don't need to uninstall Laragon. The importer reads from it and doesn't move your project folders: each site is registered at the folder where it already lives. Your code stays where Laragon had it.
Quit Laragon before you start. The importer can read from a running Laragon MySQL, but both stacks want ports 80, 443 and 3306.
Where to find the importer
There are two ways in.
- On first run, the setup screen has a "Move from another tool" group. Pick "Import from Laragon".
- Any time later, open Tools in the sidebar and choose "Migrate from Laragon", then click "Migrate from Laragon…".
Both open the same wizard.
Step 1: check the two paths
The wizard asks for two folders, because in Laragon they are often not the same place:
- Laragon root path (PHP / config): where Laragon is installed. The default is
C:\laragon. EnvKit reads PHP's config and Laragon'susr\laragon.inifrom here. - Projects / app folder (sites): the folder that holds your project subfolders. For a default install that is
C:\laragon\www, but plenty of people keep projects on another drive, likeD:\www.
EnvKit fills these in when it can. It reads DocumentRootList from laragon.ini to find your project roots, so a custom location like D:\www is picked up too. If it finds Laragon's MySQL or MariaDB, the wizard shows a "Detected" line with the engine, its version, how many databases it holds and the PHP versions under bin\php.
If the wizard says no Laragon install was found, set the root path by hand with the folder button and continue.
There is also a toggle, "Pause EnvKit services during import (recommended)". Leave it on. EnvKit stops its own services while the import runs, so nothing fights over a port, and starts them again at the end.
Click Migrate.
Step 2: what the import does
A progress log runs while it works. Don't close the window until it finishes. Here is what happens, in order.
Every project folder becomes a site
Each subfolder of your projects folder is added as a site. Hidden folders (names starting with .) are skipped. The site name comes from the folder name: lowercased, with anything other than letters and digits turned into a hyphen. A folder called ShopAPI becomes the site shopapi, served at https://shopapi.test.
A folder is skipped, not imported, when:
- it is already registered as an EnvKit site (so running the import twice is safe),
- its name has no letters or digits left after cleanup,
- or EnvKit refuses the name or hostname because another site already has it.
Skipped folders are listed at the end; you can add them by hand from Sites.
Node projects (Next.js, Nuxt, Vite, Angular, plain Node) also get their dev server turned on, on a free port.
PHP extensions come along
EnvKit reads the php.ini of the newest PHP under Laragon's bin\php and turns on the same extensions in EnvKit's default PHP. Two limits: it only enables extensions that EnvKit's PHP actually has, and it never turns on Xdebug. If an extension won't load, it stays off rather than breaking PHP. If you want Xdebug, turn it on yourself afterwards.
Missing runtimes are installed
If EnvKit doesn't have a PHP yet, or has no MySQL/MariaDB server while Laragon had one, the importer installs them, both at once. Before it does, it ends web server and PHP processes that run from other stacks' folders, like Laragon's nginx, Apache or PHP, so they free the ports. It never ends a database server: a forced kill of mysqld skips its clean shutdown and can damage the data.
Databases are copied
This is where the two engines matter. EnvKit's bundled database server is MariaDB. Recent Laragon versions ship MySQL 8 or 9. MariaDB can't read MySQL 8/9 data files, so there are two paths.
Laragon runs MariaDB. The importer copies Laragon's whole data folder into EnvKit's MariaDB. It copies; Laragon's folder is left in place. It only does this when EnvKit's MariaDB is a fresh install with no databases of its own. If you already have databases in EnvKit, it leaves them untouched and reports that it skipped the copy, so nothing gets overwritten.
Laragon runs MySQL 8 or 9. The importer does a dump and import, one server at a time so they never compete for a port:
- It starts Laragon's own
mysqldon a temporary port against Laragon's data folder, or uses it if it is already running on that folder. - It runs
mysqldumpfor every user database (not the system schemas MySQL ships itself), and rewrites the MySQL 9 collations MariaDB doesn't accept. - It stops that temporary server cleanly.
- It starts EnvKit's MariaDB and creates and imports each database.
Laragon's root user has no password by default, which is what the importer expects. A database that already exists in EnvKit under the same name is left as it is and not imported. Database problems never fail the whole import: the sites are still added, and the result screen shows a "Databases" note explaining what went wrong.
Hosts and certificates
At the end, EnvKit applies the config, starts its services again if it paused them, and writes the hosts entries and SSL certificates for the new sites.
Step 3: read the result screen
When it finishes, you get a summary with five numbers: imported sites, skipped, databases imported, runtimes installed and PHP extensions enabled, plus any database note. If everything was already there, it says "Nothing new to import" instead.
Then check a few things:
- Open Sites. Each imported project is there with its
.testaddress. Open one in the browser; the certificate should be trusted. - Open Databases and confirm your schemas are listed.
- Check each project's
.env(orwp-config.php). The importer doesn't edit your project files. If a project usedDB_PASSWORD=with Laragon's empty root password and EnvKit's root has a password, update the file. - If a site needs a different PHP version than the default, change it on the site's page. The Laragon importer doesn't pin a PHP version per site.
What it doesn't do
To be clear about the limits:
- It doesn't change or remove anything in Laragon. You can keep both installed while you decide, just don't run both stacks at the same time.
- It doesn't move your projects. If you later delete the Laragon folder and your projects were in
C:\laragon\www, the sites go with it. Move the folders out first if you plan to remove Laragon. - It doesn't copy custom nginx or Apache config from Laragon. EnvKit writes its own vhosts per site.
The docs section on the Laragon import has the short version, and the EnvKit vs Laragon page compares the two tools side by side, including where Laragon is still the better fit.
PATH after the switch
If Laragon's bin folders are on your PATH, typing php in a terminal may still run Laragon's PHP. EnvKit's PATH sync removes Laragon, XAMPP and WampServer folders from the PATH it writes. See PATH sync in the docs. After it syncs, open a new terminal and check which PHP answers:
php -vGetting EnvKit
EnvKit is free, with no account and no license key, for Windows, macOS on Apple Silicon and Linux. Grab the installer from the download page, run the import once, and keep Laragon around until you're sure you don't need it.
Try it on your own projects
EnvKit is free, with no account. nginx or Apache, several PHP versions, MySQL, PostgreSQL, Redis, Node and trusted .test HTTPS from one app.
irm https://envkit.net/install.ps1?c=blog-move-from-laragon-to-envkit | iex