{"id":43292263,"url":"https://github.com/apiship/apiship-sdk-php","last_synced_at":"2026-02-01T18:34:24.643Z","repository":{"id":25709766,"uuid":"106289076","full_name":"apiship/apiship-sdk-php","owner":"apiship","description":"PHP SDK for ApiShip","archived":false,"fork":false,"pushed_at":"2025-09-19T10:55:25.000Z","size":194,"stargazers_count":9,"open_issues_count":2,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-24T18:48:23.496Z","etag":null,"topics":["apiship","client","php-sdk"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apiship.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-09T13:44:33.000Z","updated_at":"2025-09-19T10:54:38.000Z","dependencies_parsed_at":"2023-01-14T03:15:15.925Z","dependency_job_id":"7f0b0ce3-9082-4171-b701-9f95a327b68c","html_url":"https://github.com/apiship/apiship-sdk-php","commit_stats":{"total_commits":93,"total_committers":14,"mean_commits":6.642857142857143,"dds":0.6236559139784946,"last_synced_commit":"8a33f66a555d681d3d2f76e018b27f80a3de2543"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/apiship/apiship-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiship%2Fapiship-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiship%2Fapiship-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiship%2Fapiship-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiship%2Fapiship-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apiship","download_url":"https://codeload.github.com/apiship/apiship-sdk-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiship%2Fapiship-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28985818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"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":["apiship","client","php-sdk"],"created_at":"2026-02-01T18:34:24.583Z","updated_at":"2026-02-01T18:34:24.636Z","avatar_url":"https://github.com/apiship.png","language":"PHP","readme":"# ApiShip SDK\n### Тестовый и боевой режим\nВ адаптере (GuzzleAdapter) есть возможность переключения тестового и боевого окружений.\nЭто осуществляется с помощью флага test (true - тестовое, false - боевое), который передается в конструктор GuzzleAdapter третьим параметром.\nПо умолчанию значение флага test - true, т.е. тестовое окружение.\n\nТестовое окружение - все запросы идут на тестовый урл http://api.dev.apiship.ru/v1/\n\nБоевое окружение - все запросы идут на боевой урл https://api.apiship.ru/v1/\n\nВ адаптере (GuzzleAdapter) есть метод isTest, с помощью которого можно определить, какое окружение развернуто (тестовое или боевое).\n\n### Получение X-Tracing-Id\n\nДля получения уникального идентификатора запроса к api используется метод **getLatestResponseHeaders** у адаптеров GuzzleAdapter и GuzzleTokenAdapter\n\n```php\n$adapter = new GuzzleAdapter('test', 'test', true);\n$apiship = new Apiship($adapter);\n$providersResult = $apiship-\u003elists()-\u003egetPoints();\n\n$headers = $apiship-\u003eadapter-\u003egetLatestResponseHeaders();\n$xTraingId = $headers['x-tracing-id'];\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiship%2Fapiship-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapiship%2Fapiship-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiship%2Fapiship-sdk-php/lists"}