zc2tech / qing
qing is a php-based implementation of the EDIINT AS2 standard, forked from tiamo/phpas2. The lib name 'qing' is because Maggie Cheung delivered an exceptional performance in the film Green Snake.
Requires
- php: ^8.2
- ext-ctype: *
- ext-openssl: *
- ext-zlib: *
- guzzlehttp/guzzle: ^7.9
- monolog/monolog: ^1.1
- phpseclib/phpseclib: ^3.0.43
- psr/log: ^3.0.2
Requires (Dev)
- phpunit/phpunit: ^9.6.11
- symfony/var-dumper: ^4.0
This package is auto-updated.
Last update: 2025-06-23 03:22:07 UTC
README
This application enables you to transmit and receive AS2 messages with EDI-X12, EDIFACT, XML, or binary payloads between trading partners.
Requirements
- php >= 8.3
- ext-openssl
- ext-zlib
Installation
composer require zc2tech/qing
Usage
Basic example
cd example composer install chmod +x ./bin/console # start a server to receive messages in 8000 port php -S 127.0.0.1:8000 ./public/index.php # send a test message php bin/console send-message --from mycompanyAS2 --to phpas2_win # send a file php bin/console send-message --from mycompanyAS2 --to phpas2_win --file /path/to/the/file
This library is a fork of tiamo/phpas2 which did not release updates since September 2023. I updated code to adapt to recent php/library: php8, Slim 4, Symfony 7 .
AS2 is a transport protocol specified in RFC 4130. AS2 version 1.1 adding compression is specified in RFC 5402. The MDN is specified in RFC 3798. Algorithm names are defined in RFC 5751 (S/MIME 3.2) which supersedes RFC 3851 (S/MIME 3.1);