exegeseit/ezged-ws-client

This package aims to provide a client for ezGed Webservices

v2.2.2 2022-05-20 13:05 UTC

README

ezged-ws-client is a simple PHP client for ezGED's web services. It relies on symfony/http-client component for the HTTP request layer.

Installation

composer require exegeseit/ezged-ws-client

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

EzGED API DESCRIPTION

For convenience, you can find EzGED json web services descriptions here

USAGE

<?php

require_once 'vendor/autoload.php';

use ExeGeseIT\EzGEDWsClient\EzGEDClient;
use ExeGeseIT\EzGEDWsClient\EzGEDHelper;

$config = [
  'url' => 'https://myserver.io/ezged3',
  'user' => 'wsuser',
  'pwd' => 'YourPassW0$l*',
];;

//$ezWS = new EzGEDClient( $ezgedUrl=$config['url'], $httpclient=null, $apiUser=$config['user'], $apiPwd=$config['pwd'], $sslVerifyPeer=false);
$ezWS = (new EzGEDClient( $config['url'] ))
    ->setApiUser($config['user'])
    ->setApiPwd($config['pwd'])
    ->setSslVerifyPeer(false)
    ;


$response = $ezWS->connect(true);



$ezWS->logout();

TODO:

  • Documentation