Just put these stub files anywhere in your project (or a link in any other supported way, such as Settings | Languages & Frameworks | PHP | Include path ). The IDE will only use it for code completion purposes (and the like) (so you can exclude them from loading / VCS, etc.).
In the long run, you can send PR to the already mentioned PhpStorm stub repository , and it can become part of the standard PhpStorm distribution for the next release.
Lazyone
source share