You can safely use the line \nending for .php, as well as most other files - PHP on Windows will read these files just fine.
To set the final default line for all new files: go to Settings/Preferences | Editor | Code Styleand change the parameter Line separator (for new files)to the desired style (for example, Unix and OS X (\n)).

To change the line ending for a specific existing file: open the file and either change it through the appropriate section in the status bar .. or throughFile | Line Separators


PS
EditorConfig... . editorconfig file - , ( .. , PhpStorm).
/ IDE, .