{"id":22157702,"url":"https://github.com/link0/phpebble","last_synced_at":"2025-03-24T14:48:00.246Z","repository":{"id":62517335,"uuid":"42357485","full_name":"link0/phpebble","owner":"link0","description":"PHP library providing an interface to Pebble Smartwatch API's","archived":false,"fork":false,"pushed_at":"2015-09-12T13:46:33.000Z","size":177,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T07:01:45.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/link0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-12T13:12:31.000Z","updated_at":"2015-09-12T13:13:40.000Z","dependencies_parsed_at":"2022-11-02T13:45:30.792Z","dependency_job_id":null,"html_url":"https://github.com/link0/phpebble","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fphpebble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fphpebble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fphpebble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link0%2Fphpebble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/link0","download_url":"https://codeload.github.com/link0/phpebble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294765,"owners_count":20591899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T03:12:57.655Z","updated_at":"2025-03-24T14:48:00.215Z","avatar_url":"https://github.com/link0.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Phpebble\n========\n[![Latest Stable Version](https://poser.pugx.org/link0/phpebble/v/stable.svg)](https://packagist.org/packages/link0/phpebble)\n[![Total Downloads](https://poser.pugx.org/link0/phpebble/downloads.svg)](https://packagist.org/packages/link0/phpebble)\n[![License](https://poser.pugx.org/link0/phpebble/license.svg)](https://packagist.org/packages/link0/phpebble)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/link0/phpebble/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/link0/phpebble/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/link0/phpebble/badges/build.png?b=master)](https://scrutinizer-ci.com/g/link0/phpebble/build-status/master)\n\nThis package encapsulates external services provided by Pebble to interact with the Pebble Smartwatch\n\nLicense: [MIT](LICENSE)\n\nUsage\n=====\n\nYou can install using composer\n\n`composer require link0/phpebble`\n\nQuickstart\n==========\n```php\n\u003c?php\n\nuse GuzzleHttp\\Client;\nuse Link0\\Phpebble\\Api\\GuzzleTimeline;\nuse Link0\\Phpebble\\Api\\InvalidPinObject;\nuse Link0\\Phpebble\\Api\\InvalidTimelineToken;\nuse Link0\\Phpebble\\Api\\RateLimitExceeded;\nuse Link0\\Phpebble\\Api\\ServiceUnavailable;\nuse Link0\\Phpebble\\Api\\TimelineToken;\nuse Link0\\Phpebble\\Pin;\n\nrequire_once('vendor/autoload.php');\n\n$token = TimelineToken::fromString('0123456789abcdef0123456789abcdef');\n$pin = Pin::create('foo-31337', new \\DateTimeImmutable(), 'Some title');\n\n$api = new GuzzleTimeline(new Client(), $token);\n\ntry {\n    $api-\u003epush($pin);\n    printf(\"%s\\n\", \"Succesfully processed Pin \" . $pin-\u003eid());\n}\ncatch(InvalidPinObject $ipo) {\n    printf(\"%s\\n\", $ipo-\u003egetMessage());\n    print_r($ipo-\u003epin());\n}\ncatch(InvalidTimelineToken $itt) {\n    printf(\"%s\\n\", $itt-\u003egetMessage());\n    print_r($itt-\u003etimelineToken());\n}\ncatch(RateLimitExceeded $rle) {\n    printf(\"%s\\n\", $rle-\u003egetMessage());\n}\ncatch(ServiceUnavailable $su) {\n    printf(\"%s\\n\", $su-\u003egetMessage());\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink0%2Fphpebble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink0%2Fphpebble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink0%2Fphpebble/lists"}