survos / bing-news-bundle
Symfony bundle for interacting with the Bing News API
Fund package maintenance!
kbond
Installs: 118
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.3
- symfony/cache-contracts: ^3.5
- symfony/config: ^6.4 || ^7.1
- symfony/dependency-injection: ^6.4 || ^7.1
- symfony/form: ^7.2
- symfony/http-kernel: ^6.4 || ^7.1
- tacman/bing-news-search: dev-refactor
- twig/twig: ^3.15
- zenstruck/console-extra: ^1.4
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.4
- survos/simple-datatables-bundle: ^1.5
- symfony/browser-kit: ^6.4 || ^7.1
- symfony/framework-bundle: ^6.4 || ^7.1
- symfony/http-client: ^6.4 || ^7.1
- symfony/phpunit-bridge: ^6.4 || ^7.1
- symfony/twig-bundle: ^6.4 || ^7.1
- symfony/var-dumper: ^6.4 || ^7.1
- symfony/yaml: ^6.4 || ^7.1
Suggests
- survos/simple-datatables-bundle: searchable/sortable tables when browsing
- symfony/cache: cache search results
- dev-main
- 1.5.501
- 1.5.500
- 1.5.499
- 1.5.498
- 1.5.497
- 1.5.496
- 1.5.495
- 1.5.494
- 1.5.493
- 1.5.492
- 1.5.491
- 1.5.490
- 1.5.489
- 1.5.488
- 1.5.487
- 1.5.486
- 1.5.485
- 1.5.484
- 1.5.483
- 1.5.482
- 1.5.481
- 1.5.480
- 1.5.479
- 1.5.478
- 1.5.477
- 1.5.476
- 1.5.475
- 1.5.474
- 1.5.473
- 1.5.472
- 1.5.471
- 1.5.470
- 1.5.469
- 1.5.468
- 1.5.467
- 1.5.466
- 1.5.465
- 1.5.464
- 1.5.463
- 1.5.462
- 1.5.461
- 1.5.460
- 1.5.459
- 1.5.458
- 1.5.457
- 1.5.456
- 1.5.455
- 1.5.454
- 1.5.453
- 1.5.452
- 1.5.451
- 1.5.450
- 1.5.449
- 1.5.448
- 1.5.447
- 1.5.446
- 1.5.445
- 1.5.444
This package is auto-updated.
Last update: 2025-02-06 17:15:00 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 | +----------------+-----------+--------+