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

ActiveLibrary[API Development](/categories/api)

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

PHP Library for bing news search API.

1.0.0(5y ago)1231[1 issues](https://github.com/YujiIsNotAvailable/BingNewsSearch/issues)[1 PRs](https://github.com/YujiIsNotAvailable/BingNewsSearch/pulls)PHPPHP &gt;=7.4

Since Feb 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/YujiIsNotAvailable/BingNewsSearch)[ Packagist](https://packagist.org/packages/bing-news-search/bing-news-search)[ RSS](/packages/bing-news-search-bing-news-search/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#bingnewssearch-api-library)

### See more of this API at:

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

---

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

[](#dependencies)

- PHP7.4 &gt;
- GuzzleHttp 7.0.x &gt;

---

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

[](#instalation)

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

```

---

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

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44e51f7ac88018841061e3fd2aafc1a5c1e7657e26d684620e114d57a6b20853?d=identicon)[YujiIsNotAvailable](/maintainers/YujiIsNotAvailable)

---

Top Contributors

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

---

Tags

apibinglibrarynewsphpsearch

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
