@@ -63,22 +63,64 @@ you from V8 API utilizing to implement more amazing stuff.
6363
6464### Requirements
6565
66+ #### V8
6667You will need some fresh v8 Google JavaScript enging version installed. At this time extension tested on 5.4.420.
6768
6869 - For Ubuntu there are [ pinepain/libv8-5.4] ( https://launchpad.net/~pinepain/+archive/ubuntu/libv8-5.4 ) PPA.
6970 To install fresh libv8 do:
7071
7172 ```
72- $ sudo add-apt-repository ppa:pinepain/libv8-5.4 -y
73- $ sudo apt-get update -q
73+ $ sudo add-apt-repository -y ppa:pinepain/libv8-5.4
74+ $ sudo apt-get update -y
7475 $ sudo apt-get install -y libv8-5.4-dev
7576 ```
7677 - For OS X there are [ v8.rb] ( https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/v8.rb ) homebrew formula.
77- To install fresh libv8 do:
78+ To install fresh libv8 do:
79+
80+ ```
81+ $ brew install https://raw.githubusercontent.com/pinepain/php-v8/master/scripts/homebrew/v8.rb
82+ ```
83+
84+ #### PHP 7
85+
86+ - For Ubuntu there are [ ondrej/php] ( https://launchpad.net/~ondrej/+archive/ubuntu/php ) PPA by [ Ondřej Surý] ( https://deb.sury.org ) .
87+
88+ To install fresh ` php7.0 ` do:
89+
90+ ```
91+ $ sudo add-apt-repository -y ppa:ondrej/php
92+ $ sudo apt-get update -y
93+ $ sudo apt-get install -y php7.0
94+ ```
95+ - For OS X there are [ homebrew/homebrew-php] ( https://github.com/Homebrew/homebrew-php ) tap with php70, php71 and large
96+ variety extensions for them.
97+
98+ To install fresh ` php70 ` do:
99+
100+ ```
101+ $ brew tap homebrew/homebrew-php
102+ $ brew install php70
103+ ```
104+
105+
106+ ### Installing from packages
107+
108+ - For Ubuntu there are [ pinepain/php-v8] ( https://launchpad.net/~pinepain/+archive/ubuntu/php-v8 ) PPA.
78109
79- ```
80- $ brew install https://raw.githubusercontent.com/pinepain/php-v8/master/scripts/homebrew/v8.rb
81- ```
110+ To install fresh ` php7.0 ` do:
111+
112+ ```
113+ $ sudo add-apt-repository -y ppa:pinepain/php-v8
114+ $ sudo apt-get update -y
115+ $ sudo apt-get install -y php-v8
116+ ```
117+ - For OS X there are [ php70-v8.rb] [ php70-v8.rb ] and [ php71-v8.rb] [ php71-v8.rb ] homebrew formulas.
118+
119+ To install fresh ` php70-v8 ` do:
120+
121+ ```
122+ $ brew install https://raw.githubusercontent.com/pinepain/php-v8/master/scripts/homebrew/php70-v8.rb
123+ ```
82124
83125### Building from sources
84126
@@ -108,3 +150,7 @@ $ sudo make install
108150Copyright (c) 2015-2016 Bogdan Padalko < ; pinepain@gmail.com > ;
109151
110152[ php-v8] ( https://github.com/pinepain/php-v8 ) PHP extension is licensed under the [ MIT license] ( http://opensource.org/licenses/MIT ) .
153+
154+
155+ [ php70-v8.rb ] : https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php70-v8.rb
156+ [ php71-v8.rb ] : https://github.com/pinepain/php-v8/blob/master/scripts/homebrew/php71-v8.rb
0 commit comments