{"id":15176623,"url":"https://github.com/webpractik/ocf-converter-sdk-php","last_synced_at":"2026-03-01T19:02:41.085Z","repository":{"id":63171961,"uuid":"558281402","full_name":"webpractik/ocf-converter-sdk-php","owner":"webpractik","description":"SDK for onlineconvertfree.com file conversion API","archived":false,"fork":false,"pushed_at":"2022-11-14T08:52:59.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-12T19:24:28.655Z","etag":null,"topics":["api","sdk"],"latest_commit_sha":null,"homepage":"https://onlineconvertfree.com/file-conversion-api/","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/webpractik.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":"2022-10-27T08:34:58.000Z","updated_at":"2022-11-08T11:51:20.000Z","dependencies_parsed_at":"2022-11-14T09:46:26.853Z","dependency_job_id":null,"html_url":"https://github.com/webpractik/ocf-converter-sdk-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/webpractik/ocf-converter-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpractik%2Focf-converter-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpractik%2Focf-converter-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpractik%2Focf-converter-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpractik%2Focf-converter-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpractik","download_url":"https://codeload.github.com/webpractik/ocf-converter-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpractik%2Focf-converter-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29980802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api","sdk"],"created_at":"2024-09-27T13:21:59.159Z","updated_at":"2026-03-01T19:02:41.059Z","avatar_url":"https://github.com/webpractik.png","language":"PHP","readme":"# ocf-converter-sdk\n\nSDK for [onlineconvertfree.com](https://onlineconvertfree.com/) [file conversion API](https://onlineconvertfree.com/file-conversion-api/).\n\n## Installation \u0026 Usage\n\n### Requirements\n\nPHP 7.4 and later.\nShould also work with PHP 8.0.\n\n### Composer\n\nThe recommended way to install SDK is through [Composer](https://getcomposer.org/).\n\n```shell\ncomposer require webpractik/ocf-converter-sdk\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then start from the following:\n\n```php\n\u003c?php\nrequire_once(__DIR__ . '/vendor/autoload.php');\n\n\n$apiKey = 'myApiKey';\n\n$client = new Webpractik\\OcfConverter\\Sdk\\OcfClient($apiKey);\n\n$filePath = '/path/to/file/to/convert.png';\n$extensionToConvertTo = 'pdf';\n\ntry {\n    $task = $client-\u003euploadFile($filePath, $extensionToConvertTo);\n\n    $result = $task-\u003ewaitForConversion();\n\n    if ($result-\u003eisSuccess()) {\n        $resultUrl = $result-\u003egetResultingFileUrl();\n\n        $resultFileName = basename($resultUrl);\n\n        if (file_put_contents($resultFileName, file_get_contents($resultUrl))) {\n            $result-\u003edeleteFile();\n        }\n    }\n} catch (Exception $e) {\n    echo 'Exception: ', $e-\u003egetMessage(), PHP_EOL;\n}\n\n```\n\n## License\n\nSDK is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n## Contribution\n\n[OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator-cli/) is used for the client generation.\n\n### Requirements\n\nJRE and [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator-cli/) are required for the client generation.\n\n### Client generation\n\nTo regenerate the client do the following:\n\n- run generation command:\n\n```shell\ncomposer api-codegen\n```\n\n- reformat the generated code with your IDE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpractik%2Focf-converter-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpractik%2Focf-converter-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpractik%2Focf-converter-sdk-php/lists"}