Download the PHP package kumwe/transaction without Composer

On this page you can find all versions of the php package kumwe/transaction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package transaction

Kumwe Transaction

The storage-neutral transaction port. Services type against the contract; the host binds its adapter.

Kumwe Transaction defines the transaction boundary an application service in the Kumwe family composes over: TransactionManager, which runs work atomically and defers side effects until that work is durable, and TransactionState, the read-only view of whether a transaction is already open. The package ships no transaction implementation of any kind: a Doctrine DBAL adapter, its nesting and retry policy, its logging and its audit and outbox coordination all stay in the host that owns the connection.

Responsibility and non-goals

This package owns:

It does not own, and will refuse:

Installation and supported platforms

PHP ^8.5 and nothing else: the runtime requirement is php alone, with no extension and no Composer dependency. While the package is pre-1.0 a consumer pins an exact version, as docs/releasing.md explains.

Canonical namespace

Kumwe\Transaction\ is the one canonical root, autoloaded PSR-4 from src/. Contracts live under Kumwe\Transaction\Contract\, test support under Kumwe\Transaction\Testing\. There is no alias, historical namespace or compatibility root.

Five-minute example

The service never sees a connection. When append() throws, the scope is discarded, the withdrawal notice fires, the posted notice never does, and the exception reaches the caller unchanged. When it returns, the receipt is durable before the posted notice runs. A runnable version against the shipped test double is examples/typed-consumer.php.

Dependency injection: no provider, by design

This is a contracts package. It exports two interfaces and one test double and no runtime service with collaborators, so it ships no Laminas/Mezzio ConfigProvider, no factory and no alias: an empty provider would be ceremony, not integration. The host constructs its adapter and binds it to the interface identifiers itself, as Kumwe App does in its composition root:

Both bindings are request- or operation-supplied in the package standard's vocabulary: an adapter is bound to one connection and must never be shared across threads or processes. resources/service-map/v1.json records the absence and its reason; docs/integration.md walks through the binding and what the host must prove.

Public surface

Symbol Kind Capability Lifetime
Kumwe\Transaction\Contract\TransactionManager interface transaction.boundary host-supplied per connection
Kumwe\Transaction\Contract\TransactionState interface transaction.state host-supplied per connection
Kumwe\Transaction\Testing\ImmediateTransactionManager final readonly class transaction.testing tests only

No factories, no aliases, no configuration keys, no defaults: there is nothing to configure. Every symbol and member is documented in docs/public-api.md and pinned in resources/public-api/v1.json; composer manifests refuses drift. Capabilities are recorded in resources/capabilities/v1.json.

Guarantees

Extension and replacement points

Both interfaces are the extension points: a host implements them once per connection technology. A consumer that needs a scoped in-memory double for its own tests writes one against the contract; the shipped double is deliberately minimal and stateless.

Migration from Kumwe App

Kumwe\App\Application\Persistence\TransactionManager becomes Kumwe\Transaction\Contract\TransactionManager and Kumwe\App\Application\Persistence\TransactionState becomes Kumwe\Transaction\Contract\TransactionState, behaviour unchanged. The App's test support Kumwe\App\Tests\Support\ImmediateTransactionManager becomes Kumwe\Transaction\Testing\ImmediateTransactionManager. DoctrineTransactionManager, DoctrineTransactionState, the kernel bindings and every database test stay in the App. The complete adoption record, with file-level Phase 2 instructions, is MIGRATION-HANDOFF.md in this repository.

Testing and clean-consumer commands

The lane is described in docs/architecture.md; the archive and clean-consumer proof in docs/releasing.md.

Release, compatibility, security and license

Releases are on the record: the newest ## X.Y.Z heading in CHANGELOG.md is the release a merge to main publishes, as docs/releasing.md describes. Compatibility follows semantic versioning with exact consumer pins while pre-1.0. Security policy and scope are in Apache License, Version 2.0.


All versions of transaction with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kumwe/transaction contains the following files

Loading the files please wait ...