I learned this method after watching the live broadcast of Huangdao master last night. Today, I will share this skill with you at noon. We are debugging
HyperfYou may always need to restart some services and click again
postmanInterface request button, check whether the debugging results are normal, this article is to teach you how to use the
PhpStormTo complete this series of operations.
1、 Hyperf quick restart
PhpStormThe button in the upper right corner, as shown in the figure:
Click the Add button in the top left corner of the pop-up box, and then clickPHP ScriptAs shown in the figure:
Fill in the PHP script information:
Name: the name of the script. Here we call it hyperf
If there is a pop-up option for you to select fix, just open it and select the corresponding PHP version
Fill in the above information, as shown in the figure:
Using the script information we just configured, click
PhpStormIn the upper right corner, select the one you just configured
HyperfScript, as shown in the figure:
After selection, click the start button next to it to run
HyperfAs shown in the figure:
In this way, the opening is successful. Let’s have a try, as shown in the figure:
Use shortcut keys to restart quickly (my method here may not be the most convenient, if there is a more convenient one, please improve ~)
phpstormClick keymap on the left to see what the run shortcut in tool windows is. Here I use Mac, as shown in the figure:
My key is Command + 4, which can call up the script running window, as shown in the figure:
Then the restart command is Command + R, which is a bit like browser refresh. For windows, put the mouse on the green restart icon in the lower left corner, and you will be prompted with shortcut keys, as shown in the figure:
The operation is as follows:Command + 4 and Command + RYou can quickly restart the hyperf service.
2、 Configure phpstorm’s rest client interface to request clients
1. Open the rest client
PhpStormTop Toolbar, find
ToolsAfter clicking, put the mouse on the
HTTP clientThere are three options, we choose
Test RESTful Web ServiceAs shown in the figure:
2. How to use it?
It’s actually very simple, and
postmanUsage is almost the same, the above parameters also explain it to you!
HTTP method: request method
As shown in the figure, the request is successful
Although this tutorial is very simple, no technical content, but still released to the community to help more new contacts
HyperfLearn together and make progress together!
This work adoptsCC agreementReprint must indicate the author and the link of this article