PHPackages                             ph-7/ph7client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ph-7/ph7client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ph-7/ph7client
==============

pH7Client is a PHP Web client class that simulates a Web browser (like a Web Driver) for retrieving webpage content, login to websites and posting forms and makes them on autopilot.

v2.0.2(8y ago)129631GPL-3.0+PHPPHP &gt;=5.4.0

Since Jul 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/pH-7/pH7Client)[ Packagist](https://packagist.org/packages/ph-7/ph7client)[ Docs](https://github.com/pH-7/pH7Client)[ RSS](/packages/ph-7-ph7client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

pH7Client - Make your Tasks on Autopilot by Automating them!
============================================================

[](#ph7client---make-your-tasks-on-autopilot-by-automating-them)

**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) and save lot of times everyday! 😃 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!

Composer Installation
---------------------

[](#composer-installation)

You can add it easily in your project by using [Composer](https://getcomposer.org/).

```
composer require ph-7/ph7client
```

Then, include Composer's autoload

```
require_once 'vendor/autoload.php';
```

Manual Installation (*the old-fashioned way*)
---------------------------------------------

[](#manual-installation-the-old-fashioned-way)

If you don't use Composer, you can install it without Composer by simply including the class

```
require 'PH7Client.php';
```

Examples
--------

[](#examples)

```
use PH7\External\Http\Client\PH7Client;

$sUrl = 'http://ph2date-soft-example.com';
$sRequest1 = 'user/login/';
$sRequest2 = 'user/message_box/myuser920';
$sUser = 'test@ph2date.com';
$sPass = 'testpass123';
$sBody = "Hey! What's up today? Psst! I'm a bot but I may understand you...";

$oWebClient = new PH7Client($sUrl);

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

// Login the user
$oWebClient->post($sRequest1, $aLogin);
// Submit the form
$oWebClient->send();

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

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

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

Requirements
------------

[](#requirements)

- PHP 5.4.0 or higher
- cURL PHP library

Author
------

[](#author)

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

Contact
-------

[](#contact)

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

Need a Social/Dating Networking Builder?
----------------------------------------

[](#need-a-socialdating-networking-builder)

Have a look to my **[Social Dating Web Builder](http://ph7cms.com)**

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

Licence
-------

[](#licence)

This project is under GPLv3 license! Enjoy!!

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

3

Last Release

3219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6d95da236687f1dca4f7d70d60037c70ef217120ea195df23a39a412ba594e0?d=identicon)[ph-7](/maintainers/ph-7)

---

Top Contributors

[![pH-7](https://avatars.githubusercontent.com/u/1325411?v=4)](https://github.com/pH-7 "pH-7 (25 commits)")

---

Tags

automateautopilotclienthttp-api-clientphpphp-net-clientwebdriverclienthttp clientwebdriverautomateweb client

### Embed Badge

![Health badge](/badges/ph-7-ph7client/health.svg)

```
[![Health](https://phpackages.com/badges/ph-7-ph7client/health.svg)](https://phpackages.com/packages/ph-7-ph7client)
```

###  Alternatives

[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[aplus/http-client

Aplus Framework HTTP Client Library

2161.6M1](/packages/aplus-http-client)[basecrm/basecrm-php

BaseCRM Official API V2 library client for PHP

221.0M](/packages/basecrm-basecrm-php)[aura/http

The Aura HTTP package provides objects to build and send HTTP responses from the server to the client.

7338.8k4](/packages/aura-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
