PHPackages                             projectivemotion/php-scraper-tools - 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. projectivemotion/php-scraper-tools

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

projectivemotion/php-scraper-tools
==================================

PHP Curl Wrapper. Written specifically for scraping purposes.

1.0.0(9y ago)08384MITPHP

Since Feb 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/projectivemotion/php-scraper-tools)[ Packagist](https://packagist.org/packages/projectivemotion/php-scraper-tools)[ RSS](/packages/projectivemotion-php-scraper-tools/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (4)

php-scraper-tools
=================

[](#php-scraper-tools)

PHP Curl Wrapper. Written for use in web scraping.

[![Build Status](https://camo.githubusercontent.com/898f54b8a108a640dab1cbebd1b8361c7bc92d6cac503434d43c0e6376ae798c/68747470733a2f2f7472617669732d63692e6f72672f70726f6a6563746976656d6f74696f6e2f7068702d736372617065722d746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/projectivemotion/php-scraper-tools)

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

[](#installation)

> composer require projectivemotion/php-scraper-tools

Features
--------

[](#features)

- Quick and easy cookie, cache, and verbose configuration

    - `->verboseOn()`
    - `->verboseOff()`
    - `->cacheOn()`
    - `->cacheOff()`
    - `->setCookieFileName()`
- Automatic referrer header
- Easy ajax posts

    - `->getCurl('/ajax.php', ['q' => 'search string'], TRUE)`
- Customizable headers
- Easy POST/GET

    - `->getCurl('/login.php', ['username' => 'myuser', 'pass' => 'mypass'])`
- Enabling cache will save responses to filesystem so you can analyze them.

    ```
    $scraper = new CacheScraper();

    $scraper->setCacheDir('./');

    $scraper->cacheOn();

    $response = $scraper->get_cache('/mypage.php', ['search' => 'somethingtosearchfor']);

    ```

Usage
-----

[](#usage)

See `demo/` directory

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2016 Amado Martinez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

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

Recently: every ~66 days

Total

6

Last Release

3499d ago

Major Versions

0.2.0 → 1.0.02016-11-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/8da7af14cc7a6046de4335675173ca7320a63f43d9e4f4f865b8e41b6898430a?d=identicon)[projectivemotion](/maintainers/projectivemotion)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/projectivemotion-php-scraper-tools/health.svg)

```
[![Health](https://phpackages.com/badges/projectivemotion-php-scraper-tools/health.svg)](https://phpackages.com/packages/projectivemotion-php-scraper-tools)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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