PHPackages                             cfv1000/phantomjs-cloud - 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. [API Development](/categories/api)
4. /
5. cfv1000/phantomjs-cloud

ActiveLibrary[API Development](/categories/api)

cfv1000/phantomjs-cloud
=======================

PhantomJS Cloud API wrapper

1.0.3(9y ago)2189MITPHP

Since Apr 28Pushed 8y ago2 watchersCompare

[ Source](https://github.com/cfv1000/phantomjs-cloud)[ Packagist](https://packagist.org/packages/cfv1000/phantomjs-cloud)[ RSS](/packages/cfv1000-phantomjs-cloud/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PhantomJS Cloud
===============

[](#phantomjs-cloud)

A library to interact with the Phantom JS Cloud

Examples and extensive documentation on the API

### Simple example

[](#simple-example)

Write the web page to a JPG file:

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

$request = new \PhantomJS\PageRequest('http://www.example.com');
file_put_contents('example.com.jpg', $request->getResponse());
```

This example shouldn't be used in production. If you need to perform advanced HTTP requests to the api, please address a dedicated library for that. This library should be used only to write your requests

### Guzzle Example

[](#guzzle-example)

```
include_once __DIR__ . '/vendor/autoload.php';

/**
 * write your phantom js request
 * @see https://phantomjscloud.com/docs/
 */
$request = new \PhantomJS\PageRequest('http://www.example.com');

/**
 * Initialize Guzzle to perform HTTP requests
 * @see http://docs.guzzlephp.org/en/stable
 * The request url will be https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request={url:%22http://www.example.com%22}
 */
$client = new GuzzleHttp\Client();
$response = $client->get($request->getApiUrl() . '?request=' . $request->toJSON());
print $response->getBody();
```

### TODO - What we plan next for this code

[](#todo---what-we-plan-next-for-this-code)

- have a directory structure that will allow you to separate PhantomJS classes from helper classes
- migrate public arguments to protected arguments where possible and use setters and getters.
- see TODO's in the class comments
- add examples in the documentation

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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 ~1 days

Total

4

Last Release

3346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13b6b73a69c16b06d2fc6296529526423796dc1098acc0155edd54f17a54e909?d=identicon)[cfv1000](/maintainers/cfv1000)

---

Top Contributors

[![flaviu-chelaru](https://avatars.githubusercontent.com/u/3073353?v=4)](https://github.com/flaviu-chelaru "flaviu-chelaru (7 commits)")

---

Tags

apiphantomphantom-jsphantomjsphp-sdk

### Embed Badge

![Health badge](/badges/cfv1000-phantomjs-cloud/health.svg)

```
[![Health](https://phpackages.com/badges/cfv1000-phantomjs-cloud/health.svg)](https://phpackages.com/packages/cfv1000-phantomjs-cloud)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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