   :ensure t
   :defer t
   :commands php-mode
-  :mode "\\.php$"
+  :mode "\\.php\\'"
   :config
   (progn
     (add-hook 'php-mode-hook 'php-enable-psr2-coding-style)))

(use-package web-mode
  :ensure t
  :defer t
  :mode "\\.\\(phtml\\|html\\)$"
  :config
  (progn
    (setq web-mode-markup-indent-offset 2)

  :ensure t
  :defer t
  :commands markdown-mode
  :mode "\\.md\\'")

; check php coding style
(use-package flymake-phpcs
