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. php-soap/cached-engine

ActiveLibrary

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

A cache decorator for php-soap/engine

0.8.0(1mo ago)1240.5k—0.4%22MITPHPPHP ~8.4.0 || ~8.5.0CI passing

Since Jun 7Pushed 1mo 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 1mo ago

READMEChangelog (8)Dependencies (25)Versions (9)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

Maintenance90

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

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

52d 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/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[symfony/cache

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

4.2k348.9M2.5k](/packages/symfony-cache)[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)

PHPackages © 2026

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