PHPackages                             scrapinglink/php-scraping-link - 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. scrapinglink/php-scraping-link

ActiveLibrary[API Development](/categories/api)

scrapinglink/php-scraping-link
==============================

Package to use Scraping Link API from PHP

1.0.1(4y ago)313MITPHPPHP ^7.4|^8.0

Since May 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/ScrapingLink/php-scraping-link)[ Packagist](https://packagist.org/packages/scrapinglink/php-scraping-link)[ Docs](https://github.com/scrapinglink/php-scraping-link)[ GitHub Sponsors](https://github.com/ScrapingLink)[ RSS](/packages/scrapinglink-php-scraping-link/feed)WikiDiscussions main Synced 1w ago

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

Package to use Scraping Link API from PHP
=========================================

[](#package-to-use-scraping-link-api-from-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/337e213a8e35871dac4d61d8fdcced15f10f402ff59b03a84d951bef370e2ac2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7363726170696e676c696e6b2f7068702d7363726170696e672d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scrapinglink/php-scraping-link)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fb9d4d72f36a6e06df643210edb9e1e15bad7b00b24ba6acdadf84821ff5efaa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7363726170696e676c696e6b2f7068702d7363726170696e672d6c696e6b2f54657374733f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/scrapinglink/php-scraping-link/actions?query=workflow%3ATests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b3b29fddc7d7080667cf96284f9dd36435d341a7cf505927eab381e948a6a5a0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7363726170696e676c696e6b2f7068702d7363726170696e672d6c696e6b2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/scrapinglink/php-scraping-link/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b0ab4de5e795ddcbaf94e5ba6544b2584a33b1d8d242d60ca65c79ebdc1324e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7363726170696e676c696e6b2f7068702d7363726170696e672d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scrapinglink/php-scraping-link)

---

[![scraping.link web scraping API](https://camo.githubusercontent.com/8ee61611b75b4b8fa6e64fce0b5b4344616793a0ecc8f8a4a2684145e5a42144/68747470733a2f2f7363726170696e672e6c696e6b2f77702d636f6e74656e742f75706c6f6164732f323032312f30342f7363726170696e676c696e6b2e706e67)](https://camo.githubusercontent.com/8ee61611b75b4b8fa6e64fce0b5b4344616793a0ecc8f8a4a2684145e5a42144/68747470733a2f2f7363726170696e672e6c696e6b2f77702d636f6e74656e742f75706c6f6164732f323032312f30342f7363726170696e676c696e6b2e706e67)

A PHP Package for Web Scraping with [Scraping.link](https://scraping.link). Scraping Link allows you to scrape any website and solve typical blocking complications.

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

[](#installation)

You can install the package via composer:

```
composer require scrapinglink/php-scraping-link
```

Usage
-----

[](#usage)

### Initialize using your API token

[](#initialize-using-your-api-token)

```
use Scrapinglink\PhpScrapingLink\ScrapingLink;

$scrapingLink = new ScrapingLink('LZIK69Bfg2km3VDG1oyHnwo1RMIymIYgChuocgypoqyQstGeonVpS6iNBMTz');
```

### Scrape URL and get response

[](#scrape-url-and-get-response)

```
$response = $scrapingLink->scrape('https://google.com');

echo "Status code: " . $response->status();
echo "Body: " . $response->body();
```

### Scrape URL and get response with JS rendering

[](#scrape-url-and-get-response-with-js-rendering)

```
$response = $scrapingLink->scrape('https://google.com', true);

echo "Status code: " . $response->status();
echo "Body: " . $response->body();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Scraping Link](https://github.com/ScrapingLink)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

1818d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/71259263?v=4)[Pan8](/maintainers/ScrapingLink)[@ScrapingLink](https://github.com/ScrapingLink)

---

Top Contributors

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

---

Tags

ScrapingLinkphp-scraping-link

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/scrapinglink-php-scraping-link/health.svg)

```
[![Health](https://phpackages.com/badges/scrapinglink-php-scraping-link/health.svg)](https://phpackages.com/packages/scrapinglink-php-scraping-link)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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