php-mode
vscode-intelephense
php-mode | vscode-intelephense | |
---|---|---|
4 | 26 | |
575 | 1,546 | |
0.3% | - | |
7.7 | 5.6 | |
7 days ago | about 2 months ago | |
Emacs Lisp | TypeScript | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
php-mode
-
[Q]I wish PHP syntax highlighting in org-babel.
Have you installed https://github.com/emacs-php/php-mode ?
-
How to edit PHP?
If you configure a VM to use as a web server, emacs can be a nice PHP editor. That way you could install Ubuntu Server on VM software, set up a LAMP stack, and SSH into it from your desktop terminal (I find this to be a nicer interface than working directly on the VM).
-
Emacs PHP mode?
php-mode is pretty good combined with lsp-mode. If you are editing PHP files with only PHP script I would go with php-mode. If you are using PHP files with a lot of HTML and PHP I would recommend using web-mode together with the PHP language server.
-
Very poor performance in php-mode
I opened an issue on the php-mode GitHub repo for this very reason, you can take a look here: https://github.com/emacs-php/php-mode/issues/657. Hopefully that'll give you some workarounds at least until the bug is fixed.
vscode-intelephense
-
A guide on Neovim's LSP client
I'm going to use intelephense to show the minimal configuration needed to setup a language server in Neovim.
-
VSCode for PHP and Laravel
This is the most important extension to install for PHP support. It provides a fast language server that adds code completion, go to definition, formatting, and more. You can also purchase a license at Intelephense, which I highly recommend. It adds some additional features like renaming symbols and other code actions.
-
Finding source codes? Whatβs the easiest way? (Me=noob)
You need to get the code, and use an IDE to help like vs code + PHP Intelephense (https://intelephense.com/)
-
Intelephense license key not recognized
I bought a license key to Intelephense https://intelephense.com/, and added the key as described in the documentation and several blog posts (at least I think I'm doing it right), however the paid features (e.g. rename symbol) don't work.
-
Replacing PHPStorm with VS Code
I'm quite happy with Emacs, coming from PhpStorm, using intelephense.com premium. I highly recommend.
-
How to log user logout date and time in database?
Follow this guide to configure and add PHP Intelephense.
-
Undefined type 'Spatie\Permission\Models\' . 'Permission' | 'Role' | 'HasRoles'
The error itself is the VSCode extension Intelephense, that is usually very helpful when writing PHP in VSCode, telling you that there is an error with an Undefined type ... after you have followed the steps outlined here in detail to install the permissions package on your Laravel app.
-
Reducing Errors With Type Hinting in PHP
Furthermore, depending on which integrated development environment (IDE) you use, your editor detects the strict_types and warns you inside the editor before running your code. For example, I use the Intelephense extension inside Visual Studio Code, which warns me about wrong parameters before I run the code, like so:
-
PHP LSP integration
Helix should use Intelephense by default, so if you install that, it should work out of the box. You can find installation instructions here π
-
VSCode Intellisense and PHP
Look at either Intelephense or Devsense as plugins and you'll get a close to IDE level experience.
What are some alternatives?
eglot - A client for Language Server Protocol servers
vscode-php-intellisense - Advanced PHP IntelliSense for Visual Studio Code ππ¬
web-mode - web template editing mode for emacs
Phpactor - Mainly a PHP Language Server with more features than you can shake a stick at
yasnippet-snippets - a collection of yasnippet snippets for many languages
ctags - A maintained ctags implementation
ggtags - Emacs frontend to GNU Global source code tagging system.
vscode-php-debug - PHP Debug Adapter for Visual Studio Code πβ
nix-mode - An Emacs major mode for editing Nix expressions.
laravel-ide-helper - IDE Helper for Laravel
php-quickhelp - A php quickhelp and eldoc backed for emacs
lsp-mode - Emacs client/library for the Language Server Protocol