inteleon / decidas-client
Decidas Client
Installs: 18 516
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 20
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
- ext-curl: *
- ext-soap: *
- inteleon/soap-client: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2025-01-07 21:02:01 UTC
README
For making requests to Decidas webservice. This package is currently build only for looking up person data by a personnummer. You need an account for Decidas and a product configured for this (ConfigID).
You should read the manual for the webservice to have a basic understanding of how it works.
Person data by personnummer
Get person data for a swedish personnummer.
//Create client $username = ''; //Decidas username $password = ''; //Decidas password $connect_timeout = 5000; //Connect timeout in ms $timeout = 5000; //Timeout in ms $connect_attempts = 1; //Reconnect attempts if connection is failed $verify_certificate = true; //Verify the SSL certificate $cache_wsdl = true; //Cache the WSDL file $decidas = new \Inteleon\Decidas\Client($username, $password, $connect_timeout, $timeout, $connect_attempts, $verify_certificate, $cache_wsdl); //Person search $confignr = ''; //Decidas Config number/id $personnr = ''; //Personnummer $person = $decidas->personSearch($personnr, $confignr);
If a person is found $person
is an array with the keys: [PersonNr, LastName, FirstName, GivenName, AddressCo, AddressFo, AddressStreet, AddressZip, AddressCity]
If no person is found $person
is false