2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PHPのIDEとしてSunblime Textを使いたい

Last updated at Posted at 2019-01-20

ビルド設定

1. [Tools] > [Build System] > [New Build System...] > untitled.sublime-bildが開く

untitled.sublime-bild
{
    "shell_cmd": "make"
}

2. 設定を書く
【Mac】Sublime Text 3でPHPをビルドしよう! - たくじろう.net
Sublime Text で PHP 実行する方法 - 技術ブログ | 株式会社クラウディア

Macの場合
{
    "cmd": ["php", "$file"],
    "selector": "source.php"
}
Windowsの場合
{
    "path": "phpのある場所",
    "cmd": ["php", "-f", "$file"],
    "selector": "source.php",
    "encoding": "UTF-8"
}

3. PHP.sublime-bild として保存する。

プラグイン

構文チェックしたい

SublimeLinter-php
1. PHPにPATHを通す
2. SublimeLinterを入れる : リアルタイムで構文チェックをしてくれるパッケージ
3. SublimeLinter-phpを入れる : PHPの構文エラーをチェックしてくれるLintパッケージ

PHPDocを書きたい

PHPUnitしたい

  1. PHPUnitをインストールする - Qiita
  2. Sublime Textでsublime-phpunitを入れる

いろいろ便利にしたい

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?