vscode-intelephense
phpstorm-stubs
vscode-intelephense | phpstorm-stubs | |
---|---|---|
26 | 3 | |
1,543 | 1,298 | |
- | 0.2% | |
5.6 | 9.1 | |
about 1 month ago | 3 days ago | |
TypeScript | PHP | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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.
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.
phpstorm-stubs
- What would be better VS Code or PHP Storm?
-
sj-i/php-fuse: PHP FFI bindings for libfuse. You can write your own filesystems in PHP.
The other thing that bothers me is that most of the function arguments in FFI are ZEND_SEND_PREFER_REF, which sneakily tries to change the type of value I pass as an argument. This is not a documented behavior either. https://github.com/JetBrains/phpstorm-stubs/pull/777#issuecomment-620589391
-
Unknown named parameter $options with json_decode
JetBrains maintains their own stubs for PHPStorm: https://github.com/JetBrains/phpstorm-stubs
What are some alternatives?
vscode-php-intellisense - Advanced PHP IntelliSense for Visual Studio Code ππ¬
php-fuse - PHP FFI bindings for libfuse
Phpactor - Mainly a PHP Language Server with more features than you can shake a stick at
php-ffi - PHP Foreign Function Interface
ctags - A maintained ctags implementation
doc-en - English PHP documentation
vscode-php-debug - PHP Debug Adapter for Visual Studio Code πβ
laravel-ide-helper - IDE Helper for Laravel
reli-prof - A sampling profiler or a memory profiler for PHP written in PHP, which reads information about running PHP VM from outside the process. You can find performance bottlenecks or memory leaks of your scripts without changing the target script or loading extensions.
lsp-mode - Emacs client/library for the Language Server Protocol
libfuse - The reference implementation of the Linux FUSE (Filesystem in Userspace) interface