/RgWsPublicClientPHP

A client in PHP for retrieving legal entities details using their VAT(AFM) from the web service offered by Greece's Ministry of Finance General Secretariat of Information Systems (GSIS)

Primary LanguagePHPMIT LicenseMIT

RgWsPublicClientPHP

RgWsPublicClient is an PHP client for accessing the new web service provided by GSIS for physical persons and legal entities. The new webservice provides two methods, one for retrieving the service's version information and the second for retrieving information regarding a requested VAT(A.F.M.). The latter requires authentication using the UsernameToken Extensions of WSS(see Web Services Security UsernameToken Profile). The project has a simple client that provides two methods (corresponding to the two web services) with error checking and handling, and an example PHP file that uses the client.

Example

  • clone/copy this project
  • edit the example client and add your username/password:
$client = new RgWsPublic("<username>", "<password>");
  • execute the file from within a web server or from the command line: php -f RgWsPublicClient.php