Download the PHP package gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php without Composer
On this page you can find all versions of the php package gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php
More information about gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php
Files in gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php
Package open-pgo-medmij-implementatie-bouwstenen-php
Short Description PHP implementation of the MedMij OpenPGO building blocks.
License AGPL-3.0-only
Informations about the package open-pgo-medmij-implementatie-bouwstenen-php
This repository has been archived
Dear reader, The decision has been made to archive this repository. The reason is that the OpenPGO-Medmij-ImplementatieBouwstenen-PHP isn’t being used and has deferred maintenance including security vulnerabilities. If you desire to use this adapter, please contact GIDS: [email protected].
gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php
PHP implementation of the MedMij OpenPGO building blocks.
Version Guidance
This library follows Semantic Versioning. The versions of the Afspraken set are mapped to the versions of the library as follows:
Version Afsprakenset | Status | Version library |
---|---|---|
Afsprakenset release 1.1 | Latest | 0.2.* |
Afsprakenset release 1.0 | EOL | 0.1.* |
Installation
The OpenPGO PHP adapter can be installed using Composer:
Configuration
The building blocks use a HTTP client (Guzzle) to connect.
For example the Whitelist client can be constructed like this:
Use cases
Retrieve Whitelist
see https://github.com/GidsOpenStandaarden/OpenPGO/blob/master/Resources/UCI%20Opvragen%20Whitelist.pdf
The WhitelistClient
can be used to retrieve the Whitelist
.
The WhitelistService
provides a convenience method isMedMijNodeWhitelisted
to check if a given node is whitelisted.
Retrieve OCL
see https://github.com/GidsOpenStandaarden/OpenPGO/blob/master/Resources/UCI%20Opvragen%20OCL.pdf
The OAuthClientListClient
can be used to retrieve the OAuthclientlist
.
The OAuthClientService
provides a convenience method getOAuthClientByHostname
to get an OAuthClient
by its unique hostname.
Retrieve ZAL
see https://github.com/GidsOpenStandaarden/OpenPGO/blob/master/Resources/UCI%20Opvragen%20ZAL.pdf
The ZALClient
can be used to retrieve the Zorgaanbiederslijst
.
The ZorgaanbiederService
provides a convenience method getZorgaanbiederByName
to get a Zorgaanbieder
by its unique name.
Retrieve Gegevensdienstnamenlijst
The GegevensdienstnamenlijstClient
can be used to retrieve the Gegevensdienstnamenlijst
.
The GegevensdienstnamenlijstService
provides a convenience method getGegevensdienstById
to get a Gegevensdienst
by its unique identifier.
OAuth
This library provides the building blocks for Three Legged OAuth 2 authentication.
A PGO GW can authenticate with a ZA GW using a ZorgaanbiederProvider
which is configured with
- an OAuthclient as listed in the OAuthClientList
- a Gegevensdienst as listed in the Zorgaanbiederslijst.
Step 1. Application redirects User to Service for Authorization
Note: store the state ($provider->getState()) to prevent replay attacks.
Step 2. User logs into the Service and grants Application access.
Step 3. Service redirects User back to the redirect_url.
Step 4. Application takes the code and exchanges it for an Access Token
Development
Clone this repository and run composer install
to install the dependencies.
Testing
This library is tested using PHPUnit.
The tests can be executed with this command:
All versions of open-pgo-medmij-implementatie-bouwstenen-php with dependencies
psr/http-message Version ^1.0
guzzlehttp/guzzle Version ^6.0
webmozart/assert Version ^1.3
league/oauth2-client Version ^2.3
jms/serializer Version ^1.13