{"id":37006762,"url":"https://github.com/kinimodmeyer/tradebyte-sdk-php","last_synced_at":"2026-01-14T00:45:57.988Z","repository":{"id":38358103,"uuid":"303293240","full_name":"kinimodmeyer/tradebyte-sdk-php","owner":"kinimodmeyer","description":"sdk to access api endpoints of tradebyte","archived":false,"fork":false,"pushed_at":"2025-02-23T10:54:20.000Z","size":157,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-12-25T05:16:25.736Z","etag":null,"topics":["api","php","sdk","tbone","tradebyte"],"latest_commit_sha":null,"homepage":"https://github.com/kinimodmeyer/tradebyte-sdk-php","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/kinimodmeyer.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}},"created_at":"2020-10-12T06:05:36.000Z","updated_at":"2025-10-06T09:08:22.000Z","dependencies_parsed_at":"2024-11-24T15:16:08.426Z","dependency_job_id":null,"html_url":"https://github.com/kinimodmeyer/tradebyte-sdk-php","commit_stats":{"total_commits":91,"total_committers":6,"mean_commits":"15.166666666666666","dds":0.08791208791208793,"last_synced_commit":"abed95d465ce5472e1f8cf80b3e331c07246ce19"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kinimodmeyer/tradebyte-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinimodmeyer%2Ftradebyte-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinimodmeyer%2Ftradebyte-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinimodmeyer%2Ftradebyte-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinimodmeyer%2Ftradebyte-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kinimodmeyer","download_url":"https://codeload.github.com/kinimodmeyer/tradebyte-sdk-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinimodmeyer%2Ftradebyte-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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","php","sdk","tbone","tradebyte"],"created_at":"2026-01-14T00:45:57.850Z","updated_at":"2026-01-14T00:45:57.973Z","avatar_url":"https://github.com/kinimodmeyer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tradebyte SDK\n\nAn SDK that provides multiple ways to interact with the Tradebyte API. For more information, visit [TB.IO](https://tradebyte.io).\n\n## Features\n\n* **Memory Efficiency:** The SDK is designed to consume minimal memory and can efficiently process large XML files - potentially gigabytes in size - through extensive use of iterators and XML readers.\n* **Flexible Processing:** Depending on your needs, you can process data \"on the fly\" or opt for a \"download and re-open\" approach.\n* **Supported Entities:** The SDK supports several entities with multiple endpoints, including: product, order, message, stock, upload\n\n## Requirements\n\n* Credentials (username, password, account-number)\n  * See https://tb-io.tradebyte.org/how-to/generate-rest-api-credentials-in-tb-one/ for details.\n* PHP \u003e= 7.4\n* Composer\n* cURL\n\n## Installation\n\n1. download composer (https://getcomposer.org/download)\n2. execute the following:\n\n```bash\n$ composer require kinimodmeyer/tradebyte-sdk\n```\n\n## Quick Example (message)\n\n```php\n//only needed if not already included\nrequire './vendor/autoload.php';\n\n$client = new Tradebyte\\Client([\n    'credentials' =\u003e [\n         'account_number' =\u003e '',\n         'account_user' =\u003e '',\n         'account_password' =\u003e ''\n     ]\n]);\n\n//different handler can be used here\n$messageHandler = $client-\u003egetMessageHandler();\n\n//fetch message with message-identifier 5\nvar_dump($messageHandler-\u003egetMessage(5)-\u003egetId());\n\n//or download/reopen message\n$messageHandler-\u003edownloadMessage(__DIR__.'/message_5.xml', 5);\nvar_dump($messageHandler-\u003egetMessageFromFile(__DIR__.'/message_5.xml'));\n\n//see also the other possible methods on the handler for list-handling, acknowledge an many more ...\n```\n\n## Example Files\n\nCopy the ``vendor/kinimodmeyer/tradebyte-sdk/examples/`` folder to your project-root.\nRename ``examples/example_credentials.php`` to ``examples/credentials.php`` and replace the credentials.\nExecute the examples from the cli:\n\n```bash\n$ php examples/products.php channel=1370 id=123\n$ php examples/orders.php\n$ php examples/messages.php\n$ php examples/stock.php channel=1370 delta=123\n```\n\n## Tests\n\nExecute the test with the following:\n\n```bash\n$ ./vendor/bin/phpunit tests\n```\n\n## Code Analysis\n\nExecute the analysis with the following:\n\n```bash\n$ ./vendor/bin/phpcs src\n$ ./vendor/bin/phpcs tests\n```\n\nFix (if possible) with the following:\n\n```bash\n$ ./vendor/bin/phpcbf src\n$ ./vendor/bin/phpcbf tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinimodmeyer%2Ftradebyte-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinimodmeyer%2Ftradebyte-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinimodmeyer%2Ftradebyte-sdk-php/lists"}