survos / bing-news-bundle
Symfony bundle for interacting with the Bing News API
Fund package maintenance!
kbond
Installs: 112
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
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 | +----------------+-----------+--------+