LARA

IDE Integration

phantm can be used inside editors smoothly. For instance, you can set it up to be used inside vim:

Using phantm in vim

The following commands can be placed in a per-type vim configuration (i.e. in ftplugin/php.vim). This will use Vim's quickfix feature:

set makeprg=phantm\ --format\ quickfix\ %
set errorformat =%W%f:%l:%c\ \ Notice:\ %m
set errorformat+=%E%f:%l:%c\ \ Error:\ %m
set errorformat+=%-G%*\\d%m
set errorformat+=%-G\ %m
set errorformat+=%-G\ %\\*

Then, one can simply use the :make Vim command to invoke phantm in the background.