{"id":18384114,"url":"https://github.com/speakeasy-sdks/test_php","last_synced_at":"2025-06-15T08:32:48.343Z","repository":{"id":179500659,"uuid":"663594393","full_name":"speakeasy-sdks/test_php","owner":"speakeasy-sdks","description":"A php SDK for accessing the test_php API.","archived":false,"fork":false,"pushed_at":"2024-04-02T21:22:49.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-16T00:13:24.361Z","etag":null,"topics":[],"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/speakeasy-sdks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-07-07T16:56:05.000Z","updated_at":"2023-07-07T16:57:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ac10d1e-65f2-41bd-adae-db28e21783a4","html_url":"https://github.com/speakeasy-sdks/test_php","commit_stats":null,"previous_names":["speakeasy-sdks/test_php"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Ftest_php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Ftest_php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Ftest_php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Ftest_php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-sdks","download_url":"https://codeload.github.com/speakeasy-sdks/test_php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248494414,"owners_count":21113431,"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":[],"created_at":"2024-11-06T01:13:38.758Z","updated_at":"2025-04-11T23:28:47.297Z","avatar_url":"https://github.com/speakeasy-sdks.png","language":"PHP","readme":"# my-workspace/updater\n\n\u003c!-- Start SDK Installation [installation] --\u003e\n## SDK Installation\n\n### Composer\n\nTo install the SDK first add the below to your `composer.json` file:\n\n```json\n{\n    \"repositories\": [\n        {\n            \"type\": \"github\",\n            \"url\": \"https://github.com/speakeasy-sdks/test_php.git\"\n        }\n    ],\n    \"require\": {\n        \"my-workspace/updater\": \"*\"\n    }\n}\n```\n\nThen run the following command:\n\n```bash\ncomposer update\n```\n\u003c!-- End SDK Installation [installation] --\u003e\n\n\u003c!-- Start SDK Example Usage [usage] --\u003e\n## SDK Example Usage\n\n### Example\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse my_workspace\\Updater;\nuse my_workspace\\Updater\\Models\\Shared;\nuse my_workspace\\Updater\\Models\\Operations;\n\n$security = new Shared\\Security();\n$security-\u003ebearerAuth = '\u003cYOUR_BEARER_TOKEN_HERE\u003e';\n\n$sdk = Updater\\Updater::builder()\n    -\u003esetSecurity($security)\n    -\u003ebuild();\n\ntry {\n    $request = new Operations\\ReadDealRequest();\n    $request-\u003edealId = 259512;\n\n    $response = $sdk-\u003edeal-\u003ereadDeal($request);\n\n    if ($response-\u003eobject !== null) {\n        // handle response\n    }\n} catch (Throwable $e) {\n    // handle exception\n}\n\n```\n\u003c!-- End SDK Example Usage [usage] --\u003e\n\n\u003c!-- Start Available Resources and Operations [operations] --\u003e\n## Available Resources and Operations\n\n### [Deal](docs/sdks/deal/README.md)\n\n* [readDeal](docs/sdks/deal/README.md#readdeal) - Read a deal.\n* [updateDeal](docs/sdks/deal/README.md#updatedeal) - Update a deal.\n\n### [Order](docs/sdks/order/README.md)\n\n* [readOrder](docs/sdks/order/README.md#readorder) - Read a order.\n* [updateOrder](docs/sdks/order/README.md#updateorder) - Update an order.\n\n### [Product](docs/sdks/product/README.md)\n\n* [readProduct](docs/sdks/product/README.md#readproduct) - Read a product.\n* [updateProduct](docs/sdks/product/README.md#updateproduct) - Update a product.\n\u003c!-- End Available Resources and Operations [operations] --\u003e\n\n\n\n\u003c!-- Start Server Selection [server] --\u003e\n## Server Selection\n\n## Server Selection\n\n### Select Server by Index\n\nYou can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:\n\n| # | Server | Variables |\n| - | ------ | --------- |\n| 0 | `https://updater.com/api` | None |\n\n\n\n\n### Override Server URL Per-Client\n\nThe default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:\n\u003c!-- End Server Selection [server] --\u003e\n\n\u003c!-- Placeholder for Future Speakeasy SDK Sections --\u003e\n\n\n\n### Maturity\n\nThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage\nto a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally\nlooking for the latest version.\n\n### Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nFeel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!\n\n### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Ftest_php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-sdks%2Ftest_php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Ftest_php/lists"}