Nova

Extensions


Readme

Adds the Intelephense advanced language server (LSP) for PHP.

Requirements

Elephense requires Node.js and intelephense to be installed. If you want Elephense to be able to automatically detect Intelephense, make sure to install it globally (e.g npm i -g intelephense).

Usage

Once the extension is activated it will attempt to find if you have the Intelephense LSP already installed in your system, and if you do, it will automatically use that. If you do not or it can't find it then make sure to add the path to it in the extension settings.

Elephense will default to PHP 8.4, but you can change that preference on a global or per project basis.

To activate a premium license

  • Go to Extensions → Elephense → Enter license key.
  • Type your license key in the notification box that appears in the top-right corner.
  • Click submit.

If the activation is successful you'll see a notice informing you of the success and Elephense will be restarted.

Workspace specific stubs

You can configure stubs that Intelephense will use on a per-project basis by going to Project → Project Settings → Elephense and changing the stubs list there. If you set this list of stubs back to the default value Elephense will instead use the stubs list from the global preferences. To quickly reset the stubs list back to default values you can go to Extensions → Intelephense → Reset Workspace Stubs.

Configuration

To configure global preferences, go to Extensions → Extension Library... and select Elephense's Preferences tab.

You can also configure preferences on a per-project basis in Project → Project Settings...


Changelog

1.0

Initial release.


License

MIT License

Copyright (c) 2021 Kristófer Reykjalín Þorláksson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.