Skip to content

Commit 2463125

Browse files
committed
Renamed index file
1 parent 5524148 commit 2463125

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ A publishing environment corresponds to one or more deployment servers or a cont
6565
### Contentstack PHP SDK: 5-minute Quickstart
6666

6767
#### Initializing your SDK
68+
Install the library using [Composer](https://packagist.org/packages/contentstack/contentstack):
6869

69-
To initialize the SDK, you need to provide values for the keys given in the snippet below:
70+
composer require contentstack/contentstack
71+
72+
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
7073

71-
use Contentstack\Contentstack;include_once "contentstack/index.php";
74+
use Contentstack\Contentstack;
7275
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
7376

7477
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Delivery Token.

0 commit comments

Comments
 (0)