Skip to content

Commit d4f902e

Browse files
Rakesh Ranjanranjanrak
authored andcommitted
fix: change 'stability' field in composer.json
fix: Add “vendor/autoload.php” require at root DIR level to access package fix: Update README to require autoload file
1 parent fd415cc commit d4f902e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ composer require zerodha/phpkiteconnect
1818
## Usage
1919
```php
2020
<?php
21+
require_once __DIR__ . '/vendor/autoload.php';
22+
2123
use KiteConnect\KiteConnect;
2224

2325
// Initialise.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"autoload": {
3232
"psr-4": {
33-
"KiteConnect\\": "src"
33+
"KiteConnect\\": "src/"
3434
}
3535
},
3636
"autoload-dev": {
@@ -47,6 +47,6 @@
4747
"config": {
4848
"sort-packages": true
4949
},
50-
"minimum-stability": "stable",
50+
"minimum-stability": "dev",
5151
"prefer-stable": true
5252
}

examples/kiteconnect_sample.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once __DIR__ . '/vendor/autoload.php';
4+
35
use KiteConnect\KiteConnect;
46

57
// Initialise.

0 commit comments

Comments
 (0)