Skip to content

Commit

Permalink
Remove dependence on environment
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Feb 26, 2018
1 parent a932bf8 commit 9b968e6
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ To carry out a transaction or access a resource, you will need an instance of th
This will be used for your API calls.

```php
$mw = new \HngX\Moneywave\Moneywave($youApiKey, $yourSecretKey);
```

Alternatively, if you are using the vlucas/phpdotenv library, you cann save these values to your `.env` file:
```env
MONEYWAVE_API_KEY=your-api-key-here
MONEYWAVE_SECRET_KEY=your-secret-key-here
```
And then they automatically get used:
```php
$mw = new \HngX\Moneywave\Moneywave(); //works too!
$mw = new \HngX\Moneywave\Moneywave($yourApiKey, $yourSecretKey);
```

## <a name="usage1">Usage: Dispatching Transactions/Resources</a>
Expand Down Expand Up @@ -214,4 +204,4 @@ You will get an instance of `\HngX\MoneywaveException` if you do anything naught
composer require hngx/moneywave-php
```
## <a name="bugs">Bugs</a>
If you notice any bugs, please create a new issue. We will attend to it promptly.
If you notice any bugs, please create a new issue. We will attend to it promptly.

0 comments on commit 9b968e6

Please sign in to comment.