Development

Full installation & Config Sublime Text PHP linter Full Details With Screenshot

Did you want to check PHP Error in your sublime text editor?
And you already install¬†php linter didn’t work?
Don’t worry about this,
In this post,
I’m gonna show you details about PHP linter and PHP Error checking system in your sublime text editor.
Don’t further delay, let’s get started
In full process, I work in sublime text 3 if you have to install sublime text 2 so, please reinstall it to sublime text 3, it’s updated version and you get Some more extra features then sublime text 2.

For this, you need to install tow sublime text plugin, one is “Sublimelinter” and another one is “PHP linter”.
To get sublime text plugin installation features you need to install sublime “Installation – Package Control”. install the script, if you already have installed it’s ok for you.

Now you need to install Sublimelinter, to install this open sublime text then go tools -> Command Palette or you can press “Ctr+Shift+p” to open command panel, Type “install package” in the search box then press enter to go Control Package.
After this just type, Sublimelinter and press enter to install, wait few secs to complete the install process. then again do the same process to install PHP linter. after installing both plugins close sublime text. you have completed the first step.

Then now the second step to install PHP on your PC. Direct PHP installation processor is very difficult, so I will show another way to work PHP globally into your pc.
if you work with PHP if have install localhost server on your PC right? in localhost software Already have PHP, we just make it work globally. In my pc, I have installed “XAMPP” if you have installed “WampServer” find the PHP folder in Wamp installation folder and then copay the link path. Same to XAMPP go to XAMPP installation folder then find PHP folder, open the folder and copy folder path.
Then Right click my “My Computer” or “This PC” Then click properties, in left, you can see “Advanced system setting” click this, after clicking this you can see a pop window like the screenshot.

Click “Environment Variables” then form “User Variables for Perfect” box, find path select and click “New…” to add the path in Environment Variables.
Then in popup add the path URL and variable name like the screenshot. after this click ok to all window.
You are welcome you have successfully done all need task to work PHP linter. Now let’s check how it works, open sublime text and create a PHP file, and try to write a PHP code and do an error to check its work or not. if you get an error like the screenshot you successfully complete the process.

You can check out video to get more details

If you have any questions please, leave a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment