PHPackages                             bilginpro/agency-dha - 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. bilginpro/agency-dha

ActiveLibrary

bilginpro/agency-dha
====================

Crawler for DHA News Agency in Turkey.

v1.0.3(6y ago)1548MITPHPPHP &gt;=5.6

Since Aug 31Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bilginpro/agency-dha)[ Packagist](https://packagist.org/packages/bilginpro/agency-dha)[ Docs](https://github.com/bilginpro/agency-dha)[ RSS](/packages/bilginpro-agency-dha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

DHA News Crawler - DHA Haber Robotu
===================================

[](#dha-news-crawler---dha-haber-robotu)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7b718aa7e6d6ec5066175dfb18230cf5377088173eabc37c3c32cb3dc6f8a688/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62696c67696e70726f2f6167656e63792d6468612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bilginpro/agency-dha)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c23ee124ab50ce9f7f496782485689a0c357198cad82fcccef43616afcd32c08/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62696c67696e70726f2f6167656e63792d6468612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bilginpro/agency-dha)[![Coverage Status](https://camo.githubusercontent.com/bd00a2749c08bde8635c5ecae555559024316dac672789789bffc8ee9f614451/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f62696c67696e70726f2f6167656e63792d6468612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bilginpro/agency-dha/code-structure)[![Quality Score](https://camo.githubusercontent.com/8a2d8eb2399555784326f79737241eec70bb88bac8672284d1b7873bcbc57136/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62696c67696e70726f2f6167656e63792d6468612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bilginpro/agency-dha)[![Total Downloads](https://camo.githubusercontent.com/a6e2204f3392cb20d5774365ad749ef81202629e8fc25ad5640df30a78c41ee9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62696c67696e70726f2f6167656e63792d6468612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bilginpro/agency-dha)

\[EN\] This package is created for crawling news from Dogan Haber Ajansi. You have to be subscribed to DHA and obtain user credentials for being able to use this package.

\[TR\] Bu paket DHA abonelerinin kullanıcı bilgileriyle haberleri taramaları için oluşturulmuştur. Aşağıdaki şekilde kullandığınızda son eklenen haberlerden istediğiniz adette haberi dizi olarak alabilirsiniz. Paketi kullanmak için DHA abonesi olmalı ve kullanıcı bilgilerine sahip olmalısınız.

Install
-------

[](#install)

Via Composer

```
$ composer require bilginpro/agency-dha
```

Usage
-----

[](#usage)

```
$crawler = new \BilginPro\Agency\Dha\Crawler([
    'x_code' => 'your-x-parameter',
    'y_code' => 'your-y-parameter',
    'summaryLength' => 150 // optional
]);

$news = $crawler->crawl(['limit' => 10]);
```

Calling `$crawler->crawl()` will return an array like this:

```
[{
		"code": "737561a6b989cb305300fd60995140fe",
		"title": "Title of the news 1",
		"summary": "Summary...",
		"content": "Content 1",
		"created_at": "31.08.2017 15:56:12",
		"category": "Genel",
		"city": "Istanbul",
		"images": ["http:\/\/path\/to\/news1\/image1", "http:\/\/path\/to\/news1\/image2"]
	},
	{
		"code": "737561a6b989cb305300fd60995140fc",
		"title": "Title of the news 2",
		"summary": "Summary...",
		"content": "Content 2",
		"created_at": "31.08.2017 15:56:12",
		"category": "Genel",
		"city": "Ankara",
		"images": ["http:\/\/path\/to\/news2\/image1", "http:\/\/path\/to\/news2\/image2"]
	}
]
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Yavuz Selim Bilgin](https://github.com/ysb)
- [Murat Paksoy](https://github.com/slavesoul)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d96b397d4e5614bb3ea346efd7e7de25f0b3d47c0a3b7619622d2be554be98e?d=identicon)[bilginpro](/maintainers/bilginpro)

---

Tags

bilginpronews agencyagency-dhadha

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bilginpro-agency-dha/health.svg)

```
[![Health](https://phpackages.com/badges/bilginpro-agency-dha/health.svg)](https://phpackages.com/packages/bilginpro-agency-dha)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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