{"id":13721011,"url":"https://github.com/kuzzleio/sdk-php","last_synced_at":"2026-01-13T21:42:49.136Z","repository":{"id":57010071,"uuid":"61647843","full_name":"kuzzleio/sdk-php","owner":"kuzzleio","description":"Official php SDK for Kuzzle","archived":true,"fork":false,"pushed_at":"2020-09-21T13:03:00.000Z","size":1207,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-07-10T22:22:20.598Z","etag":null,"topics":["kuzzle","kuzzle-sdk","offline-first","php","swig"],"latest_commit_sha":null,"homepage":"http://docs.kuzzle.io/sdk-reference","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuzzleio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-21T16:02:36.000Z","updated_at":"2023-09-08T17:11:48.000Z","dependencies_parsed_at":"2022-08-21T13:10:16.378Z","dependency_job_id":null,"html_url":"https://github.com/kuzzleio/sdk-php","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/kuzzleio/sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzzleio%2Fsdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzzleio%2Fsdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzzleio%2Fsdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzzleio%2Fsdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuzzleio","download_url":"https://codeload.github.com/kuzzleio/sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzzleio%2Fsdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["kuzzle","kuzzle-sdk","offline-first","php","swig"],"created_at":"2024-08-03T01:01:11.286Z","updated_at":"2026-01-13T21:42:49.117Z","avatar_url":"https://github.com/kuzzleio.png","language":"PHP","funding_links":[],"categories":["SDKs"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/kuzzleio/sdk-php.svg?branch=master)](https://travis-ci.org/kuzzleio/sdk-php) [![codecov.io](http://codecov.io/github/kuzzleio/sdk-php/coverage.svg?branch=master)](http://codecov.io/github/kuzzleio/sdk-php?branch=master)\n\nOfficial Kuzzle PHP SDK\n======\n\n## About Kuzzle\n\nA backend software, self-hostable and ready to use to power modern apps.\n\nYou can access the Kuzzle repository on [Github](https://github.com/kuzzleio/kuzzle)\n\n* [SDK Documentation](#sdk-documentation)\n* [Installation](#installation)\n* [Basic usage](#basic-usage)\n* [Running tests](#tests)\n* [License](#license)\n\n## SDK Documentation\n\nThe complete SDK documentation is available [here](http://docs.kuzzle.io/sdk-reference/)\n\n## Installation\n\nThis SDK can be used in any project using composer:\n\n```\ncomposer require kuzzleio/kuzzle-sdk\n```\n\n## Basic usage\n\n```php\n\u003c?php\n\nuse \\Kuzzle\\Kuzzle;\nuse \\Kuzzle\\Document;\n\n$kuzzle = new Kuzzle('localhost');\n$collection = $kuzzle-\u003ecollection('bar', 'foo');\n\n$firstDocument = new Document($collection, 'john', ['name' =\u003e 'John', 'age' =\u003e 42]);\n$secondDocument = new Document($collection, 'michael', ['name' =\u003e 'Michael', 'age' =\u003e 36]);\n\n$firstDocument-\u003esave(['refresh' =\u003e 'wait_for']);\n$secondDocument-\u003esave(['refresh' =\u003e 'wait_for']);\n\n$result = $collection-\u003esearch(['sort' =\u003e [['age' =\u003e 'asc']]]);\nforeach ($result-\u003egetDocuments() as $document) {\n    $content = $document-\u003egetContent();\n    echo \"Name: {$content['name']}, age: {$content['age']}\\n\";\n}\n```\n\n## \u003ca name=\"tests\"\u003e\u003c/a\u003e Running Tests\n\n```\nphp ./vendor/bin/phpcs -p -n --standard=PSR2 src\nphp ./vendor/bin/phpunit\n```\n\n## License\n\n[Apache 2](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzzleio%2Fsdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuzzleio%2Fsdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzzleio%2Fsdk-php/lists"}