Explained

PhpStorm and GitHub: Integration, Repositories and Open Source

How PhpStorm works with GitHub, and which PhpStorm-related projects JetBrains publishes there.

Published 4 min readBy the PhpStorm.org team
Cover image for PhpStorm and GitHub: Integration, Repositories and Open Source

Searches for PhpStorm GitHub usually mean one of two things: how to use GitHub inside PhpStorm, or whether PhpStorm itself is on GitHub. This guide covers both.

The short answer

  • PhpStorm has built-in GitHub integration: clone, push, pull requests and reviews.
  • PhpStorm itself is not open source, so its full source is not on GitHub.
  • JetBrains publishes open-source PhpStorm projects on GitHub, such as phpstorm-stubs and phpstorm-attributes.
  • Bugs go to YouTrack, not GitHub issues.

Connecting GitHub in PhpStorm

  1. Open Settings → Version Control → GitHub.
  2. Click Add Account and log in through your browser, or use a personal access token.
  3. Use File → New → Project from Version Control to clone any repository you can access.

Once connected, PhpStorm can share a local project to a new GitHub repository, open files on GitHub, and create gists. GitLab is supported too, with OAuth sign-in improved in 2026.3.

Pull requests inside the IDE

The Pull Requests tool window lists open PRs, shows their diffs and comments, and lets you review, comment, approve and merge without leaving PhpStorm. You can check out a PR branch locally to run tests or debug it, which is much faster than reading diffs in a browser.

Everyday Git features

  • Commit with built-in checks (inspections, reformatting, tests) before pushing.
  • Resolve merge conflicts in a three-way merge tool.
  • Interactive rebase, cherry-pick and shelve changes visually.
  • Git worktrees, supported since 2026.1 and improved in 2026.3.

phpstorm-stubs

The JetBrains/phpstorm-stubs repository contains PHP “stub” files: syntactically correct PHP files with function, class and constant signatures for the PHP runtime and its extensions, along with documentation. PhpStorm bundles them to power completion and type inference. They are open source, accept community pull requests and are also used by other PHP tools and language servers.

phpstorm-attributes

The phpstorm-attributes package provides PHP 8 attributes such as #[Pure], #[Deprecated] and #[ArrayShape] that give PhpStorm extra information about your code. Install it with Composer if you want those hints to be explicit in your project.

Working with GitHub Actions and code review

PhpStorm can show the status of commits and pull requests, so you see at a glance whether your GitHub Actions checks passed. Before pushing, the commit dialog can reformat code, run inspections and even run tests, catching problems before CI does. During review, you can leave comments on specific lines from the IDE, and they appear on GitHub exactly as if you had written them in the browser.

Plugins and issue tracking

Many PhpStorm plugins are open source on GitHub and published on the JetBrains Marketplace. For PhpStorm bugs and feature requests, use the official YouTrack tracker (project WI), where the PhpStorm team triages issues.

Beware of fake “PhpStorm GitHub” downloads

Repositories that offer PhpStorm installers, activation scripts or “free licence” tools are not from JetBrains. Download PhpStorm only from jetbrains.com, the Toolbox App or download.jetbrains.com.

More questions

Is PhpStorm open source?

No. PhpStorm is proprietary, although parts such as phpstorm-stubs and phpstorm-attributes are open source.

Can I review GitHub pull requests in PhpStorm?

Yes, from the Pull Requests tool window after connecting your GitHub account.

Does PhpStorm work with GitLab and Bitbucket?

GitLab is supported natively; Bitbucket works through Git and plugins.

Final thoughts

PhpStorm works smoothly with GitHub, and JetBrains shares useful open-source pieces like phpstorm-stubs there, but the IDE itself is proprietary. Download PhpStorm from the official server and connect your GitHub account in a minute.

Get PhpStorm

PhpStorm Light 263.8054 · PhpStorm 2026.3 platform · Windows 10/11 64-bit · direct from download.jetbrains.com

Download PhpStorm