PHPStorm + XDebug Setup Walkthrough

I’ve found a more modern and easier solution partially based on CrasyCoder’s post. The steps you need to do are the following: If your brand new php installation doesn’t contain php.ini, rename the php.ini-development to php.ini Install xdebug with help of the wizard: http://xdebug.org/wizard.php Follow its recommendations literally. Put in your php.ini the string: xdebug.remote_enable=1 … Read more

PhpStorm – Advantages of Editing Deployed Files Directly vs Downloading and Syncing

If I edit files directly on the deployed server, would any PhpStorm functionality be lost? Yes. To name a few: IDE cannot index files that are not in the project and therefore cannot provide any code completion help for classes/functions/etc that defined on remote only files; True project-wide search is not possible (as it works … Read more

Difference between WebStorm and PHPStorm

I couldn’t find any major points on JetBrains’ website and even Google didn’t help that much. You should train your search-fu twice as harder. FROM: http://www.jetbrains.com/phpstorm/ NOTE: PhpStorm includes all the functionality of WebStorm (HTML/CSS Editor, JavaScript Editor) and adds full-fledged support for PHP and Databases/SQL. Their forum also has quite few answers for such … Read more

XDebug and RESTful server using PHPStorm or POSTman

You can use one of these approaches: Configure your Xdebug (by editing php.ini) to attempt to debug every PHP script. The key option: Xdebug v2: xdebug.remote_autostart = 1 Xdebug v3: xdebug.start_with_request = yes Add Xdebug session start parameter to the actual URL (XDEBUG_SESSION_START={{KEY}} — https://xdebug.org/docs/step_debug#manual-init), for example: ?XDEBUG_SESSION_START=PHPSTORM Pass Xdebug cookie as part of the … Read more

Eloquent ORM Code Hinting in PhpStorm

For future Googlers, and perhaps OP as well if you are still sticking to Laravel. The laravel-ide-helper package solves this issue for you quite elegantly, with what I believe is a relatively new feature; generated model PHPDocs. You can generate a separate file for all PHPDocs with this command: php artisan ide-helper:models The generated metadata … Read more

PHPstorm 10.0.3 Error 502 Bad Gateway (Due to JavaVM?)

You are using PhpStorm’s own built-in web server, which has some issues right now (especially with POST requests, e.g. WEB-17317). The solution is to use your own proper web server (Apache/IIS/nginx/whatever). Define Deployment entry. In place type should be fine, as long as your Apache/IIS can serve files from that location; otherwise either configure web … Read more

Find and replace opening and closing HTML tag with specific class using Regex

Here is working example: https://regex101.com/r/UQrpTV/1 First group is > (<div.*.panel-default\”\>) second > (.*) third closing tag > (<\/div>) and you substitute second group > <x-panel>$2</x-panel> I don’t have phpstorm but also note that you have to enable global, multiline, insensitive case and don’t match new line to have it like this working in your editor … Read more

tech