 
 (defun madand-web/init-php-doc ()
   (use-package php-doc
+    :after php-mode
     :commands php-insert-doc-block
     :init
-    (setq-default php-insert-doc-access-tag nil
-                  php-insert-doc-attribute-tags nil
-                  php-insert-doc-uses-tag nil
-                  php-insert-doc-varname-on-var nil
-                  php-insert-doc-copyright-name nil
-                  php-insert-doc-copyright-email nil
-                  php-insert-doc-author-name "Andiy Kmit'"
-                  php-insert-doc-author-email "dev@madand.net")))
+    (setq php-insert-doc-access-tag nil
+          php-insert-doc-attribute-tags nil
+          php-insert-doc-uses-tag nil
+          php-insert-doc-varname-on-var nil
+          php-insert-doc-copyright-name nil
+          php-insert-doc-copyright-email nil
+          php-insert-doc-author-name "Andiy Kmit'"
+          php-insert-doc-author-email "dev@madand.net")
+    (spacemacs/set-leader-keys-for-major-mode 'php-mode
+      "id" #'madand/php-insert-doc-block)))
 
 (defun madand-web/init-php-helpers ()
   (use-package php-helpers

    (php-helpers :location local)
    (php-extras :excluded t)
    php-mode
    php-refactor-mode
    ;; projectile
    web-mode
    web-beautify
    (drupal-mode :excluded t)))

    "hh" #'php-search-documentation
    "hH" #'madand/php-search-web-documentation-in-default-browser
    "w" #'madand/toggle-php-web-mode)
  (spacemacs/declare-prefix-for-mode 'php-mode "mi" "insert")

  (add-hook 'php-mode-hook #'madand/set-fill-column t)
  (add-hook 'php-mode-hook #'madand/disable-rainbow-identifiers-mode))

(defun madand-web/pre-init-phpcbf ()
  (with-eval-after-load 'phpcbf
    (setq phpcbf-standard "PSR2")))

(defun madand-web/post-init-web-beautify ()
