Skip to content

Commit a8851d0

Browse files
Merge pull request #12 from contentstack/asset_query
Asset Query function issue resolve
2 parents 7138ead + 146a7cf commit a8851d0

20 files changed

+1517
-806
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.idea/
33
composer.phar
44
composer.lock
5-
composer.json
65
vendor/
76
test/report.html
87
test/AssetsTestReport.html
@@ -12,4 +11,5 @@ test/Entryreport.html
1211
test/Entriesreport.html
1312
test/ImageTransformreport.html
1413
test/result.json
15-
examples/index.php
14+
examples/index.php
15+
.DS_Store

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ To use the PHP SDK, you need to perform the following steps:
1818
1. Download/clone the PHP SDK from [here](https://www.contentstack.com/docs/platforms/php/php_sdk_latest).
1919
2. Paste the downloaded ZIP file of the PHP SDK to a folder of your choice.
2020

21-
To initialize the SDK, you will need to specify the API Key, Access Token, and Environment Name of your stack.
21+
To initialize the SDK, you will need to specify the API Key, Delivery Token, and Environment Name of your stack.
2222

2323
use Contentstack\Contentstack;include_once "contentstack/index.php";
24-
$stack = Contentstack::Stack(API_KEY, ACCESS_TOKEN, ENV_NAME);
24+
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
2525

2626
### Key Concepts for using Contentstack
2727

@@ -55,9 +55,9 @@ A publishing environment corresponds to one or more deployment servers or a cont
5555
To initialize the SDK, you need to provide values for the ***s given in the snippet below:
5656

5757
use Contentstack\Contentstack;include_once "contentstack/index.php";
58-
$stack = Contentstack::Stack(API_KEY, ACCESS_TOKEN, ENV_NAME);
58+
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
5959

60-
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 Access Token.
60+
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.
6161

6262

6363

composer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "contentstack/contentstack-php",
3+
"description": "Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.",
4+
"type": "library",
5+
"license": "MIT",
6+
"***words": [
7+
"Contentstack", "api"
8+
],
9+
"authors": [
10+
{
11+
"name": "Contentstack",
12+
"homepage": "https://www.contentstack.com/",
13+
"role": "Owner"
14+
},
15+
{
16+
"name": "Uttam K Ukkoji",
17+
"email": "uttamukkoji@gmail.com",
18+
"role": "Developer"
19+
}
20+
],
21+
"autoload": {
22+
"psr-4": {
23+
"Contentstack\\": "src/"
24+
},
25+
"files": ["src/Support/helper.php"]
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "^9.0"
29+
},
30+
"require": {
31+
"php" : ">=5.5.0"
32+
}
33+
}

0 commit comments

Comments
 (0)