2017 © Pedro PelĆ”ez
 

symfony-bundle php_fsockopen

fsockopen is the wrapper function for socket socket links

image

yakeing/php_fsockopen

fsockopen is the wrapper function for socket socket links

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

fsockopen

fsockopen is socket package function, in addition to the basic commonly used TCP:// communication function, it also has other powerful communication function, UDP:// unix:// udg:// and so on various protocols., (*1)

You can use stream_get_transports to get the current server registered socket transfer protocol list to determine whether to support the need to use the agreement., (*2)

Travis CI badge

Travis-ci, (*3)

codecov badge

codecov, (*4)

Packagist badge

Version Downloads, (*5)

Github badge

Downloads Size tag license languages, (*6)

Installation

Use Composer to install the library. Of course, You can go to Packagist to view., (*7)

 Ā  Ā $ composer require yakeing/php_fsockopen

Initialization parameter

  • [x] Sampleļ¼š
    $fs = new fsockopen();
    $ret = $fs->init(
        10, //Running time / sec (optional)
        tcp, //transport protocol (optional)
        true //Blocking mode switch (optional)
        );

Get network resources

  • [x] Sampleļ¼š
    $ret = $fs->GET(
        $Url , //Destination URL
        $Referer , //Forge Referer (optional)
        $Cookie //This Cookie (optional)
    );

POST Submit Form

  • [x] Sampleļ¼š
    $ret = $fs->POST(
        $Url , //Destination URL
        $Content , //Submit content: key/vvalue&...
        $Referer , //Forge Referer (optional)
        $Cookie, //This Cookie (optional)
        $ContentType //Submission method (optional)
    );

POST File

  • [x] Sampleļ¼š
    $ret = $fs->PUT(
        $Url , //Destination URL
        $File, //File OR Picture address: ['01.jpg','02.jpg',...]
        $Referer , //Forge Referer (optional)
        $Cookie, //This Cookie (optional)
    );

Sponsor

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate., (*8)

Sponsor, (*9)

Author

weibo: yakeing, (*10)

twitter: yakeing, (*11)

The Versions

26/05 2018

dev-master

9999999-dev https://github.com/yakeing/php_fsockopen

fsockopen is the wrapper function for socket socket links

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6

 

The Development Requires

tcp unix udp udg fsockopen

17/08 2017

v2.1.0

2.1.0.0 https://github.com/yakeing/php_fsockopen

fsockopen is the wrapper function for socket socket links

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6

 

The Development Requires

tcp unix udp udg fsockopen

17/08 2017

v2.0

2.0.0.0 https://github.com/yakeing/php_fsockopen

fsockopen is the wrapper function for socket socket links

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6

 

The Development Requires

tcp unix udp udg fsockopen