PHPackages                             tacman/bing-news-search - 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. tacman/bing-news-search

ActiveLibrary[API Development](/categories/api)

tacman/bing-news-search
=======================

PHP Library for bing news search API.

2.0.5(1y ago)02841MITPHPPHP ^8.3

Since Mar 2Pushed 1y agoCompare

[ Source](https://github.com/tacman/BingNewsSearch)[ Packagist](https://packagist.org/packages/tacman/bing-news-search)[ RSS](/packages/tacman-bing-news-search/feed)WikiDiscussions refactor Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (9)Used By (1)

BingNewsSearch API Library
==========================

[](#bingnewssearch-api-library)

Fork of

This fork drops support for PHP 7 and refactors how structures are populated. It is used by the survos/bing-news-bundle.

### See more of this API at:

[](#see-more-of-this-api-at-httpsdocsmicrosoftcomen-usbingsearch-apisbing-news-search)

---

Dependencies
------------

[](#dependencies)

- PHP 8.3+
- GuzzleHttp 7.0.x &gt;

---

Instalation
-----------

[](#instalation)

```
composer require tacman/bing-news-search

```

composer config repositories.bing\_news '{"type": "vcs", "url": ":tacman/BingNewsSearch.git"}' composer require tacman/bing-news-search:dev-refactor

composer config repositories.bing\_news '{"type": "path", "url": "~/g/tacman/BingNewsSearch"}' composer require tacman/bing-news-search:\*@dev

---

Usage of Api bing NEWS microsoft an easy way
--------------------------------------------

[](#usage-of-api-bing-news-microsoft-an-easy-way)

### Initialize the Client instance

[](#initialize-the-client-instance)

```
$client = new Client(
  'apibingurl.com.br',  // https://api.bing.microsoft.com/
  'your_secret_key' // a1b2c3d4e5f6g7h8a1b2c3d4e5f6g7h8
);
```

### Configure client

[](#configure-client)

```
$client->enableExceptions(); // throw exceptions for debug
$client->disableSsl(); // disable Guzzle verification SSL
```

### Search by category

[](#search-by-category)

```
// Ex: Search by business category, with pt_BR language, without safe search restriction;
$request = $client->category()
  ->get(Enum\Category::BUSINESS(), Enum\Language::PT_BR())
  ->setSafeSearch(Enum\SafeSearch::OFF())
  ->request();
$news = $request->getNews();
```

### Search by key word

[](#search-by-key-word)

```
// Ex: Search by key word, limited at 50 items, with safe search restriction;
 $request = $client->search()
    ->get('something cool')
    ->setQuantity(50)
    ->setSafeSearch(Enum\SafeSearch::STRICT())
    ->request();
$news = $request->getNews();
```

### Search by trending topics

[](#search-by-trending-topics)

```
// Ex: Get trending topics news, with en_US language.
 $request = $client->trending()
    ->get(Enum\Language::EN_US())
    ->request();
$news = $request->getTrending();
```

**MORE**

---

Check BingNewsSearch\\Enum classes to know all avaiables search configurations, such as: Categories and SubCategories, Languages and more..

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance41

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 56.7% 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 ~1 days

Total

6

Last Release

494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![gabriel-yuji-inoue](https://avatars.githubusercontent.com/u/63526333?v=4)](https://github.com/gabriel-yuji-inoue "gabriel-yuji-inoue (17 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (13 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tacman-bing-news-search/health.svg)

```
[![Health](https://phpackages.com/badges/tacman-bing-news-search/health.svg)](https://phpackages.com/packages/tacman-bing-news-search)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[storyblok/php-content-api-client

PHP Client for Storyblok Content API

11136.8k4](/packages/storyblok-php-content-api-client)

PHPackages © 2026

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