PHP library for the UN/EDIFACT D23B Cross Domain Acknowledgement and Response message.
This library provides comprehensive PHP models for handling Cross Domain Acknowledgement and Response messages according to the UN/EDIFACT D23B standard (December 2023).
Models are generated from official UN/CEFACT XSD schemas:
- Version: 100.D23B
- Standard: UN/EDIFACT
- Message: Cross Domain Acknowledgement and Response
- Source: https://unece.org/trade/documents/2024/08/standards/cross-domain-acknowledgement-and-response-d23b
- PHP 8.3 or higher
You can install the library via Composer:
composer require tiimepdp/cdar
// Building CDAR message
$cdar = new \TiimePDP\CrossDomainAcknowledgementAndResponse\CrossDomainAcknowledgementAndResponse(
// ... initialize with data
);
// Serializing CDAR message to XML
$serializer = new \TiimePDP\CrossDomainAcknowledgementAndResponse\Serializer\Serializer();
$xmlContent = $serializer->serialize($cdar);
echo $xmlContent;We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature) - Make your changes and ensure they pass all quality checks:
- Run PHPStan:
vendor/bin/phpstan analyse - Run PHP-CS-Fixer:
vendor/bin/php-cs-fixer fix - Run tests:
vendor/bin/phpunit
- Run PHPStan:
- Commit your changes with clear messages
- Push to your branch
- Open a Pull Request with a description of your changes
- All code contributions must maintain 100% PHPStan compliance at maximum level
- Follow the existing code style (enforced by PHP-CS-Fixer)
- Keep comments and documentation in English
- Any modifications to this code must be distributed under the GPL-3.0-or-later license
GPL-3.0-or-later
This project is licensed under the GNU General Public License v3.0 or later. Any modifications to this software must be distributed under the same GPL-3.0-or-later license.