@@ -70,6 +70,18 @@ in your IDE and other code-analysis tools.
7070
7171## Installation
7272
73+ ### Requirements
74+
75+ #### V8
76+ You will need a recent v8 Google JavaScript engine version installed. At this time the extension is tested on 5.7.202.
77+
78+ #### PHP
79+ This extension is PHP7-only. It works and tested with both PHP 7.0 and PHP 7.1.
80+
81+ #### OS
82+ This extension works and tested on x64 Linux and macOS. As of written it is Ubuntu 16.04 LTS Xenial Xerus, amd64
83+ and macOS 10.12.1. Windows is not supported at this time.
84+
7385### Quick guide
7486
7587#### Ubuntu
@@ -82,77 +94,25 @@ $ sudo apt-get install -y php7.0 php-v8
8294$ php --ri v8
8395```
8496
97+ While [ pinepain/php] ( https://launchpad.net/~pinepain/+archive/ubuntu/php ) PPA targets to contain all necessary
98+ extensions with dependencies, you may find useful
99+ [ pinepain/libv8-5.7] ( https://launchpad.net/~pinepain/+archive/ubuntu/libv8-5.7 ) and
100+ [ pinepain/php-v8] ( https://launchpad.net/~pinepain/+archive/ubuntu/php-v8 ) standalone PPAs.
101+
102+
85103#### OS X (homebrew)
86104
87105```
88106$ brew tap homebrew/dupes
89107$ brew tap homebrew/php
90- $ brew install php70
91- $ brew install https://raw.githubusercontent.com/pinepain/packaging/master/homebrew/v8.rb
92- $ brew install https://raw.githubusercontent.com/pinepain/packaging/master/homebrew/php70-v8.rb
108+ $ brew tap pinepain/devtools
109+ $ brew install php70
110+ $ brew install v8@5.7
111+ $ brew install php70-v8
93112$ php --ri v8
94113```
95114
96- ### Requirements
97-
98- #### V8
99- You will need a recent v8 Google JavaScript engine version installed. At this time the extension is tested on 5.4.420.
100-
101- - For Ubuntu there is the [ pinepain/libv8-5.4] ( https://launchpad.net/~pinepain/+archive/ubuntu/libv8-5.4 ) PPA.
102- To install libv8:
103-
104- ```
105- $ sudo add-apt-repository -y ppa:pinepain/libv8-5.4
106- $ sudo apt-get update -y
107- $ sudo apt-get install -y libv8-5.4-dev
108- ```
109- - For OS X there is the [ v8.rb] [ v8.rb ] homebrew formula.
110- To install libv8:
111-
112- ```
113- $ brew install https://raw.githubusercontent.com/pinepain/packaging/master/homebrew/v8.rb
114- ```
115-
116- #### PHP 7
117-
118- - For Ubuntu there is the [ ondrej/php] ( https://launchpad.net/~ondrej/+archive/ubuntu/php ) PPA by [ Ondřej Surý] ( https://deb.sury.org ) .
119-
120- To install ` php7.0 ` :
121-
122- ```
123- $ sudo add-apt-repository -y ppa:ondrej/php
124- $ sudo apt-get update -y
125- $ sudo apt-get install -y php7.0
126- ```
127- - For OS X there is the [ homebrew/homebrew-php] ( https://github.com/Homebrew/homebrew-php ) tap with php70, php71 and a large
128- variety extensions for them.
129-
130- To install ` php70 ` :
131-
132- ```
133- $ brew tap homebrew/homebrew-php
134- $ brew install php70
135- ```
136-
137-
138- ### Installing php-v8 from packages
139-
140- - For Ubuntu there is the [ pinepain/php-v8] ( https://launchpad.net/~pinepain/+archive/ubuntu/php-v8 ) PPA.
141-
142- To install ` php-v8 ` :
143-
144- ```
145- $ sudo add-apt-repository -y ppa:pinepain/php-v8
146- $ sudo apt-get update -y
147- $ sudo apt-get install -y php-v8
148- ```
149- - For OS X there are the [ php70-v8.rb] [ php70-v8.rb ] and [ php71-v8.rb] [ php71-v8.rb ] homebrew formulas.
150-
151- To install ` php70-v8 ` do:
152-
153- ```
154- $ brew install https://raw.githubusercontent.com/pinepain/packaging/master/homebrew/php70-v8.rb
155- ```
115+ For macOS php-v8 formulae and dependencies provided by [ pinepain/devtools] ( https://github.com/pinepain/homebrew-devtools ) tap.
156116
157117### Building php-v8 from sources
158118
@@ -186,7 +146,3 @@ Copyright (c) 2015-2016 Bogdan Padalko <pinepain@gmail.com>
186146
187147[ v8-hello-world ] : https://chromium.googlesource.com/v8/v8/+/master/samples/hello-world.cc
188148[ v8-intro ] : https://developers.google.com/v8/intro
189- [ v8.rb ] : https://github.com/pinepain/packaging/blob/master/homebrew/v8.rb
190- [ php70-v8.rb ] : https://github.com/pinepain/packaging/blob/master/homebrew/php70-v8.rb
191- [ php71-v8.rb ] : https://github.com/pinepain/packaging/blob/master/homebrew/php71-v8.rb
192- [ php-v8-stubs ] : https://github.com/pinepain/php-v8-stubs
0 commit comments