Skip to content

Commit 625ab37

Browse files
committed
Update Download and install steps
1 parent 982436b commit 625ab37

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ $stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME, array('region'=>
3535
#### Download and install library:
3636
To use the PHP SDK, you need to perform the following steps:
3737

38-
1. Download/clone the PHP SDK from [here](https://www.contentstack.com/docs/platforms/php/php_sdk_latest).
39-
2. Paste the downloaded ZIP file of the PHP SDK to a folder of your choice.
38+
1. [Download](https://www.contentstack.com/docs/platforms/php/php_sdk_latest) the PHP SDK
39+
2. Create `dependencies` folder in your project directory
40+
3. Move this downloaded zip file to a `dependencies` folder
41+
4. Download the [MabeEnum](https://github.com/marc-mabe/php-enum)
42+
5. Create `marc-mabe` folder inside the `dependencies` folder
43+
6. Move the `php-enum` folder inside the `marc-mabe` folder
4044

4145
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
4246

4347
```php
48+
include_once __DIR__ . '/dependencies/contentstack/index.php';
4449
use Contentstack\Contentstack;
45-
include_once "contentstack/contentstack.php";
4650
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
4751
```
4852

0 commit comments

Comments
 (0)