PHPackages                             anilken/scraper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anilken/scraper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

anilken/scraper
===============

Scrape turkish popular sites - Education purpose only - Sahibinden, Afad ..

v1.0.2(3y ago)7593[2 PRs](https://github.com/anilken/scraper/pulls)MITPHPPHP &gt;=7.3.0

Since Jun 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/anilken/scraper)[ Packagist](https://packagist.org/packages/anilken/scraper)[ Docs](https://github.com/anilken/scraper)[ GitHub Sponsors](https://github.com/anilken)[ RSS](/packages/anilken-scraper/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (8)Versions (6)Used By (0)

Scrape turkish popular sites - Education purpose only
=====================================================

[](#scrape-turkish-popular-sites---education-purpose-only)

[![Latest Version on Packagist](https://camo.githubusercontent.com/21d887305f65d74a30869a6a686441ee772e2afa1721fd856fcd0369d3831953/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e696c6b656e2f736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anilken/scraper)[![Tests](https://github.com/anilken/scraper/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/anilken/scraper/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/bd83ddbf54872717dcafbca9f67741d2c86bfc076ef710b65a2224434acfd9c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e696c6b656e2f736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anilken/scraper)

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

[](#installation)

Add `anilken/scraper` as a require dependency in your `composer.json` file:

```
composer require anilken/scraper
```

Currently supported sites
-------------------------

[](#currently-supported-sites)

- Sahibinden - [Examples](examples/Sahibinden.md)
- More coming soon...

Usage example of sahibinden
---------------------------

[](#usage-example-of-sahibinden)

First create a `Sahibinden` or `other` instance.

```
use Anilken\Scraper\Sahibinden;

$scraper = new Sahibinden();
```

Use with proxy:

```
$scraper = new Sahibinden(new \GuzzleHttp\Client(['proxy' => 'https://127.0.0.1:80', 'verify' => false]));
```

There are several methods to configure the default behavior:

- `setDelay($delay)`: Sets the delay in milliseconds between requests to site.

### getListingId

[](#getlistingid)

#### Parameters

[](#parameters)

- `$id`: Sahibinden app identifier.

#### Example

[](#example)

```
$app = $scraper->getListingId('1029942112');

//or get with url

$app = $scraper->getListingUrl('https://www.sahibinden.com/listing/vasita-arazi-suv-pickup-land-rover-24-saat-gecerli-rakam-sandik-motorlu-faturali-takas-olur-1029942112/detail');
```

Gets listing information given its ID.

Returns:

```
array:12 [▼
  "id" => "1029942112"
  "url" => "https://www.sahibinden.com/listing/vasita-arazi-suv-pickup-land-rover-24-saat-gecerli-rakam-sandik-motorlu-faturali-takas-olur-1029942112/detail"
  "title" => "24 SAAT GEÇERLİ RAKAM SANDIK MOTORLU FATURALI TAKAS OLUR"
  "price" => "400.000"
  "description" => ""
  "description_html" => ""
  "user" => array:2 [▼
    "name" => "Levent XXX"
    "phone" => array:1 [▼
      0 => "0 (501) XXX XX XX"
    ]
  ]
  "info" => array:21 [▼
    "İlan No" => "1029942112"
    "İlan Tarihi" => "01 Haziran 2022"
    "Marka" => "Land Rover"
    "Seri" => "Range Rover Sport"
    "Model" => "2.7 TDV6 HSE"
    "Yıl" => "2008"
    "Yakıt" => "Dizel"
    "Vites" => "Otomatik"
    "KM" => "358.125"
    "Kasa Tipi" => "SUV"
    "Motor Gücü" => "190 hp"
    "Motor Hacmi" => "2720 cc"
    "Çekiş" => "4x4"
    "Kapı" => "5"
    "Renk" => "Siyah"
    "Garanti" => "Hayır"
    "Plaka / Uyruk" => "Türkiye (TR) Plakalı"
    "Kimden" => "Galeriden"
    "Görüntülü Arama İle Görülebilir" => "Hayır"
    "Takas" => "Evet"
    "Durumu" => "İkinci El"
  ]
  "images" => array:16 [▼
    0 => array:3 [▼
      "thumbnail" => "https://i0.shbdn.com/photos/94/21/12/thmb_1029942112otl.jpg"
      "medium" => "https://i0.shbdn.com/photos/94/21/12/x5_1029942112otl.jpg"
      "full" => "https://i0.shbdn.com/photos/94/21/12/x16_1029942112otl.jpg"
    ]
    1 => array:3 [▶]

  ]
  "breadcrumb" => array:6 [▼
    0 => array:2 [▼
      "url" => "/kategori/vasita"
      "text" => "Vasıta"
    ]
    1 => array:2 [▶]
  ]
  "loc_breadcrumb" => array:3 [▼
    0 => array:2 [▼
      "url" => "/arazi-suv-pickup-land-rover-range-rover-sport-2.7-tdv6-hse/aydin"
      "text" => "Aydın"
    ]
    1 => array:2 [▶]
  ]
  "attributes" => array:4 [▼
    "Güvenlik" => array:14 [▼
      0 => "ABS"
      1 => "Airmatic"
      2 => "Alarm"
      3 => "ASR"
      4 => "BAS"
      5 => "EBD"
      6 => "EDL"
      7 => "ESP / VSA"
      8 => "Hava Yastığı (Sürücü)"
      9 => "Hava Yastığı (Yolcu)"
      10 => "Immobiliser"
      11 => "Merkezi Kilit"
      12 => "TCS"
      13 => "Yokuş Kalkış Desteği"
    ]
    "İç Donanım" => array:16 [▶]
    "Dış Donanım" => array:9 [▶]
    "Multimedya" => array:3 [▶]
  ]
]
```

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)

- [ANILKEN](https://github.com/anilken)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3

Last Release

1443d ago

### Community

Maintainers

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

---

Top Contributors

[![anilken](https://avatars.githubusercontent.com/u/5189878?v=4)](https://github.com/anilken "anilken (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

phpsahibindenscraperscraperanilken

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/anilken-scraper/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[ashallendesign/favicon-fetcher

A Laravel package for fetching website's favicons.

190272.4k3](/packages/ashallendesign-favicon-fetcher)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)

PHPackages © 2026

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