PHPackages                             jonnyd/peggy - 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. [Framework](/categories/framework)
4. /
5. jonnyd/peggy

ActiveLibrary[Framework](/categories/framework)

jonnyd/peggy
============

PHP wrapper for 80legs.com API

1.1(10y ago)3491MITPHPPHP &gt;=5.5.0

Since Jan 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/JonnyD/Peggy)[ Packagist](https://packagist.org/packages/jonnyd/peggy)[ Docs](https://github.com/JonnyD/Peggy)[ RSS](/packages/jonnyd-peggy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Peggy
=====

[](#peggy)

A PHP Client for 80Legs.com API.

Installation
------------

[](#installation)

Add to composer.json

`"jonnyd/peggy": "1.*"`

Usage
-----

[](#usage)

### Initialize

[](#initialize)

```
$peggy = new Peggy\Client('');
```

### Making API Calls

[](#making-api-calls)

#### Crawls

[](#crawls)

```
// create crawl
$request = $peggy->crawl()->createCrawlRequest($crawlName, $appName, $urllist, $maxDepth, $maxUrls);
$peggy->crawl()->create($request);

// get crawl
$crawl = $peggy->crawl()->get($crawlName);
echo $crawl->getName();

// cancel crawl
$peggy->crawl()->cancel($crawlName);

// get all crawls
$allCrawls = $peggy->crawl()->all();
foreach ($allCrawls as $crawl) {
   echo $crawl->getName();
}
```

#### Results

[](#results)

```
// get result
$result = $peggy->result()->get($crawlName);
$urls = $result->getUrls(); // Returns the results of the crawl specified by CRAWL_NAME. This will return a 404 if no results have been posted. Example Url: "http://s3.amazonaws.com/results1"
```

#### Apps

[](#apps)

```
// upload app
$request = $peggy->app()->createAppRequest($name, $filePath);
$peggy->app()->upload($request);

// get app
$app = $peggy->app()->get($appName); // this API is broken on 80legs.com

// remove app
$peggy->app()->remove($appName);

// get all apps
$allApps = $peggy->app()->all();
foreach ($allApps as $app) {
    echo $app->getName();
}
```

#### Url Lists

[](#url-lists)

```
// create url list
$request = $peggy->urllist()->createUrllistRequest($name, $filePath);
$peggy->urllist()->upload($request);

// get url list
$urllist = $peggy->urllist()->get($name);
echo $urllist->getName();

// remove url list
$peggy->urllist->remove($name);

// get all url lists
$allUrllists = $peggy->urllist()->all();
foreach ($allUrllists as $urllist) {
    echo $urllist->getName();
}
```

#### User

[](#user)

```
// get me
$me = $peggy->user()->me();

// get user
$user = $peggy->user()->get($token);
```

Todo
----

[](#todo)

- Tests
- Error Handling
- anything else?

Pull Requests
-------------

[](#pull-requests)

Welcomed!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a201af2a87a6b339bb7898cc0dfc6a8baec5bb7e3829448efdc3fda4020729aa?d=identicon)[JonnyD](/maintainers/JonnyD)

---

Top Contributors

[![JonnyD](https://avatars.githubusercontent.com/u/916153?v=4)](https://github.com/JonnyD "JonnyD (4 commits)")

---

Tags

httpclientframeworkrestcurlhttp clientweb service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jonnyd-peggy/health.svg)

```
[![Health](https://phpackages.com/badges/jonnyd-peggy/health.svg)](https://phpackages.com/packages/jonnyd-peggy)
```

###  Alternatives

[eightpoints/guzzle-wsse-middleware

WSSE Middleware for Guzzle, a PHP HTTP client library and framework for building RESTful web service clients

312.1M5](/packages/eightpoints-guzzle-wsse-middleware)[gregurco/guzzle-bundle-oauth2-plugin

OAuth2 Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

13348.3k](/packages/gregurco-guzzle-bundle-oauth2-plugin)[gregurco/guzzle-bundle-cache-plugin

Cache Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

11372.1k1](/packages/gregurco-guzzle-bundle-cache-plugin)

PHPackages © 2026

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