survos / bing-news-bundle
Symfony bundle for interacting with the Bing News API
Package info
github.com/survos/SurvosBingNewsBundle
Type:symfony-bundle
pkg:composer/survos/bing-news-bundle
Fund package maintenance!
Requires
- php: ^8.3
- symfony/cache-contracts: ^3.6
- symfony/config: ^6.4 || ^7.3
- symfony/dependency-injection: ^6.4 || ^7.3.1
- symfony/form: ^7.3.1
- symfony/http-kernel: ^6.4 || ^7.3.1
- tacman/bing-news-search: dev-refactor
- twig/twig: ^3.21.1
Requires (Dev)
- phpstan/phpstan: ^2.1.19
- phpunit/phpunit: ^11.5.27
- survos/simple-datatables-bundle: ^1.5.529
- symfony/browser-kit: ^6.4 || ^7.3
- symfony/framework-bundle: ^6.4 || ^7.3.1
- symfony/http-client: ^6.4 || ^7.3.1
- symfony/phpunit-bridge: ^6.4 || ^7.3.1
- symfony/twig-bundle: ^6.4 || ^7.3.1
- symfony/var-dumper: ^6.4 || ^7.3.1
- symfony/yaml: ^6.4 || ^7.3.1
Suggests
- survos/simple-datatables-bundle: searchable/sortable tables when browsing
- symfony/cache: cache search results
This package is auto-updated.
Last update: 2026-06-12 18:31:39 UTC
README
A Symfony bundle to interact with Bing News API via the bing-news-API library.
Still under development, feedback welcome!
Quickstart
symfony new bing-news-demo --webapp && cd bing-news-demo composer require survos/bing-news-bundle
composer config repositories.survos_bing_news_bundle '{"type": "path", "url": "../survos/packages/bing-news-bundle"}' composer req survos/bing-news-bundle:"*@dev"
composer config repositories.tacman_bing_search '{"type": "path", "url": "~/g/tacman/BingNewsSearch"}' composer req tacman/bing-news-search:"*@dev"
Resources
- https://portal.azure.com/#@tacmangmail.onmicrosoft.com/resource/subscriptions/2809ba0c-d042-49a8-a2f5-4363572b8c8a/resourceGroups/News/providers/Microsoft.Bing/accounts/BingNews/overview
- https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/reference/query-parameters#category
- https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/use-display-requirements
- https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/how-to/search-response
- https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/reference/response-objects#newsarticle
- https://learn.microsoft.com/en-us/bing/search-apis/bing-news-search/reference/response-objects#newsanswer
Installation
Go to Microsoft Azure and get a key.
Create a new Symfony project.
symfony new bing-news-demo --webapp && cd bing-news-demo composer require survos/bing-news-bundle bin/console bing-news:list
You can browse interactively with the basic admin controller.
composer require survos/simple-datatables-bundle symfony server:start -d symfony open:local --path=/bing-news/
Or edit .env.local and add your API key.
bin/console bing-news:list
+------------- museado/ -----+--------+ | ObjectName | Path | Length | +----------------+-----------+--------+ | photos finales | /museado/ | 0 | +----------------+-----------+--------+