Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Abid's avatar
Level 11

How use Sublime PHP Lint with Homestead/Vagrant

I'm a Windows User and use Sublime 3 as my development editor. I use package Sublime-PHPCS for linting php errors. All this time I've been using XAMPP where PHP is installed on my main system and I can set it's path in my editor. Now I've been thinking about getting rid of XAMPP and use Homestead or any other Vagrant Boxes to manage my development.

However I can't get how to use my Host Machine's Sublime 3 PHP linting system (Along with PHPCS, PHP-CS-FIXER etc) to work if my PHP installation is in the VM. When PHP was installed on my main machine, this wasn't an issue. But now that I want specifically use a VM for my day to day development, I need a solution of targeting the VM's PHP.

If anyone know a solution, please do let me know.

0 likes
3 replies
BorisG's avatar

Just install PHP on your machine as well. The CLI version'll be enough for that.

samuli-ade's avatar

How about when you have 5.3 on your machine but want 7.0 linting from vagrant machine?

bobbybouwmann's avatar

@samuli-ade Install 7.0 on your machine?

You can switch between PHP version if you want to. I only know how on Mac and Unix, but Windows should probably work as well

Please or to participate in this conversation.