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
2018-06-23 14:37:41 +08:00
# [Available 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 )
2018-06-23 14:37:41 +08:00
- [Install ](#install )
2017-12-02 23:23:58 +08:00
- [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)
2018-06-23 14:37:41 +08:00
## Install
2017-08-28 04:40:37 +08:00
2018-06-23 14:37:41 +08:00
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#php"
```
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