Skip to content

Commit

Permalink
Removed Guzzle dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jul 15, 2017
1 parent 8686527 commit 6a5871e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 111 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -26,8 +26,12 @@ php composer.phar require php-http/guzzle6-adapter # if you want to use HTTPlug

### Usage
```php
// Create Guzzle connection
$connection = new \Core23\LastFm\Connection\GuzzleConnection(API_KEY, SHARED_SECRET);
// Get HTTPlug client and message factory
$client = \Http\Discovery\HttpClientDiscovery::find();
$messageFactory = \Http\Discovery\MessageFactoryDiscovery::find();

// Create connection
$connection = new \Core23\LastFm\Connection\HTTPlugConnection($client, $messageFactory);

// Auth user to get a token
// http://www.last.fm/api/auth/?api_key=API_KEY
Expand Down
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -25,7 +25,6 @@
"require-dev": {
"phpunit/phpunit": "^5.7",
"friendsofphp/php-cs-fixer": "^2.0",
"guzzlehttp/guzzle": "^5.0 || ^6.0",
"php-http/httplug-bundle": "^1.1",
"php-http/mock-client": "^0.3",
"sllh/php-cs-fixer-styleci-bridge": "^2.0"
Expand Down
108 changes: 0 additions & 108 deletions src/Connection/GuzzleConnection.php

This file was deleted.

0 comments on commit 6a5871e

Please sign in to comment.