Skip to content

Conversation

@zonuexe
Copy link
Member

@zonuexezonuexe commented Oct 10, 2022

This feature is under development and experimental.
All of these functions, modes and terms are subject to change without notice.

Motivations

There are some IDE-like features / packages for PHP development. PHP-IDE bridges projects and their IDE-like features.

IDE Features

We don't recommend features, but bundle some feature bridges.
They are sorted alphabetically except none.

Configuration

Put follows code into your .emacs (~/.emacs.d/init.el) file:

(defuninit-php-mode-setup () (add-hook'hack-local-variables-hook#'php-ide-modett)) (defuninit-php-ide-mode-setup (featureactivate) (pcase feature (`lsp-bridge (if activate (progn (yas-minor-mode+1) (corfu-mode -1)) (yas-minor-mode-1) (corfu-mode +1))))) (with-eval-after-load'php-ide (custom-set-variables '(php-ide-features .'eglot) ;; and/or 'none, 'phpactor, 'lsp-mode '(php-ide-eglot-executable "psalm-language-server") ;; or "intelephense", '("php" "vendor/bin/path/to/server");; If you want to hide php-ide-mode from the mode line, set an empty string '(php-ide-mode-lighter "")) (add-hook'php-mode-hook#'init-php-mode-setup) (add-hook'php-ide-mode-functions#'init-php-ide-mode-setup))

If you don't enable IDE support by default, set '(php-ide-feature 'none)

For per project configuration

Put follows code into .dir-locals.el in project directory:

((nil (php-project-root . git)) (php-mode (php-ide-features . (lsp-mode))))

If you can't put .dir-locals.el in your project directory, consider the sidecar-locals package.

close#656.

@zonuexezonuexe mentioned this pull request Oct 10, 2022
@zonuexezonuexeforce-pushed the feature/php-ide branch 3 times, most recently from bc64776 to e79e686CompareNovember 6, 2022 16:36
@zonuexezonuexeforce-pushed the feature/php-ide branch 5 times, most recently from f704f1c to da3dbfdCompareJanuary 4, 2023 14:23
@zonuexezonuexe changed the title New feature: PHP-IDEExperimental feature: PHP-IDEJan 4, 2023
@zonuexezonuexeforce-pushed the feature/php-ide branch 2 times, most recently from 2527014 to 84abbf2CompareJanuary 4, 2023 17:53
@zonuexezonuexeforce-pushed the feature/php-ide branch 2 times, most recently from c9260e6 to 76af9c4CompareFebruary 12, 2023 07:37
@zonuexezonuexeforce-pushed the feature/php-ide branch 3 times, most recently from 116120d to 8331d8eCompareMarch 8, 2023 13:08
@zonuexezonuexe merged commit c68e18c into masterMar 18, 2023
@zonuexezonuexe deleted the feature/php-ide branch March 18, 2023 21:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@zonuexe