2017 © Pedro Peláez
 

library common

Common library for PHP coder...

image

boss420/common

Common library for PHP coder...

  • Thursday, June 15, 2017
  • by boss420
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 13 % Grown

The README.md

Common

Some important common libraries,like aysn process,encription and so on..., (*1)

Github:https://github.com/boss420/Common, (*2)

Install

github:, (*3)

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

Or you can use composer, (*4)

composer require boss420/common

usage

AsynHandle

Use multi-process to simulate multi-threads., (*5)

$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., (*6)

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

The method also contains some default parameters,you can change to what you need., (*8)

 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., (*9)

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., (*10)

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


The Versions

15/06 2017

dev-master

9999999-dev https://github.com/boss420/Common

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

15/06 2017

v1.5.4

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

15/06 2017

v1.5.3

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

15/06 2017

v1.5.2

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

15/06 2017

v1.5.1

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

15/06 2017

v1.5

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

31/03 2017

v1.3.1

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

31/03 2017

v1.4.2

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

12/03 2017

v1.4.1

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

13/11 2016

v1.4.0

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

03/11 2016

v1.3.0

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

02/11 2016

v1.2.0

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

27/10 2016

v1.1.1

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

27/10 2016

v1.1.0

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

26/10 2016

v1.0.1

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao

26/10 2016

v1.0.0

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

Common library for PHP coder...

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by JanHao