Can you add better support for PHP?
This should include better composer.json
handling.
The current version only links normal dependencies. But it should also link extension dependencies (ext-*
) to correct documentation page on PHP documentation website. Suggested dependencies in suggest
section should also be linked correctly.
It should also link name
field to package on Packagist (but don't then forget to fix #45), autoload
and autoload-dev
sections to correct directories and bin
section to correct file.
Composer's composer.json
file is similar to Node's package.json
so you could take some code from there. You should also look to composer.json
schema for reference.
There should also be parsing of PHP files.
First, it should link require
, require_once
, include
and include_once
to correct files. This is similar to Node, except that it can be used with or without brackets.
It should also link use
statements. This is a bit different because it includes namespace instead of the file. But with autoloading, program then includes correct file. In this case, this extension should somehow "extract" correct file from namespace and link it.