eappointment / zmsclient
Use this library to fetch data from the eappointment API via HTTP.
Requires
- php: >=8.0.0
- ext-curl: >=0
- ext-json: >=1.0
- ext-mbstring: >=0
- ext-pcre: >=0
- eappointment/mellon: 2.06.*
- eappointment/zmsentities: 2.27.03
- eappointment/zmsslim: 2.27.03
- nyholm/psr7: ^1.8
- php-http/curl-client: ^2.2
- psr/http-message: ^1.0
- roave/security-advisories: dev-master
- tracy/tracy: ^2.9
- twig/twig: 3.*
Requires (Dev)
- guzzlehttp/guzzle: ^7.0
- helmich/phpunit-psr7-assert: ^4.3.0
- phpmd/phpmd: @stable
- phpspec/prophecy-phpunit: ^2.0.0
- phpunit/phpunit: ^9.5.4
- squizlabs/php_codesniffer: ^3.5.8
- dev-main
- 2.27.03
- 2.27.02
- 2.27.01
- 2.27.0
- 2.26.09-patch1
- 2.26.09
- 2.26.08-patch1
- 2.26.08
- 2.26.07
- 2.26.06
- 2.26.05
- 2.26.04
- 2.26.03
- 2.26.02
- 2.26.01
- 2.26.00
- 2.25.05
- 2.25.04
- 2.25.03
- 2.25.02
- 2.25.01-patch1
- 2.25.01
- 2.25.00
- 2.25.00-rc7
- 2.25.00-rc6
- 2.25.00-rc5
- 2.25.00-rc4
- 2.25.00-rc3
- 2.25.00-rc2
- 2.25.00-rc1
- 2.24.14
- 2.24.13
- 2.24.13-rc4
- 2.24.13-rc1
- 2.24.12
- 2.24.11
- 2.24.10
- 2.24.10-rc10
- 2.24.10-rc9
- 2.24.10-rc8
- 2.24.10-rc7
- 2.24.10-rc6
- 2.24.10-rc5
- 2.24.10-rc2
- 2.24.10-rc1
- 2.24.09-patch-1
- 2.24.09
- 2.24.09-rc2
- 2.24.09-rc1
- 2.24.08
- 2.24.07
- 2.24.07-rc5
- 2.24.07-rc4
- 2.24.07-rc3
- 2.24.06
- 2.24.06-rc1
- dev-berlin-2.27.03
- dev-berlin-feature-61168-roles
- dev-berlin-2.27.02
- dev-berlin-2.27.01
- dev-berlin-2.27.0
- dev-berlin-2.27.0-update
- dev-berlin-2.26.09-patch1
- dev-berlin-2.26.09
- dev-berlin-2.26.07
- dev-berlin-2.26.06
- dev-berlin-60086-bugfix-for-source-data
- dev-berlin-2.26.05
- dev-berlin-2.26.04
- dev-berlin-59490-dependencies
- dev-berlin-2.26.04-rc
- dev-berlin-2.26.02
- dev-berlin-2.26.01
- dev-berlin-2.26.00
- dev-berlin-2.25.05
- dev-berlin-2.25.04
- dev-berlin-2.25.03
- dev-berlin-2.25.02
- dev-berlin-2.25.01
- dev-berlin-rc-2.25.00
This package is auto-updated.
Last update: 2024-11-21 14:19:24 UTC
README
Use this library to fetch data from the eappointment API via HTTP.
For a detailed project description, see https://gitlab.com/eappointment/eappointment
Requirements
- PHP 7.3+
Installation
Usually this module is required by other modules and does not need any special installation. Add the following lines to your composer.json:
composer require eappointment/zmsclient
Usage
$http = new \BO\Zmsclient\Http("https://eappointment.example.com/api/2");
$result = $http->readGetResult('/status/');
$entity = $result->getEntity();
var_dump($entity->version);
Configuration
Setting up default CURL-Options, use the following line:
\BO\Zmsclient\Psr7\Client::$curlopt = [
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_TIMEOUT => 3,
//CURLOPT_VERBOSE => true,
];
Testing
If you want to run the test, docker-compose is required. Testing needs an HTTP server to answer the HTTP calls from this library.
Run the following command:
docker-compose up
The docker-compose starts the mockup server, waits 10 seconds and starts the unit tests. After the tests are finished, the mockup server is still running. If there are failures, you need to lookup possible HTTP calls. There is a port forwarding and you can see the calls under http://localhost:8082/