PHP Classes

pH7Client: Send HTTP requests and decode the responses

Recommend this page to a friend!
  Info   View files Documentation   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 139 All time: 9,220 This week: 673Up
Version License PHP version Categories
ph7client 1.0GNU General Publi...5.4HTTP, PHP 5


This class can send HTTP requests and decode the responses.

It can send HTTP GET, POST, PUT and DELETE requests to given URLs using given parameters.

The class can retrieve the responses and decode them if they are in JSON format.

Picture of Pierre-Henry Soria
  Performance   Level  
Name: Pierre-Henry Soria <contact>
Classes: 46 packages by
Country: United Kingdom
Age: 33
All time rank: 37716 in United Kingdom
Week rank: 22 Up1 in United Kingdom Up
Innovation award
Innovation award
Nominee: 17x

Winner: 3x


pH7Client - Save tasks by bot your tasks!

pH7Client is a wonderful tool if you need to automate tasks (like posting articles every day to your blog, add message in a member area, etc). Yes! The pH7Client bot can do almost everything (you just need to create some rules and need to know the input name of the website's forms). In fact, it's a PHP Web client class that simulates a Web browser for retrieving webpage content, login to websites and posting forms, ...

Finally, you have created rules that you want to automate by pH7Client, you need to setup a cron for executing the script every X time on a server (Type `crontab -e` on your server Linux terminal, then add the desired cron jobs and save it). Once finished, go to the beach, order a mojito and enjoy your REAL free time that you really deserved!


.1 - The Basic one

// Include the library
require 'PH7Client.php';

use PH7\External\Http\Client\PH7Client;

$sUrl = '';
$sReauest1 = 'user/login/';
$sRequest2 = 'user/message_box/myuser920';
$sUser = '';
$sPass = 'testpass123';
$sBody = "Hey! What's up today? Psst! I'm a bot but I may understand you...";

$oPH7CMSApi = new PH7Client($sUrl);

/Log a user/
$aLogin = [
    'identity' => $sUser,
    'password' => $sPass,
    'remember' => 'on',
    'submit' => 'Login'

// Login the user
$oPH7CMSApi->post($sReauest1, $aLogin);
// Submit the form

/Send a message/
$aMsg = ['message' => $sBody];

// Send the message
$oPH7CMSApi->post($sRequest2, ['message' => $sBody])->setHeader(false)->send();

echo $oPH7CMSApi->getResponse(); // Will show the sucessful message telling you that your msg has been send


I'm Pierre-Henry Soria, young PHP software developer living currently in the Wonderful Manchester city, in the UK.


You can send an email at pierrehenry [AT] gmail {D0T} COM or at phy {AT} hizup [D0T] UK

Need a Social/Dating Networking Builder?

Have a look to my social dating Web Builder

I'm building this software in order to allow people to build Amazing Social/Dating Businesses really easily with almost no money!


This project is under MIT license! Enjoy!!

Psst!! By the way, Feel free to contribute to it! If you can, That would be really amazing!

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file Copyright Lic. Copyright file
Accessible without login Plain text file License.txt Lic. License
Accessible without login Plain text file PH7.COPYRIGHT.txt Doc. Documentation
Accessible without login Plain text file PH7.LICENSE.txt Doc. Documentation
Plain text file PH7Client.php Class pH7Client class
Accessible without login Plain text file Doc. Documentation
Accessible without login Plain text file Doc. Read Me

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,220
This week:673Up