Skip to content

Commit

Permalink
Update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
hotmeteor committed Jan 24, 2021
1 parent 42739d1 commit 7d704f1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Laravel Phinch

A Laravel package for the Finch API SDK

### Installation

```shell
composer require hotmeteor/phinch-laravel
```

### Configuration

In your `config/services.php` file add:

```php
'finch' => [
'client_id' => env('FINCH_CLIENT_ID'),
'client_secret' => env('FINCH_CLIENT_SECRET'),
'redirect_url' => env('FINCH_REDIRECT_URL'),
],
```

Add the associated values to your .env file.
6 changes: 3 additions & 3 deletions src/PhinchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public function register()
$this->app->singleton(Finch::class, function ($app) {
return new Finch(
new FinchClient(
config('services.phinch.client_id'),
config('services.phinch.client_secret'),
config('services.finch.client_id'),
config('services.finch.client_secret'),
config('phinch.api_version'),
config('services.phinch.redirect_url'),
config('services.finch.redirect_url'),
)
);
});
Expand Down

0 comments on commit 7d704f1

Please sign in to comment.