承接 boss420/common 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boss420/common

Composer 安装命令:

composer require boss420/common

包简介

Common library for PHP coder...

README 文档

README

Some important common libraries,like aysn process,encription and so on...

Github:https://github.com/boss420/Common

##Install github:

git clone https://github.com/boss420/Common.git

Or you can use composer

composer require boss420/common

##usage

###AsynHandle

Use multi-process to simulate multi-threads.

$oop = new \boss420\common\AsynHandle();
$result = $oop->Request("xxxxxx");
echo $result;

The code will return soon,and the result only shows that if the code works.You can not get the response from this code segment.Because the real URL request will still be proceessed backend.

So it's easy that you can send multi-requests to more than 1 URL without waiting the processing result.

The method also contains some default parameters,you can change to what you need.

 public function Request($url, $cookie = array(), $post = array(), $timeout = 3){
 //***
 }

Also,the AsynHandle also contains a synchronous request method called Get,you can get the real response after you call this method.

###sample code

header('Content-type: application/json');
require_once "../src/AsynHandle.php";
$oop = new \boss420\common\AsynHandle();
$result = $oop->Get("https://www.udopay.com/index.php/Gateway/securepay");
echo $result;

This method also contains some default parameters,and they are easy to undertand.

 public function Get($url, $cookie = array(), $post = array(), $timeout = 30){
 //***
 }
 

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固