PHPackages                             svilborg/guzzle-file-snapshot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. svilborg/guzzle-file-snapshot

ActiveProject[Testing &amp; Quality](/categories/testing)

svilborg/guzzle-file-snapshot
=============================

Guzzle File Snapshot Mock

1.0.1(7y ago)09[2 PRs](https://github.com/svilborg/guzzle-file-mock/pulls)MITPHP

Since May 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/svilborg/guzzle-file-mock)[ Packagist](https://packagist.org/packages/svilborg/guzzle-file-snapshot)[ RSS](/packages/svilborg-guzzle-file-snapshot/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

### Guzzle File Mock

[](#guzzle-file-mock)

[![Build Status](https://camo.githubusercontent.com/e45caa9105b0444feaebe55c9e28539fb889773cab97f917a8c48bc1cf1ffff8/68747470733a2f2f6170692e7472617669732d63692e6f72672f7376696c626f72672f67757a7a6c652d66696c652d6d6f636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/svilborg/guzzle-file-mock)[![Latest Stable Version](https://camo.githubusercontent.com/1ed98fa6f25fab6fb34429b12c7a7117eb21244a8999a1eccea5ea8681383e28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7376696c626f72672f67757a7a6c652d66696c652d736e617073686f742e737667)](https://packagist.org/packages/svilborg/guzzle-file-snapshot)[![License](https://camo.githubusercontent.com/3a87023b0c1a3b32079a0504fc4d1a85caf25aff81ba5223462fd210f82cee7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7376696c626f72672f67757a7a6c652d66696c652d736e617073686f742e737667)](https://github.com/svilborg/guzzle-file-snapshot/blob/master/LICENSE)

Guzzle Mocking of Http calls to file system. On first call creates a snapshot and uses it afterwords.

### Usage

[](#usage)

```
$client = new GuzzleFileMock([
	            'file_mock' => __DIR__ . '/snapshots/',
	            'base_uri' => 'https://some.endpoint.org/'
	            ]);

$client->post("users", [
	            "form_params" => ["name" => "Peter"]
	        ]);
```

Php serializer and extension :

```
$client = new GuzzleFileMock([
	            'file_mock' => __DIR__ . '/snapshots/',
	            'file_mock_ext' => 'txt',
	            'file_mock_serializer' => '\GuzzleHttpMock\Serializer\PhpSerializer',
	            'base_uri' => 'https://some.endpoint.org/'
	            ]);

$client->post("users", [
	            "form_params" => ["name" => "Peter"]
	        ]);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~82 days

Total

3

Last Release

2752d ago

Major Versions

0.5.0 → 1.0.02018-10-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db646b4e4a625b138b9b1cb5d5aad0f16c3fe35bbcacadd5fe788782f99df71?d=identicon)[svilborg](/maintainers/svilborg)

---

Top Contributors

[![svilborg](https://avatars.githubusercontent.com/u/2757518?v=4)](https://github.com/svilborg "svilborg (19 commits)")

---

Tags

apiapi-clientfilesystemguzzleguzzlehttpmocksnapshottestingunit-testhttpapifilesystemsnapshotGuzzletestsapi clientunit-tests

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/svilborg-guzzle-file-snapshot/health.svg)

```
[![Health](https://phpackages.com/badges/svilborg-guzzle-file-snapshot/health.svg)](https://phpackages.com/packages/svilborg-guzzle-file-snapshot)
```

###  Alternatives

[imbo/behat-api-extension

API extension for Behat

1082.5M9](/packages/imbo-behat-api-extension)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)[mcustiel/phiremock-client

Client library to communicate with Phiremock server

16730.7k4](/packages/mcustiel-phiremock-client)[ikwattro/guzzle-stereo

Guzzle Recorder for recording Request/Responses and replay them back in a Mock

782.6k1](/packages/ikwattro-guzzle-stereo)[aeris/guzzle-http-mock

A mock library for verifying requests made with the Guzzle Http Client, and mocking responses.

2613.1k1](/packages/aeris-guzzle-http-mock)[doppiogancio/mocked-client

A simple way to mock a client

2174.9k3](/packages/doppiogancio-mocked-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
