jetbrains/phpstorm-workshop
Composer 安装命令:
composer create-project jetbrains/phpstorm-workshop
包简介
Materials for the PhpStorm workshop. Check https://github.com/jetbrains/phpstorm-workshop/ for more info.
README 文档
README
PhpStorm Workshop
In these materials, you'll learn about many of the features and productivity tools available in PhpStorm. Examples are navigation, editing, inspections, live templates, refactoring, tools like Composer and the HTTP client, and many more. It's virtually impossible to cover every option and feature in PhpStorm, but we're providing a number of practical exercises on how we can do our daily work as PHP developers.
We'll also cover a vast amount of keyboard shortcuts to make working with PhpStorm more efficient. Other IntelliJ-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.
This workshop is self-paced, meaning you can work your way through exercises on your own, whenever and wherever you want. Exercises come as a PhpStorm project in which every file is a new exercise that may contain code and tips to get things done.
Prerequisites
- Docker for Mac, Docker for Windows or Docker (Linux) 1.13+. See Docker documentation for installation instructions for your operating system.
- PhpStorm 2016.3+
Getting the Project
There are several ways to get started with the PhpStorm workshop materials:
-
Create a new PhpStorm Workshop Project in PhpStorm
-
Create a new project with Composer. Note that you can also create a new project in PhpStorm: use the Composer project type and search for "jetbrains/phpstorm-workshop"
php composer.phar create-project jetbrains/phpstorm-workshop -s dev -
Clone the project from GitHub
git clone https://github.com/JetBrains/phpstorm-workshop.gitgit checkout docker -
Download the ZIP
wget https://github.com/JetBrains/phpstorm-workshop/archive/docker.zip
Getting Started
Most exercises not related to the code editor require having Docker containers running.
Before you start:
-
Open Settings/Preferences | Build, Execution, Deployment | Docker and select how to connect to the Docker daemon:
-
Windows:
- Select TCP socket.
- Set Engine API URL to tcp://localhost:2375.
- Leave the Certificates folder field empty.
Make sure to enable Expose daemon on tcp://localhost:2375 without TLS in the General section of Docker for Windows settings.
-
macOS:
- Select Docker for Mac
-
Linux:
- Select Unix socket
-
-
Update
XDEBUG_CONFIGvariable indocker-compose.ymlwith the value depending on your operating system. This is necessary for Web Debugging.- Windows/macOS: use
host.docker.internal, which will automatically resolve to the internal address of the host Docker is running on. - Linux: execute
hostnamein Terminal and use the returned value.
- Windows/macOS: use
-
Uncomment an appropriate line for
sftpservice in the samedocker-compose.yml. This is necessary for Deployment to work correctly. -
In the same
docker-compose.yml, click the Run icon next toservices:in the editor gutter to start all required Docker containers. Alternatively, you can open the built-in PhpStorm terminal from View | Tool Windows | Terminal and execute thedocker-compose upcommand.
There are some things to know about the project:
- The project can be opened as is in PhpStorm. We've included configurations for PHP Remote Interpreter, Database, Deployment Server, PHP Web Debug, PHPUnit and Behat.
- All numbered folders contain exercises that you can work on. Simply open the numbered files one by one and follow the comments in the file. Most exercises are self-contained, others build on previous exercises.
- Some of the exercises (like this one) are in Markdown format. You can read these files easier by toggling View to Show Preview Only in the top-right corner.
- The
PhpStorm Reference Card.pdfis the PhpStorm keymap. The latest version can always be found on the PhpStorm website.
Open Source and Contribution
The workshop is Open Source, licensed under the Apache 2 license. If you would like to contribute to the workshop materials, please feel free to fork the repo and send us a pull request. Or if you have a comment, question, or suggestion for improvements, please raise an issue.
jetbrains/phpstorm-workshop 适用场景与选型建议
jetbrains/phpstorm-workshop 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.21k 次下载、GitHub Stars 达 295, 最近一次更新时间为 2014 年 01 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jetbrains/phpstorm-workshop 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jetbrains/phpstorm-workshop 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 296
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2014-01-08