spacemacs/layers/+lang/php
Miciah Masters e0b751bee3 Avoid non-idempotent use of push in init code
Replace push with add-to-list in layer init functions and related code.

Modify spacemacs|add-toggle to check for and update an existing toggle in
spacemacs-toggles and only create a new toggle if none already existed.

Replace a conditional push onto erc-packages with use of :toggle.

When initializing which-key, set which-key-replacement-alist to its default
or customized setting before adding all the Spacemacs replacements.  We
want to keep the stock replacements but avoid adding duplicates of the
Spacemacs replacements.

Replace the emacs-lisp-mode-hook lambda with a named function to avoid
adding duplicate hooks (which can add duplicate definitions of the
evil-surround pair).
2018-06-05 22:17:13 -04:00
..
img Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
config.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Avoid non-idempotent use of push in init code 2018-06-05 22:17:13 -04:00
README.org Add Troubleshooting section 2018-01-04 01:40:52 -05:00

PHP layer

/TakeV/spacemacs/media/commit/0fd13aef2b17055b40ee096333d69becdc4ece92/layers/+lang/php/img/php.png

Description

This layer adds PHP language support to Spacemacs.

Features:

  • Edit PHP files using php-mode
  • Edit Drupal files
  • Complete and jump to define with company-php
  • Run tests with PHPUnit
  • Reformat code with PHP CBF

The gtags layer is recommended to benefit from better eldoc and helm-gtags.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add php to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Key Binding Description
SPC m g g jump to define at point
C-t jump back

Troubleshooting

Because of the way that the php-extras package works, there are a couple of simple initialization tasks which must occur to get the completion working as it should. On any new project make sure to perform the following initialization tasks:

  1. Run the following

      cd /root/of/project
      touch .ac-php-conf.json
  2. Inside of spacemacs run: = ac-php-remake-tags-all =