wndr/logic4

Logic4 PHP-SDK

Maintainers

Details

github.com/wndrnl/logic4

Source

Issues

Installs: 672

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

pkg:composer/wndr/logic4

1.2.0 2025-07-03 06:59 UTC

This package is auto-updated.

Last update: 2025-10-03 07:54:40 UTC


README

This package is slim wrapper around the Logic4 API. It's an opinionated integration that uses Saloon as a client/wrapper and handles general tasks like authentication.

How to use

// Set configuration 
$connector = new \Wndr\Logic4\Connectors\Logic4Connector();
$connector->setAdministrationId('xx')
->setCompanyKey('xx')
->setPrivateKey('xx')
->setPublicKey('xx')
->setUsername('xx')
->setPassword('xx')
->authenticate($connector->getAccessToken())

// Create request
$request = new \Wndr\Logic4\Requests\Orders\GetOrders([
    'Id' => 'xx',
    'TakeRecords' => 1
]);

// Get results
$response = $connector->send($request)->json();

Install

composer require wndr/logic4