Skip to content

Commit

Permalink
Update composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Dec 5, 2016
1 parent 4460a7c commit 4e3de33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@
],
"require": {
"php": ">=5.3.0",
"hprose/hprose": ">=2.0.9",
"ext-swoole": ">=1.8.8"
},
"suggest": {
"ext-hprose": "Faster serialize and unserialize hprose extension."
"hprose/hprose": ">=2.0.23",
"ext-swoole": ">=1.8.8",
"ext-hprose": ">=1.6.5"
},
"require-dev": {
"phpunit/phpunit": ">=4.0.0"
Expand Down
8 changes: 8 additions & 0 deletions install_ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ phpize
make
make install
echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
wget https://pecl.php.net/get/hprose-1.6.5.tgz
tar zxvfp hprose-1.6.5.tgz
cd hprose-1.6.5
phpize
./configure
make
make install
echo "extension = hprose.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
cd ..

0 comments on commit 4e3de33

Please sign in to comment.