Skip to content

Commit 4b1497d

Browse files
add wechaty ca, see wechaty/php-wechaty#16
1 parent 1ecba45 commit 4b1497d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/centos/7/php/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ docker run -ti \
142142
phpwechaty/php-wechaty:v1 \
143143
examples/ding-dong-bot.php
144144

145+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
146+
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
147+
php composer-setup.php
148+
php -r "unlink('composer-setup.php');"
149+
mv composer.phar /usr/local/bin/composer
150+
145151
# docker stop wechaty_puppet_service_token_gateway
146152

147153
tree conf

0 commit comments

Comments
 (0)