ninedigit/nws4-php

NWS4 HMAC Authentication

0.0.4 2025-02-25 06:14 UTC

This package is auto-updated.

Last update: 2025-05-25 06:53:51 UTC


README

Install Composer

curl -sS https://getcomposer.org/installer | php

Install project dependencies

php composer.phar install

Note: Call php composer.phar dumpautoload when new class is created.

Run tests

$ ./vendor/bin/phpunit --verbose tests.

or specific test method can be run using --filteroption e.g. ./vendor/bin/phpunit --verbose tests --filter testFromHttpRequestCreatesCorrectRequest.

Run compatibility checks

$ ./vendor/bin/phpcs --standard=PHPCompatibility --extensions=php --runtime-set testVersion 7.4- ./src

Run examples

$ cd examples

$ php index.php

Usage

See https://getcomposer.org/doc/05-repositories.md#using-private-repositories how to reference this library in your project.