File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
* phpstan.el
2
+ #+BEGIN_HTML
3
+ <a href="http://melpa.org/#/phpstan"><img alt="MELPA: phpstan" src="http://melpa.org/packages/phpstan-badge.svg"></a>
4
+ <a href="http://stable.melpa.org/#/phpstan"><img alt="MELPA stable: phpstan" src="http://stable.melpa.org/packages/phpstan-badge.svg"></a>
5
+ #+END_HTML
2
6
Emacs interface to [[https://github.com/phpstan/phpstan][PHPStan]], includes checker for [[http://www.flycheck.org/en/latest/][Flycheck]].
3
7
** Support version
4
8
- Emacs 24+
5
9
- PHPStan latest/dev-master (NOT support 0.9 seriese)
6
10
** How to install
7
11
*** Install from MELPA
8
- /TBD/
12
+ 1. If you have not set up MELPA, see [[https://melpa.org/#/getting-started][Getting Started - MELPA]].
13
+ 2. ~M-x package-install flycheck-phpstan~
9
14
** How to use
10
15
*** For Flycheck user
11
- /TBD/
16
+ #+BEGIN_SRC emacs-lisp
17
+ (defun my-php-mode-hook ()
18
+ "My PHP-mode hook."
19
+ (require 'flycheck-phpstan)
20
+ (flycheck-mode t)
21
+ (flycheck-select-checker 'phpstan))
22
+
23
+ (add-hook 'php-mode-hook 'my-php-mode-hook)
24
+ #+END_SRC
25
+
12
26
*** For Flymake user
13
27
The function for flymake will be implemented soon. You do not have to depend on flycheck.
14
28
*** Using Docker (phpstan/docker-image)
You can’t perform that action at this time.
0 commit comments