Questions tagged [phpstorm]
JetBrains PhpStorm is a commercial IDE for PHP built on JetBrains' IntelliJ IDEA. PhpStorm provides an intelligent editor for PHP, HTML, CSS and JavaScript with refactoring and on-the-fly code analysis.
phpstorm
7,581
questions
14
votes
9
answers
31k
views
Mysql Connection with Phpstorm IDE
For those of you who are familiar with Phpstorm I am using version 2.0.1 as writing this question.
I am on a Mac using MAMP. I tried to connect my database with Phpstorm but it is a bit confusing.
I ...
6
votes
4
answers
8k
views
PhpStorm, PHPUnit and setcookie
I'm trying to make some unit tests using a setcookie() function in a pretty good IDE PhpStorm. But I get a following error every time:
Cannot modify header information - headers already sent by (...
1
vote
1
answer
198
views
File template variable ${TIME}
In PHPStorm, the file template variable ${TIME} renders as one hour ahead of my system time.
Does anybody know why this might be happening?
0
votes
1
answer
371
views
PHPStorm/Webstorm setting to adjust # of "peek" lines at top of control statement
In PHPStorm, WebStorm, and MPS, is there a setting or way to get the "peek" functionality to show two lines on a control statement (that is, IF or FOR or WHILE) when using Allman/BSD style coding (...
26
votes
7
answers
29k
views
Debug PHP command line script in PHPStorm
I use PHPStorm as my primary tool for debugging PHP and am very pleased. So far I've been using Firefox to run the scripts, and PHPStorm catches breaks perfectly.
Now I have a situation where I am ...
11
votes
1
answer
5k
views
How to integrate Behat with PHPStorm / other IDE
Behat is the leading BDD framework for PHP. I use PHPStorm and want to integrate Behat into the IDE as an external tool.
Question: How should I set up Behat as an external tool (ie, output filters, ...
1
vote
2
answers
779
views
How to enable zencoding support in smarty templates with PhpStorm
How do you enable the ZenCoding "live templates" in .tpl smarty templates in Jetbrains PhpStorm? It works flawlessly in .php and .html files but not in .tpl files.
2
votes
1
answer
2k
views
How can I get PhpStorm to go to the right declaration
I have the following snippet of code.
abstract class MrParent {
public function __construct() {
$this->var = 'a';
}
}
class MrChild extends MrParent {
public function hello() {
echo ...
26
votes
2
answers
11k
views
How to perform Subversion's switch in PHPStorm
Is it possible to make a switch Subversion command from interface of PHPStrom? I'm searching for it and searching and can't find it.
1
vote
1
answer
2k
views
Local web server configuration for PhpStorm
I'm new to PhpStorm. In the previous IDE that I used to code in, I had the ability to specify/configure the php engine and web server root directory in my development machine only one time and run any ...
156
votes
11
answers
54k
views
Wrong syntax highlighting for PHP file in PHPStorm
I don't know what happened but syntax highlighting for one php file stopped to working and also icon next to the file has changed. It shows it's text file instead of PHP .
How can I fix that ?
11
votes
1
answer
6k
views
Debug VM with xDebug and PhpStorm
My work setup is a Windows XP host, running an Ubuntu VM LAMP stack. I am using PhpStorm to edit my code on my host Windows machine. Upon saving files are automatically uploaded to the VM via SFTP. ...
172
votes
9
answers
150k
views
How can I set the PHP version in PHPStorm?
Is it possible to set the PHP version value, say 4.0+ and have PHPStorm highlight functions that wouldn't work with the oldest version? For example, for PHP4 this should highlight static function etc. ...
16
votes
5
answers
8k
views
How to activate function reference in WebStorm/PHPStorm?
Is there function reference integrated in PHPStorm/WebStorm ?
I mean like when i point my cursor on some php function , then I press e.g. F1 and it will show me function details (parameters, usage...)...
5
votes
3
answers
3k
views
How to prevent PhpStorm to save file on exit without prompt?
Consider this situation...You're just making changes to few files at once. The code isn't completed yet and the phone is ringing... Then you have to close PhpStorm, turn off your computer and hurry ...
2
votes
1
answer
1k
views
Using PHPStorm against the Drupal code base produces many false errors
Has anyone managed to use PHPStorm with the Drupal code base? I keep getting many false errors about undefined variables. I've added *.module, *.inc, etc to the list of PHP file types but I still get ...
14
votes
3
answers
8k
views
NetBeans "Shift Left" analog on PHPStorm
I am deciding to migrate from NetBeans to PHPStorm IDE, and the only feature I have not found in PHPStorm is "Shift Left (Right), Move Down (Up)", which moves a line on one tab to the left, right, or ...
3
votes
7
answers
2k
views
PHP developing suite? [closed]
I use Visual Studio to develop C#, C++ for about 10 years.
Is there a free or inexpensive development platform similar to Visual Studio Express (maybe even a plugin for Visual Studio!) that would ...
49
votes
4
answers
37k
views
How to exclude files / code blocks from code coverage with Netbeans / PHPStorm / PHPUnit integration
Requirements:
Netbeans with PHPUnit(6.9)
EDIT: Same applies, for example, to PHPStorm
How to:
Exclude lines from code coverage.
Exclude code blocks (lines) from code coverage.
88
votes
2
answers
49k
views
JetBrains WebIDE: PHP variable type hinting?
Is there a way to hint WebIDE that a variable has some type?
I have to iterate an array of objects, and there's no auto-completion available.
This helps in ZendStudio:
/* @var ClassName $object */
I ...
402
votes
30
answers
358k
views
How do you debug PHP scripts? [closed]
How do you debug PHP scripts?
I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.
What is the best (in terms of fast and ...