PHP code example of cube-group / phpbase
1. Go to this page and download the library: Download cube-group/phpbase library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cube-group / phpbase example snippets
yum -y install php-redis php-mongo
wget http://pecl.php.net/get/amqp-1.6.1.tgz
tar zxvf amqp-1.6.1.tgz
cd amqp-1.6.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c
make
make install
use libs\Curl\LCurl;
$result = $curl->post('http://www.baidu.com/', ['a'=>'123']);