attlaz / adapter-base
Base adapter as building block and tool collection for Attlaz adapters
Requires
- php: ^8.4
- ext-json: *
- attlaz/attlaz-monolog: ^2.1.2
- attlaz/client: ^1.20.1
- doctrine/dbal: ^4.4.3
- echron/datatypes: ^1.6.0|^2.1.0
- echron/tools: ^1.8.1
- phpseclib/phpseclib: ^3.0.55
- psr/log: ^1 | ^2 | ^3
- psr/simple-cache: ^3.0.0
Requires (Dev)
- bramus/monolog-colored-line-formatter: ^3.1
- friendsofphp/php-cs-fixer: ^v3.95
- monolog/monolog: ^3.10
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^13.2.1
Suggests
- laminas/laminas-db: ^2.20
This package is auto-updated.
Last update: 2026-07-21 14:12:52 UTC
README
The base building block and tool collection for PHP adapters on Attlaz, a cloud-based iPaaS (Integration Platform as a Service). Attlaz adapters (Magento, DBFact and others) extend the abstractions in this package to connect to external systems.
Requirements
- PHP 8.4+
Installation
composer require attlaz/adapter-base
What's included
Building blocks for connecting an adapter to an external system, under the Attlaz\Adapter\Base namespace:
- Remote services — abstractions for talking to external systems: SQL (
SqlRemoteService), SSH (SSH2RemoteService), SOAP (SoapRemoteService), Redis (RedisRemoteService) and Elasticsearch (ElasticsearchRemoteService), all built on a commonBaseRemoteService. - Connection factories —
SqlFactory,SshFactoryandSftpFactory, including SSH tunnelling for reaching systems behind a bastion host. - Repository pattern —
BaseRepositoryas the base for an adapter's data access. - Helpers — SQL change detection, snapshots, and port/connection utilities.
Usage
Adapters build on these classes rather than using the package standalone — an adapter typically extends a RemoteService to reach its external system and a BaseRepository for data access. The first-party Attlaz adapters (e.g. Magento 2, DBFact) are built this way.
Documentation
Full documentation at docs.attlaz.com.
Development
Run static analysis and tests via the bundled Attlaz PHP image:
docker run -it -v .:/app -w /app --rm attlaz/php:8.4 composer phpstan docker run -it -v .:/app -w /app --rm attlaz/php:8.4 php vendor/bin/phpunit tests/
Getting help
- Issue Tracker — questions, bug reports and feature requests
- Developer support: developers@attlaz.com