PHPackages                             php-soap/cached-engine - 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. [Caching](/categories/caching)
4. /
5. php-soap/cached-engine

ActiveLibrary[Caching](/categories/caching)

php-soap/cached-engine
======================

A cache decorator for php-soap/engine

0.8.0(3mo ago)1397.5k↓34.3%2[3 PRs](https://github.com/php-soap/cached-engine/pulls)2MITPHPPHP ~8.4.0 || ~8.5.0CI passing

Since Jun 7Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/php-soap/cached-engine)[ Packagist](https://packagist.org/packages/php-soap/cached-engine)[ Fund](https://opencollective.com/php-soap)[ RSS](/packages/php-soap-cached-engine/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (25)Versions (12)Used By (2)

SOAP Cached Engine
==================

[](#soap-cached-engine)

This package contains a cache wrapper for a SOAP engine. For more information about the engine, please check the [php-soap/engine](https://github.com/php-soap/engine) package.

Want to help out? 💚
===================

[](#want-to-help-out-)

- [Become a Sponsor](https://github.com/php-soap/.github/blob/main/HELPING_OUT.md#sponsor)
- [Let us do your implementation](https://github.com/php-soap/.github/blob/main/HELPING_OUT.md#let-us-do-your-implementation)
- [Contribute](https://github.com/php-soap/.github/blob/main/HELPING_OUT.md#contribute)
- [Help maintain these packages](https://github.com/php-soap/.github/blob/main/HELPING_OUT.md#maintain)

Want more information about the future of this project? Check out this list of the [next big projects](https://github.com/php-soap/.github/blob/main/PROJECTS.md) we'll be working on.

Prerequisites
=============

[](#prerequisites)

You can choose what cache implementation you want to use. This package expects some PSR implementations to be present in order to be installed:

- PSR-6: `psr/cache-implementation` like `symfony/cache` or `cache/*`

Example:

```
$ composer require symfony/cache
```

Installation
============

[](#installation)

```
composer install php-soap/cached-engine
```

Engines
-------

[](#engines)

This package provides engines that can be used in a generic way:

### CachedEngine

[](#cachedengine)

You can cache a complete engine so that you don't have to reload a WSDL on every HTTP request.

```
use PhpSoap\CachedEngine\CachedEngine;
use Soap\CachedEngine\CacheConfig;
use Soap\Engine\Engine;

$engine = new CachedEngine(
    $yourPsr6CachePool,
    new CacheConfig(
        key: 'cached-engine',
        ttlInSeconds: 3600
    ),
    static function (): Engine {
        return new YourSoapEngine();
    }
);
```

**Note:** This driver doesn't work well with the `LazyEngine` because of its closures that cannot be serialized. Since this engine is already lazy, you can use it as a direct replacement.

Drivers
-------

[](#drivers)

This package provides drivers that can be used in a generic way:

### CachedDriver

[](#cacheddriver)

You can cache a complete driver so that you don't have to reload a WSDL on every HTTP request.

```
use PhpSoap\CachedEngine\CachedDriver;
use Soap\CachedEngine\CacheConfig;
use Soap\Driver\Driver;

$driver = new CachedDriver(
    $yourPsr6CachePool,
    new CacheConfig(
        key: 'cached-engine',
        ttlInSeconds: 3600
    ),
    static function (): Driver {
        return new YourSoapDriver();
    }
);
```

Concrete example:

```
use Soap\CachedEngine\CacheConfig;
use Soap\CachedEngine\CachedDriver;
use Soap\Encoding\Driver;
use Soap\Wsdl\Loader\StreamWrapperLoader;
use Soap\WsdlReader\Wsdl1Reader;
use Symfony\Component\Cache\Adapter\RedisAdapter;

$driver = new CachedDriver(
    new RedisAdapter(
        RedisAdapter::createConnection('redis://localhost')
    ),
    new CacheConfig('your-soap-driver', ttlInSeconds: 3600),
    static fn() => Driver::createFromWsdl1(
        (new Wsdl1Reader(
            new StreamWrapperLoader()
        ))($wsdlLocation)
    )
);
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~94 days

Recently: every ~39 days

Total

8

Last Release

98d ago

PHP version history (4 changes)0.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

0.3.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

0.4.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

0.8.0PHP ~8.4.0 || ~8.5.0

### Community

Maintainers

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

---

Top Contributors

[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (19 commits)")[![EJTJ3](https://avatars.githubusercontent.com/u/31619091?v=4)](https://github.com/EJTJ3 "EJTJ3 (1 commits)")

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-soap-cached-engine/health.svg)

```
[![Health](https://phpackages.com/badges/php-soap-cached-engine/health.svg)](https://phpackages.com/packages/php-soap-cached-engine)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[phpro/soap-client

A general purpose SoapClient library

8896.1M54](/packages/phpro-soap-client)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[veewee/xml

XML without worries

1837.0M39](/packages/veewee-xml)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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