         php-mode
         phpcbf
         phpunit
-        flycheck
         ))
+
+(when (configuration-layer/layer-usedp 'auto-completion)
+  (defun php/post-init-company ()
+    (spacemacs|add-company-hook php-mode)))
 
 (defun php/init-drupal-mode ()
   (use-package drupal-mode

        company
        drupal-mode
        eldoc
        ggtags
        helm-gtags
        php-auto-yasnippets

(defun php/init-phpunit ()
  (use-package phpunit
    :defer t))
