Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit cff2adb

Browse files
committed
Add note about stub files installation [skip ci], closes #10
1 parent f95c2ba commit cff2adb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,19 @@ $result = $script->Run($context);
5555
echo $result->ToString($context)->Value(), PHP_EOL;
5656
```
5757

58-
which will output `Hello, World!`. See how it's shorter and more readable than [that C++ version]([v8-hello-world])?
58+
which will output `Hello, World!`. See how it's shorter and more readable than [that C++ version][v8-hello-world]?
5959
And it also doesn't limit you from V8 API utilizing to implement more amazing stuff.
6060

61+
62+
## Stub files
63+
64+
If you are also using Composer, it is recommended to add the [php-v8-stub][php-v8-stubs]
65+
package as a dev-mode requirement. It provides skeleton definitions and annotations to enable support for auto-completion
66+
in your IDE and other code-analysis tools.
67+
68+
composer require --dev pinepain/php-v8-stubs
69+
70+
6171
## Installation
6272

6373
### Requirements
@@ -155,3 +165,4 @@ Copyright (c) 2015-2016 Bogdan Padalko <pinepain@gmail.com>
155165
[v8-intro]: https://developers.google.com/v8/intro
156166
[php70-v8.rb]: https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php70-v8.rb
157167
[php71-v8.rb]: https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php71-v8.rb
168+
[php-v8-stubs]: https://github.com/pinepain/php-v8-stubs

0 commit comments

Comments
 (0)