PHPackages                             liip/soap-recorder-bundle - 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. liip/soap-recorder-bundle

Abandoned → [php-vcr/php-vcr](/?search=php-vcr%2Fphp-vcr)ArchivedSymfony-bundle[Testing &amp; Quality](/categories/testing)

liip/soap-recorder-bundle
=========================

A simple recorder for SOAP communication

0.9.8(12y ago)129.6k4[1 issues](https://github.com/liip/LiipSoapRecorderBundle/issues)MITPHPPHP &gt;=5.3.3

Since Dec 4Pushed 8y ago7 watchersCompare

[ Source](https://github.com/liip/LiipSoapRecorderBundle)[ Packagist](https://packagist.org/packages/liip/soap-recorder-bundle)[ Docs](http://github.com/liip/LiipSoapRecorderBundle)[ RSS](/packages/liip-soap-recorder-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

UNMAINTAINED
============

[](#unmaintained)

This bundle is no longer maintained. Feel free to fork it if needed.

LiipSoapRecorderBundle [![Build Status](https://camo.githubusercontent.com/65690c6d1cd276953944923abb95b64ae8045186a1e3c063c6d7f5c3cd21b90d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6969702f4c696970536f61705265636f7264657242756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/liip/LiipSoapRecorderBundle)
=====================================================================================================================================================================================================================================================================================================================================================

[](#liipsoaprecorderbundle-)

This bundle provide an easy way to record SOAP communications. Typical usage could be:

- Generating a set of fixtures for functional test writing
- Recording a scenario and being able to replay it
- Mocking the webservice to work offline
- ...

Installation
------------

[](#installation)

1. Install this bundle like any other SF2 bundle (Composer or git submodule install + Enable it in the kernel)
2. Replace the base class SoapClient by the new Liip\\SoapRecorderBundle\\Client\\RecordableSoapClient

Configuration
-------------

[](#configuration)

By default the bundle does nothing, to activate it, you just need to configure it:

```
liip_soap_recorder:
    record:          true                 # boolean, activate or not the recording
    fetching_mode:   local_first          # can be remote, local_first or local_only
    request_folder:  /tmp/soap_request    # where to store the XML request
    response_folder: /tmp/soap_response   # where to store the XML response
    wsdl_folder:     /tmp/soap_wsdl       # where to store the WSDL of the webservice
    enable_profiler: true                 # boolean, active or not the profiler
    die_on_error:    false

```

Usage
-----

[](#usage)

To use the bundle, you can play with some config parameters:

- **record** can be set to
    - *true*: to start communication recording
    - *false*: to stop it
- **fetching\_mode** can be set to:
    - *remote*: Always fetch response from the WebService
    - *local\_only*: Always fetch response from the local recording
    - *local\_first*: Try to fetch locally, and if not recorded yet, fetch to the WebService
- **enable\_profiler** can be set to:
    - *true*: to display SOAP records in the Symfony2 Profiler. It will delete the recorded files from the directories.
    - *false*: to keep the files in the directories without using the Symfony2 Profiler.
- **die\_on\_error** can be used to define the behaviour in case you are in local\_only and a record is missing:
- false: Normal behavior, will throw an exception
- true: Will die() with an explicit message, this is useful on Symfony2 where sometimes the generated exception is replace by an AccessDeniedException who masked the original one

Usage outside Symfony2
----------------------

[](#usage-outside-symfony2)

The heart of the bundle is the class Liip\\SoapRecorderBundle\\Client\\RecordableSoapClient. This class is independent, so you can use it outside of the Bundle, in any PHP 5.3 project:

1. Replace your base class SoapClient by the new Liip\\SoapRecorderBundle\\Client\\RecordableSoapClient
2. Start recording by calling:

```
   RecordableSoapClient::setRecordFolders('/tmp/request', '/tmp/response', '/tmp/wsdl');
   RecordableSoapClient::startRecording();
   // Call your webservice like usual`

```

1. Start playing your records

```
   RecordableSoapClient::setFetchingMode(RecordableSoapClient::FETCHING_LOCAL_FIRST);
   // Call your webservice like usual

```

Contributing
------------

[](#contributing)

If you would like to contribute, just go on the project page: , fork it and providing PRs.

This project comes with a functional test suite, just read the Tests/README.md for more information.

Travis CI is also running for continuous integration tests: [![Build Status](https://camo.githubusercontent.com/65690c6d1cd276953944923abb95b64ae8045186a1e3c063c6d7f5c3cd21b90d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6969702f4c696970536f61705265636f7264657242756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/liip/LiipSoapRecorderBundle)

Requirements
------------

[](#requirements)

PHP 5.3

Authors
-------

[](#authors)

- Pierre Vanhulst - Liip SA
- David Jeanmonod - Liip SA

License
-------

[](#license)

LiipSoapRecorderBundle is licensed under the MIT License - see the LICENSE file for details

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.5% 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 ~25 days

Recently: every ~30 days

Total

9

Last Release

4711d ago

PHP version history (2 changes)0.9.0PHP &gt;=5.2.0

0.9.7PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f081ca8cb8aed6700cf653d466e81ad7fe2110c3826e3200d13af1a4df442d8b?d=identicon)[jeanmonod](/maintainers/jeanmonod)

---

Top Contributors

[![jeanmonod](https://avatars.githubusercontent.com/u/114489?v=4)](https://github.com/jeanmonod "jeanmonod (41 commits)")[![pierrevanhulst](https://avatars.githubusercontent.com/u/2832879?v=4)](https://github.com/pierrevanhulst "pierrevanhulst (6 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (3 commits)")[![waldvogel](https://avatars.githubusercontent.com/u/1387891?v=4)](https://github.com/waldvogel "waldvogel (2 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (1 commits)")[![krtek4](https://avatars.githubusercontent.com/u/963772?v=4)](https://github.com/krtek4 "krtek4 (1 commits)")[![sitron](https://avatars.githubusercontent.com/u/90797?v=4)](https://github.com/sitron "sitron (1 commits)")

---

Tags

bundlephpsoapsymfonysymfony-bundletestingSymfony2soapwebservicerecorder

### Embed Badge

![Health badge](/badges/liip-soap-recorder-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/liip-soap-recorder-bundle/health.svg)](https://phpackages.com/packages/liip-soap-recorder-bundle)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

54562.0M318](/packages/behat-mink-browserkit-driver)[dama/doctrine-test-bundle

Symfony bundle to isolate doctrine database tests and improve test performance

1.2k37.2M144](/packages/dama-doctrine-test-bundle)[liip/functional-test-bundle

This bundles provides additional functional test-cases for Symfony applications

65010.8M86](/packages/liip-functional-test-bundle)[liip/test-fixtures-bundle

This bundles enables efficient loading of Doctrine fixtures in functional test-cases for Symfony applications

1798.3M42](/packages/liip-test-fixtures-bundle)

PHPackages © 2026

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