Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece authored Aug 16, 2023
1 parent c19dad4 commit 20d44ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ composer require azuracast/nowplaying
<?php
// Example PSR-17 and PSR-18 implementation from Guzzle 7
// Install those with:
// composer require guzzlehttp/guzzle:^7 http-interop/http-factory-guzzle
// composer require guzzlehttp/guzzle

$httpFactory = new GuzzleHttp\Psr7\HttpFactory();
$adapterFactory = new NowPlaying\AdapterFactory(
new Http\Factory\Guzzle\UriFactory,
new Http\Factory\Guzzle\RequestFactory,
$httpFactory,
$httpFactory,
new GuzzleHttp\Client
);

$adapter = $adapterFactory->getAdapter(
NowPlaying\AdapterFactory::ADAPTER_SHOUTCAST2,
NowPlaying\Enums\AdapterType::Shoutcast2,
'http://my-station-url.example.com:8000'
);

Expand Down

0 comments on commit 20d44ab

Please sign in to comment.