{"id":21806377,"url":"https://github.com/svilborg/guzzle-file-mock","last_synced_at":"2025-03-21T07:45:02.282Z","repository":{"id":37546618,"uuid":"134269923","full_name":"svilborg/guzzle-file-mock","owner":"svilborg","description":"Guzzle File Snapshot Mock","archived":false,"fork":false,"pushed_at":"2023-04-19T18:48:24.000Z","size":49,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T04:27:48.266Z","etag":null,"topics":["api","api-client","filesystem","guzzle","guzzlehttp","mock","snapshot","testing","unit-test"],"latest_commit_sha":null,"homepage":null,"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/svilborg.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-05-21T13:02:31.000Z","updated_at":"2019-07-28T09:59:50.000Z","dependencies_parsed_at":"2024-11-19T01:44:10.739Z","dependency_job_id":null,"html_url":"https://github.com/svilborg/guzzle-file-mock","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.10526315789473684","last_synced_commit":"279b9f8c71ae13543552b7eefc32a8814eb1baa9"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fguzzle-file-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fguzzle-file-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fguzzle-file-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fguzzle-file-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svilborg","download_url":"https://codeload.github.com/svilborg/guzzle-file-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759899,"owners_count":20505712,"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":["api","api-client","filesystem","guzzle","guzzlehttp","mock","snapshot","testing","unit-test"],"created_at":"2024-11-27T12:19:16.633Z","updated_at":"2025-03-21T07:45:02.242Z","avatar_url":"https://github.com/svilborg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Guzzle File Mock\n\n[![Build Status](https://api.travis-ci.org/svilborg/guzzle-file-mock.svg?branch=master)](https://travis-ci.org/svilborg/guzzle-file-mock)\n[![Latest Stable Version](https://img.shields.io/packagist/v/svilborg/guzzle-file-snapshot.svg)](https://packagist.org/packages/svilborg/guzzle-file-snapshot)\n[![License](https://img.shields.io/packagist/l/svilborg/guzzle-file-snapshot.svg)](https://github.com/svilborg/guzzle-file-snapshot/blob/master/LICENSE)\n\nGuzzle Mocking of Http calls to file system. On first call creates a snapshot and uses it afterwords.\n\n### Usage\n\n```php\n$client = new GuzzleFileMock([\n\t            'file_mock' =\u003e __DIR__ . '/snapshots/',\n\t            'base_uri' =\u003e 'https://some.endpoint.org/'\n\t            ]);\n\n$client-\u003epost(\"users\", [\n\t            \"form_params\" =\u003e [\"name\" =\u003e \"Peter\"]\n\t        ]);\n```\n\nPhp serializer and extension :\n\n```php\n$client = new GuzzleFileMock([\n\t            'file_mock' =\u003e __DIR__ . '/snapshots/',\n\t            'file_mock_ext' =\u003e 'txt',\n\t            'file_mock_serializer' =\u003e '\\GuzzleHttpMock\\Serializer\\PhpSerializer',\n\t            'base_uri' =\u003e 'https://some.endpoint.org/'\n\t            ]);\n\n$client-\u003epost(\"users\", [\n\t            \"form_params\" =\u003e [\"name\" =\u003e \"Peter\"]\n\t        ]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvilborg%2Fguzzle-file-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvilborg%2Fguzzle-file-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvilborg%2Fguzzle-file-mock/lists"}