Download the PHP package phpactor/completion without Composer
On this page you can find all versions of the php package phpactor/completion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpactor/completion
More information about phpactor/completion
Files in phpactor/completion
Package completion
Short Description Completion library for Worse Reflection
License MIT
Informations about the package completion
Phpactor Completion
PHP Code Completion library for Phpactor.
This package includes:
- Completion APIs and implementations.
- Phpactor RPC extension and handlers.
- Language Server extension and handlers.
Usage
Each completor implements the Completor
interface which accepts the source
code as a string and a byte offset from which to complete from. The completor
must yield
instances of the Suggestion
class:
Multiple completors can be chained together with the ChainCompletor:
Tolerant Completors
The library currently includes a suite of completors using the Tolerant PHP
Parser and WorseReflection.
All of the tolerant completors are instances of TolerantCompletorInterface
and accept a parser node rather than a byte offset. They can be collected in a
TolerantChainCompletor
class which in turn implements the primary
Completor
interface:
Formatters
This library can format arbitrary objects as strings, for example to go from a
ReflectionMethod
to the synopsis: pub function($foobar)
.
Each formatter is able to indicate if it can format a given object, and if so it is chosen.
Contributing
This package is open source and welcomes contributions! Feel free to open a pull request on this repository.
Support
- Create an issue on the main Phpactor repository.
- Join the
#phpactor
channel on the Slack Symfony Devs channel.
All versions of completion with dependencies
phpactor/class-to-file Version ~0.4.2
phpactor/container Version ^2.0.0
phpactor/reference-finder Version ^0.1.5
phpactor/source-code-filesystem Version ~0.1.6
phpactor/text-document Version ~1.2.3
phpactor/worse-reflection Version ^0.4.8