Skip to content

Commit 3771a11

Browse files
author
hitesh.baldaniya
committed
PHP SDK Version 3.0.0 released
1 parent d5bfae8 commit 3771a11

File tree

108 files changed

+27590
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+27590
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
test/report.html
3+
test/result.json

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 built.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

100644100755
Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,54 @@
1-
# contentstack-php
2-
PHP SDK for Built.io Contentstack - Content Delivery API
1+
[![Built.io Contentstack](https://contentstackdocs.built.io/static/images/logo.png)](http://contentstack.io)
2+
3+
# PHP SDK for Built.io Contentstack
4+
Built.io Contentstack is headless CMS with which users can build powerful platform independent applications.
5+
6+
PHP SDK uses Built.io Contentstack Delivery API([REST](https://contentstackdocs.built.io/developer/restapi)) to deliver the content on demand.
7+
8+
## Prerequisite
9+
- PHP >= 5.5.0
10+
11+
## Setup and Installation
12+
13+
- Download/Clone the SDK.
14+
- Paste the downloaded SDK.zip to your favorite folder
15+
- ​Let's get started with implementation as follows
16+
17+
## Initialize the Stack
18+
19+
```
20+
use Contentstack\Contentstack;
21+
include_once "contentstack/index.php";
22+
23+
$stack = Contentstack::Stack(API_KEY, ACCESS_TOKEN, ENV_NAME);
24+
25+
```
26+
27+
## Query the content
28+
29+
```bash
30+
$result = $stack->ContentType(CONTENT_TYPE_UID)->Query()->toJSON()->includeCount()->includeContentType()->find()
31+
$result[0] - array of entries
32+
$result[1] - content type
33+
$result[2] - count of the entries
34+
35+
```
36+
37+
## Fetch the content
38+
39+
```bash
40+
$result = $stack->ContentType(CONTENT_TYPE_UID)->Entry(ENTRY_UID)->toJSON()->fetch()
41+
$result - entry object
42+
43+
```
44+
45+
## Next steps
46+
- [Key Concepts](https://contentstackdocs.built.io/developer/concepts)
47+
- [API Reference](/)
48+
49+
## Links
50+
- [Website](http://contentstack.io/)
51+
- [Official Documentation](http://contentstackdocs.built.io/developer/web/quickstart)
52+
53+
### License
54+
Copyright © 2012-2017 [Built.io](https://www.built.io/). All Rights Reserved.

api-reference/404.html

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="robots" content="noindex">
6+
7+
<title>Page not found</title>
8+
9+
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
10+
11+
</head>
12+
13+
<body>
14+
<div id="left">
15+
<div id="menu">
16+
<a href="index.html" title="Overview"><span>Overview</span></a>
17+
18+
19+
<div id="groups">
20+
<h3>Namespaces</h3>
21+
<ul>
22+
<li>
23+
<a href="namespace-Contentstack.html">
24+
Contentstack<span></span>
25+
</a>
26+
27+
<ul>
28+
<li>
29+
<a href="namespace-Contentstack.Result.html">
30+
Result </a>
31+
32+
</li>
33+
<li>
34+
<a href="namespace-Contentstack.Stack.html">
35+
Stack<span></span>
36+
</a>
37+
38+
<ul>
39+
<li>
40+
<a href="namespace-Contentstack.Stack.ContentType.html">
41+
ContentType<span></span>
42+
</a>
43+
44+
<ul>
45+
<li>
46+
<a href="namespace-Contentstack.Stack.ContentType.BaseQuery.html">
47+
BaseQuery </a>
48+
49+
</li>
50+
<li>
51+
<a href="namespace-Contentstack.Stack.ContentType.Entry.html">
52+
Entry </a>
53+
54+
</li>
55+
<li>
56+
<a href="namespace-Contentstack.Stack.ContentType.Query.html">
57+
Query </a>
58+
59+
</li>
60+
</ul></li></ul></li>
61+
<li>
62+
<a href="namespace-Contentstack.Utility.html">
63+
Utility </a>
64+
65+
</li>
66+
</ul></li>
67+
<li>
68+
<a href="namespace-None.html">
69+
None </a>
70+
71+
</li>
72+
</ul>
73+
</div>
74+
75+
<hr>
76+
77+
78+
<div id="elements">
79+
<h3>Classes</h3>
80+
<ul>
81+
<li><a href="class-Contentstack.Contentstack.html">Contentstack\Contentstack</a></li>
82+
<li><a href="class-Contentstack.Result.Result.html">Contentstack\Result\Result</a></li>
83+
<li><a href="class-Contentstack.Stack.ContentType.BaseQuery.BaseQuery.html">Contentstack\Stack\ContentType\BaseQuery\BaseQuery</a></li>
84+
<li><a href="class-Contentstack.Stack.ContentType.ContentType.html">Contentstack\Stack\ContentType\ContentType</a></li>
85+
<li><a href="class-Contentstack.Stack.ContentType.Entry.Entry.html">Contentstack\Stack\ContentType\Entry\Entry</a></li>
86+
<li><a href="class-Contentstack.Stack.ContentType.Query.Query.html">Contentstack\Stack\ContentType\Query\Query</a></li>
87+
<li><a href="class-Contentstack.Stack.Stack.html">Contentstack\Stack\Stack</a></li>
88+
</ul>
89+
90+
91+
92+
93+
94+
<h3>Functions</h3>
95+
<ul>
96+
<li><a href="function-addBoolean.html">addBoolean</a></li>
97+
<li><a href="function-comparision.html">comparision</a></li>
98+
<li><a href="function-contains.html">contains</a></li>
99+
<li><a href="function-Contentstack.Utility.debug.html">Contentstack\Utility\debug</a></li>
100+
<li><a href="function-Contentstack.Utility.generateQuery.html">Contentstack\Utility\generateQuery</a></li>
101+
<li><a href="function-Contentstack.Utility.generateQueryParams.html">Contentstack\Utility\generateQueryParams</a></li>
102+
<li><a href="function-Contentstack.Utility.getDomain.html">Contentstack\Utility\getDomain</a></li>
103+
<li><a href="function-Contentstack.Utility.getLastActivites.html">Contentstack\Utility\getLastActivites</a></li>
104+
<li><a href="function-Contentstack.Utility.headers.html">Contentstack\Utility\headers</a></li>
105+
<li><a href="function-Contentstack.Utility.isEmpty.html">Contentstack\Utility\isEmpty</a></li>
106+
<li><a href="function-Contentstack.Utility.isKeySet.html">Contentstack\Utility\isKeySet</a></li>
107+
<li><a href="function-Contentstack.Utility.request.html">Contentstack\Utility\request</a></li>
108+
<li><a href="function-Contentstack.Utility.URL.html">Contentstack\Utility\URL</a></li>
109+
<li><a href="function-Contentstack.Utility.validateInput.html">Contentstack\Utility\validateInput</a></li>
110+
<li><a href="function-Contentstack.Utility.wrapResult.html">Contentstack\Utility\wrapResult</a></li>
111+
<li><a href="function-createError.html">createError</a></li>
112+
<li><a href="function-existence.html">existence</a></li>
113+
<li><a href="function-getFunctionName.html">getFunctionName</a></li>
114+
<li><a href="function-language.html">language</a></li>
115+
<li><a href="function-logical.html">logical</a></li>
116+
<li><a href="function-pagination.html">pagination</a></li>
117+
<li><a href="function-projection.html">projection</a></li>
118+
<li><a href="function-references.html">references</a></li>
119+
<li><a href="function-regexp.html">regexp</a></li>
120+
<li><a href="function-search.html" class="invalid">search</a></li>
121+
<li><a href="function-sorting.html">sorting</a></li>
122+
<li><a href="function-tags.html">tags</a></li>
123+
</ul>
124+
</div>
125+
</div>
126+
</div>
127+
128+
<div id="splitter"></div>
129+
130+
<div id="right">
131+
<div id="rightInner">
132+
<form id="search">
133+
<input type="hidden" name="cx" value="">
134+
<input type="hidden" name="ie" value="UTF-8">
135+
<input type="text" name="q" class="text" placeholder="Search">
136+
</form>
137+
138+
<div id="navigation">
139+
<ul>
140+
<li>
141+
<a href="index.html" title="Overview"><span>Overview</span></a>
142+
</li>
143+
<li>
144+
<span>Namespace</span> </li>
145+
<li>
146+
<span>Class</span> </li>
147+
</ul>
148+
<ul>
149+
</ul>
150+
<ul>
151+
</ul>
152+
</div>
153+
154+
<div id="content">
155+
<h1>Page not found</h1>
156+
<p>The requested page could not be found.</p>
157+
<p>You have probably clicked on a link that is outdated and points to a page that does not exist any more or you have made an typing error in the address.</p>
158+
<p>To continue please try to find requested page in the menu, or use search field on the top.</p>
159+
</div>
160+
161+
<div id="footer">
162+
API documentation generated by <a href="http://apigen.org">ApiGen</a>
163+
</div>
164+
</div>
165+
</div>
166+
<script src="resources/combined.js?cd021bc814832c24a7cec5319ea03335bfba1caf"></script>
167+
<script src="elementlist.js"></script>
168+
</body>
169+
</html>

0 commit comments

Comments
 (0)