thegrommet / sps-connector
A PHP library for integrating with SPS Commerce via SFTP
Installs: 5 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 13
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- ext-curl: ^7.1
- ext-simplexml: ^7.1
- ext-soap: ^7.1
- phpseclib/phpseclib: ^2.0
- psr/log: ^1.0
Requires (Dev)
- php-mock/php-mock-phpunit: ^2.1
- phpunit/phpunit: ^7.2
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-11-07 05:55:54 UTC
README
A PHP library for integrating with SPS Commerce via SFTP.
Build status
Install
composer require thegrommet/sps-connector
Usage
GS1 Label Generation
use SpsConnector\Document\ShippingLabel; use SpsConnector\LabelService; $labelDocument = new ShippingLabel(); $label = $labelDocument->addLabel(); // add label specifics $service = new LabelService('username', 'password'); $pdf = $service->getLabel($labelDocument->__toString(), '5311', $service::FORMAT_PDF); file_put_contents('label.pdf', $pdf);
Running tests
composer test
Code sniff & fix
# sniff src folder composer cs # sniff tests folder composer cs-tests # fix src folder composer cbf # fix tests folder composer cbf-tests