{"action":"created","comment":{"url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/comments/47095023","id":47095023,"diff_hunk":"@@ -0,0 +1,311 @@\n+<?php\n+/*\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ *\n+ * This software consists of voluntary contributions made by many individuals\n+ * and is licensed under the MIT license. For more information, see\n+ * <http://www.doctrine-project.org>.\n+ */\n+\n+namespace Doctrine\\KeyValueStore\\Storage;\n+\n+use Aws\\DynamoDb\\DynamoDbClient;\n+use Aws\\DynamoDb\\Marshaler;\n+use Doctrine\\KeyValueStore\\NotFoundException;\n+\n+class AmazonDynamoDbStorage implements Storage\n+{\n+    /**\n+     * @var DynamoDbClient\n+     */\n+    private $client;\n+\n+    /**\n+     * @var Marshaler\n+     */\n+    private $marshaler;\n+\n+    /**\n+     * @var string\n+     */\n+    private $defaultKeyName = 'Id';\n+\n+    /**\n+     * A associative array where the key is the table name and the value is the name of the key.\n+     *\n+     * @var array\n+     */\n+    private $tableKeys = [];\n+\n+    /**\n+     * @param DynamoDbClient $client    The client for connecting to AWS DynamoDB.\n+     * @param Marshaler|null $marshaler (optional) Marshaller for converting data to/from DynamoDB format.\n+     * @param string         $defaultKeyName   (optional) Default name to use for keys.\n+     * @param array $tableKeys $tableKeys (optional) An associative array for keys representing table names and values\n+     * representing key names for those tables.\n+     */\n+    public function __construct(\n+        DynamoDbClient $client,\n+        Marshaler $marshaler = null,\n+        $defaultKeyName = null,\n+        array $tableKeys = []\n+    ) {\n+        $this->client = $client;\n+        $this->marshaler = $marshaler ?: new Marshaler();\n+\n+        if ($defaultKeyName !== null) {\n+            $this->setDefaultKeyName($defaultKeyName);\n+        }\n+\n+        if (!empty($tableKeys)) {\n+            foreach ($tableKeys as $table => $keyName) {\n+                $this->setKeyForTable($table, $keyName);\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Validates a DynamoDB key name.\n+     *\n+     * @param $name mixed The name to validate.\n+     *\n+     * @throws \\InvalidArgumentException When the key name is invalid.\n+     */\n+    protected function validateKeyName($name)\n+    {\n+        if (!is_string($name)) {\n+            throw new \\InvalidArgumentException(\n+                sprintf('The key must be a string, got \"%s\" instead.', gettype($name))\n+            );\n+        }\n+\n+        $len = strlen($name);\n+        if ($len > 255 || $len < 1) {\n+            throw new \\InvalidArgumentException('The name must not exceed 255 bytes.');\n+        }\n+    }\n+\n+    /**\n+     * Validates a DynamoDB table name.\n+     *\n+     * @see http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html\n+     *\n+     * @param $name string The table name to validate.\n+     *\n+     * @throws \\InvalidArgumentException When the name is invalid.\n+     */\n+    protected function validateTableName($name)\n+    {\n+        if (!is_string($name)) {\n+            throw new \\InvalidArgumentException(\n+                sprintf('The key must be a string, got \"%s\" instead.', gettype($name))\n+            );\n+        }\n+\n+        if (!preg_match('/^[a-z0-9_.-]{3,255}$/i', $name)) {\n+            throw new \\InvalidArgumentException('Invalid DynamoDB table name.');\n+        }\n+    }\n+\n+    /**\n+     * Sets the default key name for storage tables.\n+     *\n+     * @param $name string The default name to use for the key.\n+     *\n+     * @throws \\InvalidArgumentException When the key name is invalid.\n+     */\n+    public function setDefaultKeyName($name)\n+    {\n+        $this->validateKeyName($name);\n+        $this->defaultKeyName = $name;\n+    }\n+\n+    /**\n+     * Retrieves the default key name.\n+     *\n+     * @return string The default key name.\n+     */\n+    public function getDefaultKeyName()\n+    {\n+        return $this->defaultKeyName;\n+    }\n+\n+    /**\n+     * Sets a key name for a specific table.\n+     *\n+     * @param $table string The name of the table.\n+     * @param $key string The name of the string.\n+     *\n+     * @throws \\InvalidArgumentException When the key or table name is invalid.\n+     */\n+    public function setKeyForTable($table, $key)\n+    {\n+        $this->validateTableName($table);\n+        $this->validateKeyName($key);\n+        $this->tableKeys[$table] = $key;\n+    }\n+\n+    /**\n+     * Retrieves a specific name for a key for a given table. The default is returned if this table does not have\n+     * an actual override.\n+     *\n+     * @param string $tableName The name of the table.\n+     *\n+     * @return string\n+     */\n+    public function getKeyNameForTable($tableName)\n+    {\n+        return isset($this->tableKeys[$tableName]) ?\n+            $this->tableKeys[$tableName] :\n+            $this->defaultKeyName;\n+    }\n+\n+    /**\n+     * Prepares a key to be in a valid format for lookups for DynamoDB. If passing an array, that means that the key\n+     * is the name of the key and the value is the actual value for the lookup.\n+     *\n+     * @param string $storageName\n+     *\n+     * @return array The key in DynamoDB format.\n+     */\n+    protected function prepareKey($storageName, $key)\n+    {\n+        if (is_array($key)) {\n+            $keyValue = reset($key);\n+            $keyName = key($key);\n+        } else {\n+            $keyValue = $key;\n+            $keyName = $this->getKeyNameForTable($storageName);\n+        }\n+\n+        return $this->marshaler->marshalItem([$keyName => $keyValue]);\n+    }\n+\n+    /**\n+     * Determine if the storage supports updating only a subset of properties,\n+     * or if all properties have to be set, even if only a subset of properties\n+     * changed.\n+     *\n+     * @return bool\n+     */\n+    public function supportsPartialUpdates()\n+    {\n+        //This is not true, but partial updates are too complicated given the available interface,\n+        //meaning, the abstraction is insufficiently flexible enough to support this type of action.\n+        return false;\n+    }\n+\n+    /**\n+     * Does this storage support composite primary keys?\n+     *\n+     * @return bool\n+     */\n+    public function supportsCompositePrimaryKeys()\n+    {\n+        return true;\n+    }\n+\n+    /**\n+     * Does this storage require composite primary keys?\n+     *\n+     * @return bool\n+     */\n+    public function requiresCompositePrimaryKeys()\n+    {\n+        return false;\n+    }\n+\n+    /**\n+     * Insert data into the storage key specified.\n+     *\n+     * @param string       $storageName\n+     * @param array|string $key\n+     * @param array        $data\n+     */\n+    public function insert($storageName, $key, array $data)\n+    {\n+        $this->client->putItem([\n+            'TableName' => $storageName,\n+            'Item' => $this->prepareKey($storageName, $key) + $this->marshaler->marshalItem($data),\n+        ]);\n+    }\n+\n+    /**\n+     * Update data into the given key.\n+     *\n+     * @param string       $storageName\n+     * @param array|string $key\n+     * @param array        $data\n+     */\n+    public function update($storageName, $key, array $data)\n+    {\n+        //We are using PUT so we just replace the original item\n+        $this->insert($storageName, $key, $data);\n+    }\n+\n+    /**\n+     * Delete data at key.\n+     *\n+     * @param string       $storageName\n+     * @param array|string $key\n+     */\n+    public function delete($storageName, $key)\n+    {\n+        $this->client->deleteItem([\n+            'TableName' => $storageName,\n+            'Key' => $this->prepareKey($storageName, $key),\n+        ]);\n+    }\n+\n+    /**\n+     * Find data at key.\n+     *\n+     * Important note: The returned array does contain the identifier (again)!\n+     *\n+     * @throws NotFoundException When data with key is not found.\n+     *\n+     * @param string       $storageName\n+     * @param array|string $key\n+     *\n+     * @return array\n+     */\n+    public function find($storageName, $key)\n+    {\n+        $item = $this->client->getItem([\n+            'TableName' => $storageName,\n+            'ConsistentRead' => true,\n+            'Key' => $this->prepareKey($storageName, $key),\n+        ]);\n+\n+        if (!$item) {\n+            throw new NotFoundException();\n+        }\n+\n+        $item = $item->get('Item');\n+        if (!is_array($item)) {\n+            throw new NotFoundException();","path":"lib/Doctrine/KeyValueStore/Storage/AmazonDynamoDbStorage.php","position":296,"original_position":296,"commit_id":"df25f19dea5d8da8a752e97f29771e91b8de5afb","original_commit_id":"df25f19dea5d8da8a752e97f29771e91b8de5afb","user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"body":"Maybe more customized exception message in this case?","created_at":"2015-12-09T14:19:16Z","updated_at":"2015-12-09T14:19:16Z","html_url":"https://github.com/doctrine/KeyValueStore/pull/49#discussion_r47095023","pull_request_url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/comments/47095023"},"html":{"href":"https://github.com/doctrine/KeyValueStore/pull/49#discussion_r47095023"},"pull_request":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49","id":48485412,"html_url":"https://github.com/doctrine/KeyValueStore/pull/49","diff_url":"https://github.com/doctrine/KeyValueStore/pull/49.diff","patch_url":"https://github.com/doctrine/KeyValueStore/pull/49.patch","issue_url":"https://api.github.com/repos/doctrine/KeyValueStore/issues/49","number":49,"state":"open","locked":false,"title":"Implementation for Amazon DynamoDB","user":{"login":"nicktacular","id":810546,"avatar_url":"https://avatars.githubusercontent.com/u/810546?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktacular","html_url":"https://github.com/nicktacular","followers_url":"https://api.github.com/users/nicktacular/followers","following_url":"https://api.github.com/users/nicktacular/following{/other_user}","gists_url":"https://api.github.com/users/nicktacular/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktacular/subscriptions","organizations_url":"https://api.github.com/users/nicktacular/orgs","repos_url":"https://api.github.com/users/nicktacular/repos","events_url":"https://api.github.com/users/nicktacular/events{/privacy}","received_events_url":"https://api.github.com/users/nicktacular/received_events","type":"User","site_admin":false},"body":"Added an implementation for Amazon DynamoDB. Using the `$options` key to the constructor, you can set which `$storageName` uses which key name for access. For example, if your key-val store called `Awesome` uses a key called `MyKey` then you can set it like so:\r\n\r\n```php\r\n$credentials = new \\Aws\\Credentials\\Credentials('yo', 'sup');\r\n\r\n$aws = new \\Aws\\Sdk([\r\n    'timeout' => 1,\r\n    'credentials' => $credentials,\r\n    'region' => 'us-west-2',\r\n    'version' => 'latest',\r\n    'endpoint' => 'http://127.0.0.1:11888',\r\n]);\r\n\r\n$storage = new AmazonDynamoDbStorage(\r\n    $aws->createDynamoDb(),\r\n    null,\r\n    ['storage_keys' => ['Awesome' => 'MyKey']]\r\n);\r\n```\r\n\r\nOtherwise, the option `default_key_name` which defaults to `Id` will be used as the key name.\r\n","created_at":"2015-10-22T17:10:02Z","updated_at":"2015-12-09T14:19:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8969b19c2cc75d8370bc2516b7dce13b7b7bbcc9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49/commits","review_comments_url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49/comments","review_comment_url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doctrine/KeyValueStore/issues/49/comments","statuses_url":"https://api.github.com/repos/doctrine/KeyValueStore/statuses/df25f19dea5d8da8a752e97f29771e91b8de5afb","head":{"label":"nicktacular:dynamodb","ref":"dynamodb","sha":"df25f19dea5d8da8a752e97f29771e91b8de5afb","user":{"login":"nicktacular","id":810546,"avatar_url":"https://avatars.githubusercontent.com/u/810546?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktacular","html_url":"https://github.com/nicktacular","followers_url":"https://api.github.com/users/nicktacular/followers","following_url":"https://api.github.com/users/nicktacular/following{/other_user}","gists_url":"https://api.github.com/users/nicktacular/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktacular/subscriptions","organizations_url":"https://api.github.com/users/nicktacular/orgs","repos_url":"https://api.github.com/users/nicktacular/repos","events_url":"https://api.github.com/users/nicktacular/events{/privacy}","received_events_url":"https://api.github.com/users/nicktacular/received_events","type":"User","site_admin":false},"repo":{"id":44701467,"name":"KeyValueStore","full_name":"nicktacular/KeyValueStore","owner":{"login":"nicktacular","id":810546,"avatar_url":"https://avatars.githubusercontent.com/u/810546?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktacular","html_url":"https://github.com/nicktacular","followers_url":"https://api.github.com/users/nicktacular/followers","following_url":"https://api.github.com/users/nicktacular/following{/other_user}","gists_url":"https://api.github.com/users/nicktacular/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktacular/subscriptions","organizations_url":"https://api.github.com/users/nicktacular/orgs","repos_url":"https://api.github.com/users/nicktacular/repos","events_url":"https://api.github.com/users/nicktacular/events{/privacy}","received_events_url":"https://api.github.com/users/nicktacular/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicktacular/KeyValueStore","description":"Abstraction for Key-Value to Plain Old PHP Object mapping","fork":true,"url":"https://api.github.com/repos/nicktacular/KeyValueStore","forks_url":"https://api.github.com/repos/nicktacular/KeyValueStore/forks","keys_url":"https://api.github.com/repos/nicktacular/KeyValueStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicktacular/KeyValueStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicktacular/KeyValueStore/teams","hooks_url":"https://api.github.com/repos/nicktacular/KeyValueStore/hooks","issue_events_url":"https://api.github.com/repos/nicktacular/KeyValueStore/issues/events{/number}","events_url":"https://api.github.com/repos/nicktacular/KeyValueStore/events","assignees_url":"https://api.github.com/repos/nicktacular/KeyValueStore/assignees{/user}","branches_url":"https://api.github.com/repos/nicktacular/KeyValueStore/branches{/branch}","tags_url":"https://api.github.com/repos/nicktacular/KeyValueStore/tags","blobs_url":"https://api.github.com/repos/nicktacular/KeyValueStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicktacular/KeyValueStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicktacular/KeyValueStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicktacular/KeyValueStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicktacular/KeyValueStore/statuses/{sha}","languages_url":"https://api.github.com/repos/nicktacular/KeyValueStore/languages","stargazers_url":"https://api.github.com/repos/nicktacular/KeyValueStore/stargazers","contributors_url":"https://api.github.com/repos/nicktacular/KeyValueStore/contributors","subscribers_url":"https://api.github.com/repos/nicktacular/KeyValueStore/subscribers","subscription_url":"https://api.github.com/repos/nicktacular/KeyValueStore/subscription","commits_url":"https://api.github.com/repos/nicktacular/KeyValueStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicktacular/KeyValueStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicktacular/KeyValueStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicktacular/KeyValueStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicktacular/KeyValueStore/contents/{+path}","compare_url":"https://api.github.com/repos/nicktacular/KeyValueStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicktacular/KeyValueStore/merges","archive_url":"https://api.github.com/repos/nicktacular/KeyValueStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicktacular/KeyValueStore/downloads","issues_url":"https://api.github.com/repos/nicktacular/KeyValueStore/issues{/number}","pulls_url":"https://api.github.com/repos/nicktacular/KeyValueStore/pulls{/number}","milestones_url":"https://api.github.com/repos/nicktacular/KeyValueStore/milestones{/number}","notifications_url":"https://api.github.com/repos/nicktacular/KeyValueStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicktacular/KeyValueStore/labels{/name}","releases_url":"https://api.github.com/repos/nicktacular/KeyValueStore/releases{/id}","created_at":"2015-10-21T20:11:57Z","updated_at":"2015-10-21T20:11:58Z","pushed_at":"2015-10-28T14:08:12Z","git_url":"git://github.com/nicktacular/KeyValueStore.git","ssh_url":"git@github.com:nicktacular/KeyValueStore.git","clone_url":"https://github.com/nicktacular/KeyValueStore.git","svn_url":"https://github.com/nicktacular/KeyValueStore","homepage":"http://www.doctrine-project.org","size":325,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"doctrine:master","ref":"master","sha":"3dd1aa7c38ee89b6566a91e8f4c9785c7f8bd344","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":3431526,"name":"KeyValueStore","full_name":"doctrine/KeyValueStore","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/KeyValueStore","description":"Abstraction for Key-Value to Plain Old PHP Object mapping","fork":false,"url":"https://api.github.com/repos/doctrine/KeyValueStore","forks_url":"https://api.github.com/repos/doctrine/KeyValueStore/forks","keys_url":"https://api.github.com/repos/doctrine/KeyValueStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/KeyValueStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/KeyValueStore/teams","hooks_url":"https://api.github.com/repos/doctrine/KeyValueStore/hooks","issue_events_url":"https://api.github.com/repos/doctrine/KeyValueStore/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/KeyValueStore/events","assignees_url":"https://api.github.com/repos/doctrine/KeyValueStore/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/KeyValueStore/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/KeyValueStore/tags","blobs_url":"https://api.github.com/repos/doctrine/KeyValueStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/KeyValueStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/KeyValueStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/KeyValueStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/KeyValueStore/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/KeyValueStore/languages","stargazers_url":"https://api.github.com/repos/doctrine/KeyValueStore/stargazers","contributors_url":"https://api.github.com/repos/doctrine/KeyValueStore/contributors","subscribers_url":"https://api.github.com/repos/doctrine/KeyValueStore/subscribers","subscription_url":"https://api.github.com/repos/doctrine/KeyValueStore/subscription","commits_url":"https://api.github.com/repos/doctrine/KeyValueStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/KeyValueStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/KeyValueStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/KeyValueStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/KeyValueStore/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/KeyValueStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/KeyValueStore/merges","archive_url":"https://api.github.com/repos/doctrine/KeyValueStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/KeyValueStore/downloads","issues_url":"https://api.github.com/repos/doctrine/KeyValueStore/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/KeyValueStore/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/KeyValueStore/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/KeyValueStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/KeyValueStore/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/KeyValueStore/releases{/id}","created_at":"2012-02-13T16:08:13Z","updated_at":"2015-12-08T16:11:45Z","pushed_at":"2015-12-08T22:23:59Z","git_url":"git://github.com/doctrine/KeyValueStore.git","ssh_url":"git@github.com:doctrine/KeyValueStore.git","clone_url":"https://github.com/doctrine/KeyValueStore.git","svn_url":"https://github.com/doctrine/KeyValueStore","homepage":"http://www.doctrine-project.org","size":627,"stargazers_count":100,"watchers_count":100,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":17,"forks":32,"open_issues":17,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49"},"html":{"href":"https://github.com/doctrine/KeyValueStore/pull/49"},"issue":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/issues/49"},"comments":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/doctrine/KeyValueStore/statuses/df25f19dea5d8da8a752e97f29771e91b8de5afb"}}}}