2017-08-28 04:40:37 +08:00
---
title: "SpaceVim lang#php layer"
2017-12-02 23:23:58 +08:00
description: "This layer adds PHP language support to SpaceVim"
2017-08-28 04:40:37 +08:00
---
2017-05-14 20:04:01 +08:00
2017-08-28 04:40:37 +08:00
# [SpaceVim Layers:](https://spacevim.org/layers) lang#php
2017-05-14 20:04:01 +08:00
2017-08-28 04:40:37 +08:00
<!-- vim - markdown - toc GFM -->
2017-12-02 23:23:58 +08:00
- [Description ](#description )
2017-12-23 21:12:09 +08:00
- [Features ](#features )
2017-12-02 23:23:58 +08:00
- [Layer Installation ](#layer-installation )
- [Requirement ](#requirement )
2017-05-14 20:04:01 +08:00
2017-08-28 04:40:37 +08:00
<!-- vim - markdown - toc -->
2017-05-14 20:04:01 +08:00
2017-08-28 04:40:37 +08:00
## Description
2017-05-14 20:04:01 +08:00
2017-08-28 04:40:37 +08:00
This layer adds PHP language support to SpaceVim.
2017-05-14 20:04:01 +08:00
2017-12-23 21:12:09 +08:00
## Features
- auto-completion
- syntax checking
- goto definition
- refernce finder
- lsp support (require [lsp ](https://spacevim.org/layers/language-server-protocol/ ) layer)
2017-08-28 04:40:37 +08:00
## Layer Installation
2017-12-23 21:12:09 +08:00
To use this configuration layer, add `call SpaceVim#layers#load('lang#php')` to your custom configuration file.
2017-08-28 04:40:37 +08:00
### Requirement
1. [PHP 5.3+ ](http://php.net/ )
2. [PCNTL ](http://php.net/manual/en/book.pcntl.php ) Extension
3. [Msgpack 0.5.7+(for NeoVim) ](https://github.com/msgpack/msgpack-php ) Extension or [JSON(for Vim 7.4+) ](http://php.net/manual/en/intro.json.php ) Extension
4. [Composer ](https://getcomposer.org/ ) Project
2017-12-23 21:12:09 +08:00