PhpStorm 2017.3. EAP 173.3302.10
The new PhpStorm 2017.3 EAP build (173.3302.10) is now available! You can download it here or via JetBrains Toolbox App. Or, if you have the previous PhpStorm 2017.3 EAP build (173.3188.26) installed, you should soon get a notification in the IDE about a patch update.
This build delivers new features, bug fixes, and improvements for PHP and the Web, and includes the latest improvements in IntelliJ Platform.
REST Client: Support environment variables
This build brings the support of environment variables for our new REST client. Now you can easily switch between different environments, e.g. production, testing, development.
Environment variables can be defined in rest-client.env.json file, that should be stored inside the project. If a variable is not defined in the environment file, the variable text will be sent instead, (e.g. “{{unresolved-var}}”). An environment variable name should consist of letters, digits, underscore sign ( _ ) or hyphen sign (-). It can be used in request host, port, path, query parameter or value, header value. See related issues for current limitations: WEB-28638
Current environment can be chosen on execution. The previously used environment should appear at the beginning of the execution options and will be used for ‘Structure View’ and ‘Open in browser’ actions.
Let’s look at the specific example. We create rest-client.env.json with the content:
{ "dev": { "host": "localhost", "id-value": 12345 }, "prod": { "host": "example.com", "id-value": 6789 } }
Then we create test.http file:
GET http://{{host}}/api/json/get?id={{id-value}}&key={{unresolved_var}}
Now when we run the request using dev environment we get:
GET http://localhost/api/json/get?id=12345&key={{unresolved_var}}
From the platform side the update brings:
- Vue.js is now bundled in PhpStorm
- Databases: Support Postgres Foreign Data Wrappers (DBE-1865)
- Databases: Group Data Sources by folder (DBE-77)
See the full list of bug-fixes and improvements in our issue tracker and the complete release notes.
Download PhpStorm 2017.3 EAP 173.3302 for your platform from the project EAP page or click “Update” in your JetBrains Toolbox App. And please do report any bugs and feature request to our Issue Tracker.
Your JetBrains PhpStorm Team
The Drive to Develop