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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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].

Build Status

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

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

PHP Build Version
Package Version
Requires php Version >=7.0
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gids-open-standaarden/open-pgo-medmij-implementatie-bouwstenen-php contains the following files

Loading the files please wait ....