Skip to content

Commit 859723f

Browse files
committed
add php dependencies
1 parent 27655f8 commit 859723f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ $response = $result->getResponse();
3737

3838
var_dump($response);
3939
```
40+
### Instalation in Laravel
4041

42+
``` php
43+
// Set the api, public key, provider and environment secret as follows in your .env file
44+
45+
MPESA_API_KEY ="Your API Key";
46+
MPESA_PUBLIC_KEY='You Public Key'
47+
MPESA_ENV='test' // 'live' production environment
48+
MPESA_SERVICE_PROVIDER_CODE=171717
49+
```
4150
### Testing
4251

4352
``` bash

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
],
2525
"require": {
2626
"php": ">=7.3",
27-
"guzzlehttp/guzzle": "^7.0"
27+
"guzzlehttp/guzzle": "^7.0",
28+
"ext-curl": "*",
29+
"ext-json": "*"
2830
},
2931
"require-dev": {
3032
"phpunit/phpunit": "^9.3.3"

0 commit comments

Comments
 (0)