{"id":25813278,"url":"https://github.com/clarifai/clarifai-php-grpc","last_synced_at":"2026-01-30T00:56:45.591Z","repository":{"id":41050114,"uuid":"217547068","full_name":"Clarifai/clarifai-php-grpc","owner":"Clarifai","description":"Clarifai gRPC PHP client ","archived":false,"fork":false,"pushed_at":"2025-08-25T09:57:07.000Z","size":1606,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-25T11:48:57.247Z","etag":null,"topics":["ai","clarifai","clarifai-client","grpc","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clarifai.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-25T14:04:43.000Z","updated_at":"2025-08-25T09:57:11.000Z","dependencies_parsed_at":"2023-12-20T16:29:26.661Z","dependency_job_id":"e1c277a6-5dbf-4da7-bcb8-f6590f200d3a","html_url":"https://github.com/Clarifai/clarifai-php-grpc","commit_stats":{"total_commits":60,"total_committers":6,"mean_commits":10.0,"dds":"0.44999999999999996","last_synced_commit":"2e2f4ffc0a8681db9d7a6f3c918e2b6343c35aa5"},"previous_names":[],"tags_count":174,"template":false,"template_full_name":null,"purl":"pkg:github/Clarifai/clarifai-php-grpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-php-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-php-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-php-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-php-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clarifai","download_url":"https://codeload.github.com/Clarifai/clarifai-php-grpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-php-grpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","clarifai","clarifai-client","grpc","php"],"created_at":"2025-02-28T02:27:58.970Z","updated_at":"2026-01-16T06:55:18.355Z","avatar_url":"https://github.com/Clarifai.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/user-attachments/assets/895da6c0-874d-45f0-a3b7-26ad07f14a37)\n\n\n# Clarifai PHP gRPC Client\n\nThis is the official Clarifai gRPC PHP client for interacting with our powerful recognition\n[API](https://docs.clarifai.com).\nClarifai provides a platform for data scientists, developers, researchers and enterprises to master the entire\nartificial intelligence lifecycle. Gather valuable business insights from images, video and text using computer vision\nand natural language processing.\n\n* Try the Clarifai demo at: https://clarifai.com/demo\n* Sign up for a free account at: https://portal.clarifai.com/signup\n* Read the documentation at: https://docs.clarifai.com/\n\n\n[![Latest Stable Version](https://poser.pugx.org/clarifai/clarifai-php-grpc/version)](https://packagist.org/packages/clarifai/clarifai-php-grpc)\n\n\n# Installation\n\n```\ncomposer require clarifai/clarifai-php-grpc\n```\n\nSee also [how add gRPC to your PHP installation](https://grpc.io/docs/languages/php/quickstart/).\n\n## Versioning\n\nThis library doesn't use semantic versioning. The first two version numbers (`X.Y` out of `X.Y.Z`) follow the API (backend) versioning, and\nwhenever the API gets updated, this library follows it.\n\nThe third version number (`Z` out of `X.Y.Z`) is used by this library for any independent releases of library-specific improvements and bug fixes.\n\n## Getting started\n\nConstruct the client and setup your API key or Personal Access Token in the metadata variable.\n\n```php\nrequire ‘vendor/autoload.php’;\nuse Clarifai\\ClarifaiClient;\n\n$client = ClarifaiClient::grpc();\n$metadata = ['Authorization' =\u003e ['Key {MY_CLARIFAI_API_KEY_OR_PAT}']];\n```\n\nPredict concepts in an image:\n\n```php\nuse Clarifai\\Api\\Data;\nuse Clarifai\\Api\\Image;\nuse Clarifai\\Api\\Input;\nuse Clarifai\\Api\\PostModelOutputsRequest;\nuse Clarifai\\Api\\Status\\StatusCode;\n\n[$response, $status] = $client-\u003ePostModelOutputs(\n    new PostModelOutputsRequest([\n        'model_id' =\u003e 'aaa03c23b3724a16a56b629203edc62c',  // This is the ID of the publicly available General model.\n        'inputs' =\u003e [\n            new Input([\n                'data' =\u003e new Data([\n                    'image' =\u003e new Image([\n                        'url' =\u003e 'https://samples.clarifai.com/dog2.jpeg'\n                    ])\n                ])\n            ])\n        ]\n    ]),\n    $metadata\n)-\u003ewait();\n\nif ($status-\u003ecode !== 0) throw new Exception(\"Error: {$status-\u003edetails}\");\nif ($response-\u003egetStatus()-\u003egetCode() != StatusCode::SUCCESS) {\n    throw new Exception(\"Failure response: \" . $response-\u003egetStatus()-\u003egetDescription() . \" \" .\n        $response-\u003egetStatus()-\u003egetDetails());\n}\n\necho \"Predicted concepts:\\n\";\nforeach ($response-\u003egetOutputs()[0]-\u003egetData()-\u003egetConcepts() as $concept) {\n    echo $concept-\u003egetName() . \": \" . number_format($concept-\u003egetValue(), 2) . \"\\n\";\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-php-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarifai%2Fclarifai-php-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-php-grpc/lists"}