tswfi/ebirdieclient

Client for eBirdie api

v0.0.3 2022-04-04 09:50 UTC

This package is auto-updated.

Last update: 2024-08-05 20:00:42 UTC


README

PHP client for talking with eBirdie soap service.

https://packagist.org/packages/tswfi/ebirdieclient

Usage

  • Get wsdl url with basic auth information if required
  • Get ebirdie username and password

See more examples

Initialize client

In this example the values are read from environment variables but of course you can set them however you like

  $client = new Client(getenv('EBIRDIE_WSDL'), getenv('EBIRDIE_LOGIN'), getenv('EBIRDIE_PASS'));

Running tests

Tests read wsdl, user and key from environment variables

EBIRDIE_WSDL=https://USER:PASS@stage.uhs.golf.fi/docs/eBirdie_API-2_1_1/ns0.wsdl EBIRDIE_LOGIN=username EBIRDIE_PASS=apikey

EBIRDIE_WSDL=https://USER:PASS@stage.uhs.golf.fi/docs/eBirdie_API-2_1_1/ns0.wsdl EBIRDIE_LOGIN=username EBIRDIE_PASS=apikey ./vendor/bin/phpunit tests