{"id":21674333,"url":"https://github.com/drunomics/xtrf-rest-client","last_synced_at":"2025-06-29T06:06:25.028Z","repository":{"id":47667781,"uuid":"74687285","full_name":"drunomics/xtrf-rest-client","owner":"drunomics","description":"XTRF REST client library based on Guzzle.","archived":false,"fork":false,"pushed_at":"2022-06-26T08:11:58.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T03:56:53.115Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drunomics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-24T15:57:29.000Z","updated_at":"2016-11-24T16:38:29.000Z","dependencies_parsed_at":"2022-08-24T14:38:00.306Z","dependency_job_id":null,"html_url":"https://github.com/drunomics/xtrf-rest-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/drunomics/xtrf-rest-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fxtrf-rest-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fxtrf-rest-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fxtrf-rest-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fxtrf-rest-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drunomics","download_url":"https://codeload.github.com/drunomics/xtrf-rest-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fxtrf-rest-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545031,"owners_count":23326658,"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-25T13:44:07.177Z","updated_at":"2025-06-29T06:06:25.002Z","avatar_url":"https://github.com/drunomics.png","language":"PHP","readme":"# XTRF REST client library\nREST client library based on Guzzle.\n\nThe client provides a nice API using model classes for the data structure. The models are generated based upon the Swagger REST service specification. See http://swagger.io/.\n\nThe specification (swagger.json) can be edited using Swagger's online editor: http://editor.swagger.io\n\nUsage\n-----\n\n```\n$config = [\n  'base_uri' =\u003e 'http://example.com',\n  'username' =\u003e 'test',\n  'password' =\u003e 'test',\n];\n$client = \\drunomics\\XtrfClient\\XtrfClient::create($config);\n$quote = $client-\u003egetQuote($quote_id);\n//...\n// More examples like quote creation can be found at the tests, see https://github.com/drunomics/xtrf-rest-client/blob/master/tests/XtrfApiIntegrationTest.php#L145.\n```\n\nNotes on using swagger-UI:\n--------------------------\nsee https://github.com/swagger-api/swagger-ui\n\nSwagger-ui can be used to provide a good overview and curl commands for testing. The following instructions describe how to run swagger-ui easily:\n\n- Run swagger-ui via \"composer swagger-ui\" command.\n\n- Start with the authentication call. It's result needs to be copied into the\n  api-key field at the top.\n\n- The cookie authentication does not work from swagger. But the generated curl\n  commands do. If you have troubles with SSL verification you can prepend the\n  curl options:\n\n  curl -3 --insecure  OTHER OPTIONS\n\nGenerate models based upon swagger spec\n----------------------------------------\n\n- Run `composer install` in the libraries directory\n- Run `composer generate` - that's it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fxtrf-rest-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrunomics%2Fxtrf-rest-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fxtrf-rest-client/lists"}