I downloaded Eclipse PDT, Zend, and Netbeans (trial) and they only seem to have support for PHP on a web server. I want to use PHP CLI as a programming language, is there an IDE for it?
Edit: I don't want to use the command line. I want a program that can run PHP CLI in a GUI.
Komodo allows you to run your scripts in CGI environment.
NuSphere has command line tab.
Zend Studio has PHP CLIs both version 4 and version 5 installed within the IDE,
PHP CLI PHP IDE allows you to quickly test PHP CLI script,
You can write PHP code with any editor, including the ones you mentioned and run it from the command line like this:
php yourscript.php
The file syntax should be as usual, your script should start with so they can be processed by the interpreter
NuSphere PHPEd supports PHP CLI.
Related
PhpStorm has built-in HTTP Client (https://www.jetbrains.com/help/phpstorm/http-client-in-product-code-editor.html), with JS support, which allows for writing tests. This is really handy, but would be even better, if we had a way to run those tests apart from PhpStorm, in CI environment or in console.
Is the any way to run them separately, or any script/library than accepts same syntax?
It is possible now.
I just built an open-source CLI application that support execute your existing http request files.
You can download the tool from: https://github.com/quangson91/intellij_rest_cli
Usage:
java -jar /path/to/restcli-1.0.jar -e "test" -s get-requests.http
This tool support:
Execute Intellij HTTP request files.
Running test script inside request files.
Loading and inject environment variables from
http-client.env.json
http-client.private.env.json
Cross platform: Windows, macOS, and Linux ready.
Generate test report - JUnit format. 🥰🥰🥰 So you can show test report in the CI system.
Not currently possible.
https://youtrack.jetbrains.com/issue/IDEA-239345 -- watch this ticket (star/vote/comment) to get notified with any progress.
I am able to successfully run shell scripts and create and configure shell script run configurations in IntelliJ. However, I can't set breakpoints. When I try to put a breakpoint in the gutter or elsewhere as with regular Java debugging, no breakpoint appears. Has anyone had success with this, and if so how?
I'm using IntelliJ 2018.3.6 Community Edition.
Shell script debugging is supported only by the paid BashSupport Pro plug-in. You would also need the latest IntelliJ IDEA version to use it.
BashSupport Pro adds advanced features for shell scripts to your
JetBrains IDE. You can debug Bash scripts, run bats-core tests and
work efficiently with shell scripts.
I installed groovy through sdkman on mac. When i try to create a new groovy project in intellij, it asks for groovy library location. Where can i find the installed groovy?
I ran into similar issue. By using
/Users/<username/.sdkman/candidates/groovy/current
or
/Users/<username/.sdkman/candidates/groovy/<version>
worked for me.
Adding the answer that solved my problem (thanks to ThomasW comment)
When dialog box is opened you can click CMDSHIFT.
and this allows you to pick the hidden folder in the open dialog box.
Then you can use:
/Users/<username>/.sdkman/candidates/groovy/current
Just run $ which groovy after have it installed.
You may not be able to find groovy path with which command.
After installation of sdkman on linux-like systems Mac OSX, Linux, Cygwin, Solaris and FreeBSD, First, run $ source "$HOME/.sdkman/bin/sdkman-init.sh", then you will be able to access the installed development kits.
Namely, if you type 'which groovy' it should show the path, and you can invoke other SDK commands.
I would like to run PHPUnit tests on the development server as opposed to my desktop.
Using PHPStorm Run debug configuration I have created new PHPUnit on Server configuration.
However when I try to run it, PHPStorm does not seem to be able to see the XML configuration file. The path to the XML configuration file is on the local desktop, so it makes sense that PHPStorm runner would not be able to find the file on the server. However PHPStorm does not allow me to supply the path on the server.
P.S. I was able to run tests manually on the server and on my local desktop. In this question I am trying to figure out how to run the tests on the server directly from PHPStorm.
P.P.S. Could this be a bug in PHPStorm? if yes, then I'll submit it.
So far this seems to be an issue in PHPStorm. I have filed the issue here: http://youtrack.jetbrains.net/issue/WI-9369
I want to config yii on windows, but i can not run Yii Interactive Tool. all documents i read is for Linux that have below syntax:
%YiiRoot/framework/yiic shell
but i am using xampp on windows, how can i do this?
What is it you want to do with the tool? If it's code generation use the web-based Gii instead.