{"action":"created","comment":{"url":"https://api.github.com/repos/contentful/slash-developers/pulls/comments/47890987","id":47890987,"diff_hunk":"@@ -0,0 +1,148 @@\n+---\n+page: :docsGettingStartedPhp\n+---\n+\n+This tutorial will walk you through your first steps in using Contentful within your PHP application.\n+With only a few simple steps you will be able to access the content you create on Contentful.\n+\n+{: .note}\n+The Contentful PHP SDK is currently in beta and the API may change before a stable release.\n+\n+## Installation\n+\n+The easiest way to install the Contentful PHP SDK is to use [Composer][2]. If you've downloaded\n+`composer.phar`, the SDK can be installed by executing:\n+\n+~~~ bash\n+php composer.phar install contentful/contentful\n+~~~\n+\n+If not already done, you'll also need to load the Composer autoloader:\n+\n+~~~ php\n+<?php\n+require_once 'vendor/autoload.php';\n+~~~\n+\n+## Setting up your Contentful Client\n+\n+Once the SDK is installed you can start using it by creating a `Client`. To do so you need the ID of the space you'd\n+like to use and an access token for this space, both of which can be obtained through the Contentful UI.\n+\n+To use the example space it would look like this:\n+\n+~~~ php\n+<?php\n+$client = new \\Contentful\\Delivery\\Client('b4c0n73n7fu1', 'cfexampleapi');\n+~~~\n+\n+## Getting your content\n+\n+In Contentful, we separate content between Entries, which contain your data and relationships with other","path":"docs/tutorials/php/getting-started-with-contentful-and-php.md","position":41,"original_position":41,"commit_id":"00d9a8ef989044a6abeb035eaa25c30d4eb8bd21","original_commit_id":"00d9a8ef989044a6abeb035eaa25c30d4eb8bd21","user":{"login":"mariobodemann","id":1162562,"avatar_url":"https://avatars.githubusercontent.com/u/1162562?v=3","gravatar_id":"","url":"https://api.github.com/users/mariobodemann","html_url":"https://github.com/mariobodemann","followers_url":"https://api.github.com/users/mariobodemann/followers","following_url":"https://api.github.com/users/mariobodemann/following{/other_user}","gists_url":"https://api.github.com/users/mariobodemann/gists{/gist_id}","starred_url":"https://api.github.com/users/mariobodemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariobodemann/subscriptions","organizations_url":"https://api.github.com/users/mariobodemann/orgs","repos_url":"https://api.github.com/users/mariobodemann/repos","events_url":"https://api.github.com/users/mariobodemann/events{/privacy}","received_events_url":"https://api.github.com/users/mariobodemann/received_events","type":"User","site_admin":false},"body":"If you capitalize `Entries`, you should probably also write `relationships` with a capital `R`, or the other way arround.","created_at":"2015-12-17T10:35:03Z","updated_at":"2015-12-17T10:35:03Z","html_url":"https://github.com/contentful/slash-developers/pull/131#discussion_r47890987","pull_request_url":"https://api.github.com/repos/contentful/slash-developers/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/comments/47890987"},"html":{"href":"https://github.com/contentful/slash-developers/pull/131#discussion_r47890987"},"pull_request":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/contentful/slash-developers/pulls/131","id":53278951,"html_url":"https://github.com/contentful/slash-developers/pull/131","diff_url":"https://github.com/contentful/slash-developers/pull/131.diff","patch_url":"https://github.com/contentful/slash-developers/pull/131.patch","issue_url":"https://api.github.com/repos/contentful/slash-developers/issues/131","number":131,"state":"open","locked":false,"title":"Add a Getting Started tutorial for the PHP CDA SDK.","user":{"login":"realityking","id":628508,"avatar_url":"https://avatars.githubusercontent.com/u/628508?v=3","gravatar_id":"","url":"https://api.github.com/users/realityking","html_url":"https://github.com/realityking","followers_url":"https://api.github.com/users/realityking/followers","following_url":"https://api.github.com/users/realityking/following{/other_user}","gists_url":"https://api.github.com/users/realityking/gists{/gist_id}","starred_url":"https://api.github.com/users/realityking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realityking/subscriptions","organizations_url":"https://api.github.com/users/realityking/orgs","repos_url":"https://api.github.com/users/realityking/repos","events_url":"https://api.github.com/users/realityking/events{/privacy}","received_events_url":"https://api.github.com/users/realityking/received_events","type":"User","site_admin":false},"body":"For your reviewing pleasure @grncdr.\r\n\r\nPlease don't merge it yet, I'll do so once the SDK is public.","created_at":"2015-12-10T16:09:19Z","updated_at":"2015-12-17T10:35:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c66047b1bf2a03962b6d582b6c5736fe9eafed3","assignee":{"login":"grncdr","id":82634,"avatar_url":"https://avatars.githubusercontent.com/u/82634?v=3","gravatar_id":"","url":"https://api.github.com/users/grncdr","html_url":"https://github.com/grncdr","followers_url":"https://api.github.com/users/grncdr/followers","following_url":"https://api.github.com/users/grncdr/following{/other_user}","gists_url":"https://api.github.com/users/grncdr/gists{/gist_id}","starred_url":"https://api.github.com/users/grncdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grncdr/subscriptions","organizations_url":"https://api.github.com/users/grncdr/orgs","repos_url":"https://api.github.com/users/grncdr/repos","events_url":"https://api.github.com/users/grncdr/events{/privacy}","received_events_url":"https://api.github.com/users/grncdr/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/contentful/slash-developers/pulls/131/commits","review_comments_url":"https://api.github.com/repos/contentful/slash-developers/pulls/131/comments","review_comment_url":"https://api.github.com/repos/contentful/slash-developers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/slash-developers/issues/131/comments","statuses_url":"https://api.github.com/repos/contentful/slash-developers/statuses/00d9a8ef989044a6abeb035eaa25c30d4eb8bd21","head":{"label":"contentful:php","ref":"php","sha":"00d9a8ef989044a6abeb035eaa25c30d4eb8bd21","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":30588199,"name":"slash-developers","full_name":"contentful/slash-developers","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/slash-developers","description":"Contentful Developer center content","fork":false,"url":"https://api.github.com/repos/contentful/slash-developers","forks_url":"https://api.github.com/repos/contentful/slash-developers/forks","keys_url":"https://api.github.com/repos/contentful/slash-developers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/slash-developers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/slash-developers/teams","hooks_url":"https://api.github.com/repos/contentful/slash-developers/hooks","issue_events_url":"https://api.github.com/repos/contentful/slash-developers/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/slash-developers/events","assignees_url":"https://api.github.com/repos/contentful/slash-developers/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/slash-developers/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/slash-developers/tags","blobs_url":"https://api.github.com/repos/contentful/slash-developers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/slash-developers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/slash-developers/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/slash-developers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/slash-developers/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/slash-developers/languages","stargazers_url":"https://api.github.com/repos/contentful/slash-developers/stargazers","contributors_url":"https://api.github.com/repos/contentful/slash-developers/contributors","subscribers_url":"https://api.github.com/repos/contentful/slash-developers/subscribers","subscription_url":"https://api.github.com/repos/contentful/slash-developers/subscription","commits_url":"https://api.github.com/repos/contentful/slash-developers/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/slash-developers/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/slash-developers/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/slash-developers/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/slash-developers/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/slash-developers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/slash-developers/merges","archive_url":"https://api.github.com/repos/contentful/slash-developers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/slash-developers/downloads","issues_url":"https://api.github.com/repos/contentful/slash-developers/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/slash-developers/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/slash-developers/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/slash-developers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/slash-developers/labels{/name}","releases_url":"https://api.github.com/repos/contentful/slash-developers/releases{/id}","created_at":"2015-02-10T11:01:59Z","updated_at":"2015-10-06T13:51:31Z","pushed_at":"2015-12-16T16:32:09Z","git_url":"git://github.com/contentful/slash-developers.git","ssh_url":"git@github.com:contentful/slash-developers.git","clone_url":"https://github.com/contentful/slash-developers.git","svn_url":"https://github.com/contentful/slash-developers","homepage":"http://www.contentful.com/developers/docs","size":520,"stargazers_count":6,"watchers_count":6,"language":"API Blueprint","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":6,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"d27f113b17057f93021834ca77f12de965d0884c","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":30588199,"name":"slash-developers","full_name":"contentful/slash-developers","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/slash-developers","description":"Contentful Developer center content","fork":false,"url":"https://api.github.com/repos/contentful/slash-developers","forks_url":"https://api.github.com/repos/contentful/slash-developers/forks","keys_url":"https://api.github.com/repos/contentful/slash-developers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/slash-developers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/slash-developers/teams","hooks_url":"https://api.github.com/repos/contentful/slash-developers/hooks","issue_events_url":"https://api.github.com/repos/contentful/slash-developers/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/slash-developers/events","assignees_url":"https://api.github.com/repos/contentful/slash-developers/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/slash-developers/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/slash-developers/tags","blobs_url":"https://api.github.com/repos/contentful/slash-developers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/slash-developers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/slash-developers/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/slash-developers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/slash-developers/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/slash-developers/languages","stargazers_url":"https://api.github.com/repos/contentful/slash-developers/stargazers","contributors_url":"https://api.github.com/repos/contentful/slash-developers/contributors","subscribers_url":"https://api.github.com/repos/contentful/slash-developers/subscribers","subscription_url":"https://api.github.com/repos/contentful/slash-developers/subscription","commits_url":"https://api.github.com/repos/contentful/slash-developers/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/slash-developers/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/slash-developers/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/slash-developers/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/slash-developers/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/slash-developers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/slash-developers/merges","archive_url":"https://api.github.com/repos/contentful/slash-developers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/slash-developers/downloads","issues_url":"https://api.github.com/repos/contentful/slash-developers/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/slash-developers/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/slash-developers/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/slash-developers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/slash-developers/labels{/name}","releases_url":"https://api.github.com/repos/contentful/slash-developers/releases{/id}","created_at":"2015-02-10T11:01:59Z","updated_at":"2015-10-06T13:51:31Z","pushed_at":"2015-12-16T16:32:09Z","git_url":"git://github.com/contentful/slash-developers.git","ssh_url":"git@github.com:contentful/slash-developers.git","clone_url":"https://github.com/contentful/slash-developers.git","svn_url":"https://github.com/contentful/slash-developers","homepage":"http://www.contentful.com/developers/docs","size":520,"stargazers_count":6,"watchers_count":6,"language":"API Blueprint","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/131"},"html":{"href":"https://github.com/contentful/slash-developers/pull/131"},"issue":{"href":"https://api.github.com/repos/contentful/slash-developers/issues/131"},"comments":{"href":"https://api.github.com/repos/contentful/slash-developers/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/slash-developers/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/slash-developers/statuses/00d9a8ef989044a6abeb035eaa25c30d4eb8bd21"}}}}