{"id":37722856,"url":"https://github.com/keithweaver/ibm-watson-php-sdk","last_synced_at":"2026-01-16T13:34:51.707Z","repository":{"id":57010166,"uuid":"75016900","full_name":"keithweaver/ibm-watson-php-sdk","owner":"keithweaver","description":"PHP SDK for IBM Watson. Making easier to build Watson powered apps in PHP.","archived":false,"fork":false,"pushed_at":"2017-04-10T17:53:58.000Z","size":692,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-11T06:26:52.286Z","etag":null,"topics":["classifier","document-conversion","ibm","ibm-bluemix","ibm-watson","ibm-watson-api","ibm-watson-services","machine-learning","natural-language","natural-language-processing","retrieve-and-rank"],"latest_commit_sha":null,"homepage":"","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/keithweaver.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":"2016-11-28T21:42:56.000Z","updated_at":"2021-05-12T11:12:39.000Z","dependencies_parsed_at":"2022-08-21T15:10:16.299Z","dependency_job_id":null,"html_url":"https://github.com/keithweaver/ibm-watson-php-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/keithweaver/ibm-watson-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithweaver%2Fibm-watson-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithweaver%2Fibm-watson-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithweaver%2Fibm-watson-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithweaver%2Fibm-watson-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keithweaver","download_url":"https://codeload.github.com/keithweaver/ibm-watson-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keithweaver%2Fibm-watson-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["classifier","document-conversion","ibm","ibm-bluemix","ibm-watson","ibm-watson-api","ibm-watson-services","machine-learning","natural-language","natural-language-processing","retrieve-and-rank"],"created_at":"2026-01-16T13:34:51.077Z","updated_at":"2026-01-16T13:34:51.700Z","avatar_url":"https://github.com/keithweaver.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ibm-watson-php-sdk\n\n\n## Installing Using Composer\n\n```\ncomposer require kweaver00/watson_php\n```\n\nor\n```\ncomposer require kweaver00/watson_php dev-master\n```\n\n\n## Supported Services\n\n[Natural Language Classifier](https://github.com/kweaver00/unofficial-ibm-watson-php-sdk#natural-language-classifier)\n\n[Retrieve and Rank](https://github.com/kweaver00/unofficial-ibm-watson-php-sdk#retrieve-and-rank)\n\n[Document Conversion](https://github.com/kweaver00/unofficial-ibm-watson-php-sdk#document-conversion)\n\n\n\n\n\n## Natural Language Classifier\n\n### Creating A New Object\n\n```\n$naturalLangObj = new \\Kweaver\\Watson\\NaturalLanguageClassifier();\n```\n\n\n### API Methods\n\n**[Create classifier](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#create_classifier)** - Sends data to create and train a classifier and returns information about the new classifier.\n\n**[List classifiers](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#get_classifiers)** - Retrieves the list of classifiers for the service instance. Returns an empty array if no classifiers are available.\n\n**[Get information about a classifier](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#get_status)** - Returns status and other information about a classifier\n\n**[Delete classifier](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#delete_classifier)** - Deletes a classifier.\n\n**[Classify](https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#classify)** - Returns label information for the input. The status must be \"Available\" before you can classify calls. Use the Get information about a classifier method to retrieve the status.\n\n\n### Example\n```\nrequire_once \"/vendor/autoload.php\";\n\n$naturalLangObj = new \\Kweaver\\Watson\\NaturalLanguageClassifier();\n$naturalLangObj-\u003esetServiceCredentials(\"YOUR_WATSON_SERVICE_CREDENTIALS_USER_NAME\",\"YOUR_WATSON_SERVICE_CREDENTIALS_PASSWORD\");\n\n$localFilePathForTrainingMetaDataJSON = realpath(\"./new_training_data_meta_data.json\");\n$localFilePathForTrainingData = realpath(\"./weather_data_train.csv\");\n\n//Creating a new classifier\n$response = $naturalLangObj-\u003ecreate($localFilePathForTrainingData,$localFilePathForTrainingMetaDataJSON);\n```\n\n\n\n## Retrieve and Rank\n\n\n\n\n## Document Conversion\n\n### Creating A New Object\n\n```\n$documentConversionObj = new \\Kweaver\\Watson\\DocumentConversion();\n```\n\n\n### API Methods\n\n**[Convert a document](https://www.ibm.com/watson/developercloud/document-conversion/api/v1/#convert-document)** - Converts a document to answer units, HTML or text. This method accepts a multipart/form-data request. Upload the document as the \"file\" form part and the configuration as the \"config\" form part.\n\n\n### Example\n\n```\nrequire_once \"/vendor/autoload.php\";\n\n$documentConversionObj = new \\Kweaver\\Watson\\DocumentConversion();\n$documentConversionObj-\u003esetServiceCredentials(\"YOUR_USERNAME_FOR_THE_DOC_CONVERSION_SERVICE\",\"YOUR_PASSWORD\");\n\n$configFilePath = realpath('./config.json');\n$uploadedFilePath = realpath('./sample.pdf');\n\n$version = date('Y-m-d');\n\n$result = $documentConversionObj-\u003econvert($configFilePath, $uploadedFilePath, $version);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeithweaver%2Fibm-watson-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeithweaver%2Fibm-watson-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeithweaver%2Fibm-watson-php-sdk/lists"}