![]() Now you're ready to go and Tinkerwell will now evaluate your PHP code on your configured server. Once you have configured and stored your remote server credentials, you still need to provide the path mapping, so that PHPStorm knows in which directory your code lives.Ĭonfigure your path mappings, so that you map your local directory to your remote directory on the configured server. Click on the three dots to configure a new remote PHP interpreter.Ĭlick on the "+" button and create a new remote PHP interpreter.Ĭhoose "SSH" and configure your remote server connection In order to use a remote interpreter, go to your project settings to "Languages & Frameworks" and choose "PHP". The plugin makes use of your configured PHP CLI interpreter. The Tinkerwell PHPStorm plugin can also run your code on remote SSH servers. Feel free to change those to your liking. You can either use the context menu in your PHP file to choose "Run with Tinkerwell", or you can make use of the existing key-bindings. To use the Tinkerwell plugin within PHPStorm, you can either create a new scratch-file and run the code from that file, or use it within your existing PHP files. Provide your Tinkerwell license key and press "Apply" to activate the plugin. Use your site's SFTP connection information to configure the Connection tab:Īuth Type: Select Password and specify password, or key pair and select your private SSH key.After installing the plugin, go to your PHPStorm settings and you will find a new entry called "Tinkerwell" in the "Tools" section of your settings: option.Įnter your Pantheon site name, followed by a dash and the environment. Open your PhpStorm project, select the Tools Menu, select Deployment, and then click the Configuration. Set your Dev environment to SFTP mode, and click Connection Info to see the connection settings. ![]() Select Executable Available and enter the file path to your local wp directory.Ĭonfigure Your Pantheon Development Environment Navigate to the Tools Section, click Command Line Tool Support, and then click the + icon to add an entry. ![]() Launch PhpStorm, click Menu, and then click Preferences. You can configure PhpStorm to recognize WP-CLI from within your project after you have installed WP-CLI on your local machine by following these steps: NoteYou must successfully create a project before adding WP-CLI as a Command Line Tool. This is useful if you have a local development environment and want to use WP-CLI to manage it. Many WordPress plugin developers use the command line tool WP-CLI. You can find a PHP file in the project's root with the standard plugin header for WordPress. There will be no open files in your project after you complete these steps. Specify or browse to the root directory for your local WordPress site, and click Create. This is where PhpStorm will store working files, and should be separate from your WordPress directory. Specify or browse to the file path to save your project's files. Select WordPress Plugin as the project type on the left sidebar. Create a PhpStorm ProjectĬlick Create New Project in the startup window or go to File Menu, and click New Project. Clone the Code RepositoryĬopy your site code to your local workstation using SFTP or clone your site codebase with Git. This site should be empty to develop your new plugin or theme. Create a WordPress siteĬreate a new WordPress site on Pantheon if you don't already have one. The steps in this section focus on integrating and showcasing the PhpStorm workflow and is current as of PhpStorm version 2017.1.4. Refer to WordPress Development using PhpStorm for more information. Follow the steps below to set up a local environment in PhpStorm to create your custom plugins and themes. This allows you to build and maintain custom plugins. ![]() JetBrains PhpStorm is a commercial PHP IDE that can be configured to work with WordPress sites. This section provides information on how to configure your local environment to build WordPress plugins or themes with JetBrains PhpStorm. Here are the steps of installing and running the software: To download and install this IDE, just go to JetBrains and download PhpStorm suitable to your. Edit this page on GitHub | Report an issue with this doc
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |