Skip to content

tswfi/ebirdieclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eBirdie client

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