@@ -40,8 +40,8 @@ intentionally with the purpose to provide more solid experience between native V
40
40
41
41
## Demo
42
42
43
- Here is a [ Hello World] ( https://developers.google.com/v8/get_started# hello-world)
44
- from V8 [ Getting Started] ( https://developers.google.com/v8/ intro) developers guide page implemented in PHP with php-v8:
43
+ Here is a [ Hello World] [ v8- hello-world]
44
+ from V8 [ Getting Started] [ v8- intro] developers guide page implemented in PHP with php-v8:
45
45
46
46
``` php
47
47
<?php
@@ -55,8 +55,8 @@ $result = $script->Run($context);
55
55
echo $result->ToString($context)->Value(), PHP_EOL;
56
56
```
57
57
58
- which will output ` Hello, World! ` . See how it's shorter and readable from that C++ version? And it also doesn't limit
59
- you from V8 API utilizing to implement more amazing stuff.
58
+ which will output ` Hello, World! ` . See how it's shorter and readable from [ that C++ version] ( [v8-hello-world] ) ?
59
+ And it also doesn't limit you from V8 API utilizing to implement more amazing stuff.
60
60
61
61
62
62
## Installation
@@ -103,11 +103,11 @@ You will need some fresh v8 Google JavaScript enging version installed. At this
103
103
```
104
104
105
105
106
- ### Installing from packages
106
+ ### Installing php-v8 from packages
107
107
108
108
- For Ubuntu there are [ pinepain/php-v8] ( https://launchpad.net/~pinepain/+archive/ubuntu/php-v8 ) PPA.
109
109
110
- To install fresh ` php7.0 ` do :
110
+ To install fresh ` php-v8 ` :
111
111
112
112
```
113
113
$ sudo add-apt-repository -y ppa:pinepain/php-v8
@@ -122,7 +122,7 @@ You will need some fresh v8 Google JavaScript enging version installed. At this
122
122
$ brew install https://raw.githubusercontent.com/pinepain/php-v8/master/scripts/homebrew/php70-v8.rb
123
123
```
124
124
125
- ### Building from sources
125
+ ### Building php-v8 from sources
126
126
127
127
```
128
128
git clone https://github.com/pinepain/php-v8.git
152
152
[ php-v8] ( https://github.com/pinepain/php-v8 ) PHP extension is licensed under the [ MIT license] ( http://opensource.org/licenses/MIT ) .
153
153
154
154
155
+ [ v8-hello-world ] : https://chromium.googlesource.com/v8/v8/+/master/samples/hello-world.cc
156
+ [ v8-intro ] : https://developers.google.com/v8/intro
155
157
[ php70-v8.rb ] : https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php70-v8.rb
156
158
[ php71-v8.rb ] : https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php71-v8.rb
0 commit comments