In the hands-on PhpStorm workshop materials, you'll learn about many of the features and productivity tools available in PhpStorm IDE. Here's a 5-minute screencast guiding you through the materials:
To complete the workshop materials, you will need at least PhpStorm version 7.1 installed on your system, either the full version or a free trial. Many things will work with earlier versions, too, but to do everything in these materials version 7.1 or higher is recommended.
Also make sure you are running PHP, a webserver and a MySQL database on your machine:
A git command line will be great to have as well.
1. What is covered?
This course does not cover every option and feature in PhpStorm. Instead, it gives a number of practical exercises to enhance your every-day workflow as a PHP developer.
Those exercises come as a PhpStorm project in which every file is a new exercise that may contain code and tips to get things done. There are exercises around navigation, editing, inspections, live templates, refactoring, tools like Composer and the REST client and many more things.
This workshop is self-paced, meaning you can work your way through slides and exercises on your own, whenever and wherever you want.
2. Keyboard shortcuts
We'll cover a vast amount of keyboard shortcuts to enjoy productivity in PhpStorm. Other IntelliJ IDEA based IDE's use the same keyboard shortcuts, so if you know how to work with PhpStorm, you'll know how to work with WebStorm, RubyMine, PyCharm, IntelliJ IDEA and more. A cheat sheet is available online and is also included in the workshop download.
3. Getting started
Let's fetch the workshop materials! We will start PhpStorm and create a new project based on Composer.
3.1. Create a new project in PhpStorm using the Composer project type
The Composer project type allows us to create a new project based on packages available through Packagist.
3.2. Find the jetbrains/phpstorm-workshop package
We can search for the package to install. The jetbrains/phpstorm-workshop package contains all workshop materials, including slides and exercises.
Hit OK to download the contents.
3.3. Explore the project
The project contains a number of different folders and files. These correspond with the topics in the slide deck. Inside every folder there are one or more exercises. Most exercises are self-contained, others build on previous exercises.
In the project root, there are some other files as well:
- The PhpStorm Workshop.pptx / PhpStorm Workshop.pdf is a slide deck which summarizes many of the items covered in exercises.
- The PhpStorm Reference Card.pdf is the PhpStorm keymap. The latest version can always be found on the PhpStorm website.
4. Feedback and pull requests
If you find an error and know what is wrong, feel free to fix it and send a pull request. If you discovered an interesting PhpStorm feature which is not covered, fork our GitHub repository, add your content and send us a pull request.
Feedback is welcomed through the comments below or on GitHub.