{"id":22150404,"url":"https://github.com/fabriceclementz/clarifai-php","last_synced_at":"2025-07-16T03:44:11.361Z","repository":{"id":56981028,"uuid":"81985184","full_name":"fabriceclementz/clarifai-php","owner":"fabriceclementz","description":"A simple Clarifai PHP client.","archived":false,"fork":false,"pushed_at":"2020-04-21T11:39:29.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T12:57:50.796Z","etag":null,"topics":["clarifai","clarifai-api","client","php","php7"],"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/fabriceclementz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-14T20:18:54.000Z","updated_at":"2022-02-12T10:56:08.000Z","dependencies_parsed_at":"2022-08-21T11:20:34.740Z","dependency_job_id":null,"html_url":"https://github.com/fabriceclementz/clarifai-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fabriceclementz/clarifai-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabriceclementz%2Fclarifai-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabriceclementz%2Fclarifai-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabriceclementz%2Fclarifai-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabriceclementz%2Fclarifai-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabriceclementz","download_url":"https://codeload.github.com/fabriceclementz/clarifai-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabriceclementz%2Fclarifai-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265479791,"owners_count":23773612,"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":["clarifai","clarifai-api","client","php","php7"],"created_at":"2024-12-02T00:15:35.513Z","updated_at":"2025-07-16T03:44:11.111Z","avatar_url":"https://github.com/fabriceclementz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clarifai API Client\n\n[![Latest Stable Version](https://poser.pugx.org/fabriceclementz/clarifai-php/v/stable)](https://packagist.org/packages/fabriceclementz/clarifai-php)\n[![Total Downloads](https://poser.pugx.org/fabriceclementz/clarifai-php/downloads)](https://packagist.org/packages/fabriceclementz/clarifai-php)\n[![License](https://poser.pugx.org/fabriceclementz/clarifai-php/license)](https://packagist.org/packages/fabriceclementz/clarifai-php)\n[![Build Status](https://travis-ci.org/fabriceclementz/clarifai-php.svg?branch=master)](https://travis-ci.org/fabriceclementz/clarifai-php)\n[![Build Status](https://travis-ci.org/fabriceclementz/clarifai-php.svg?branch=master)](https://travis-ci.org/fabriceclementz/clarifai-php)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fabriceclementz/clarifai-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fabriceclementz/clarifai-php/?branch=master)\n\n\nA PHP client for the [Clarifai API](https://developer.clarifai.com).\n\nWork in progress.\n\n## Installation\n\n### Via composer\n\n```\ncomposer require fabriceclementz/clarifai-php\n```\n\n## Usage\n\n### Fetch an access token\n\n```\nuse GuzzleHttp\\Client as HttpClient;\nuse Fab\\Clarifai\\Client;\n\n// Instantiate a new client.\n$client = new Client(new HttpClient(), 'CLIENT_ID', 'CLIENT_SECRET');\n\n// Fetch an access token.\n$response = $client-\u003eaccessToken();\n```\n\n### Predict the content of an image\n\n```\n$response = $client\n    -\u003ewithAccessToken($response['access_token'])\n    -\u003epredict(['https://samples.clarifai.com/metro-north.jpg']);\n```\n\n## Testing\n\n```\ncomposer test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabriceclementz%2Fclarifai-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabriceclementz%2Fclarifai-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabriceclementz%2Fclarifai-php/lists"}