Download the PHP package biologis/hv-client-lib without Composer

On this page you can find all versions of the php package biologis/hv-client-lib. 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 hv-client-lib

HVClientLibPHP

An easy to use PHP library to connect to Microsoft® HealthVault™ on top of HVRawConnectorPHP. It adds a nicer object oriented programming interface and hides (most) of the complicated XML parts in the HealthVault protocol.

Installation

HVClientLibPHP depends on HVRawConnectorPHP.

You can simply use composer to install HVRawConnectorPHP and it's dependencies.

To add HVClientLibPHP as a library in your project, add something like that to the 'require' section of your composer.json:

If composer complains about an unknown pear channel, add this to your composer.json:

Earlier version of HVClientLibPHP could also be installed by pear including all it's dependencies:

pear channel-discover pear.biologis.com
pear channel-discover pear.querypath.org
pear install biologis/HVClient

This method will install HVClientLibPHP as a library, but without the available demo application.

Status

HVClientLibPHP is not a full featured HealthVault SDK, but should provide all the required stuff to create powerful HealthVault applications with PHP.

It can basically handle all Things already, but over the time we will add some more convenience function to the representing classes.

But the number of implemented Methods is very limited at the moment (the essential ones are available):

If you need more and understand the available Documentation, you can always use HVRawConnectorPHP directly. In that case you should ideally contribute your work to let HVClientLibPHP grow faster.

Usage

This is a simple example to display all weight measurements:

Connect a different HealthVault™ instance using a different country and language:

To connect your PHP based HealthVault™ app, your app needs to authorized by the user and the user himself needs to be authenticated against HealthVault™. If any of these requirements are not met, HVClientLibPHP throws corresponding exceptions. In this case you can create a link that takes the user to HealthVault™ to authenticate himself and to authorize your app and takes him back to your site afterwards:

For more examples have a look at the demo_app source code included in HVClientLibPHP.

The HVClientLibPHP will never provide an API to register a new HealthVault™ app or to guide you through the on-boarding process, because this could be easily done using the Application Configuration Center.

So register your app there first and start coding afterwards.

The demo_app (aka Hello World) is already registered. For your first tests you can also use it's credentials to start right away.

Demo

The demo_app included in this repository currently demonstrates two features:

By default it uses the US pre production instance of HealthVault.

To get started, follow the install instructions above and put the demo_app folder on a web server and access "demo_app/index.php".

Licence

GPLv2.

Sponsor

bio.logis offers users of pgsbox.de[pgsbox.com] and (https://pgsbox.de) a way to upload their diagnostic reports to HealthVault.


All versions of hv-client-lib with dependencies

PHP Build Version
Package Version
Requires biologis/hv-raw-connector Version >=1.3.1
psr/log Version 1.0.0
querypath/querypath Version >=3.0.0
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 biologis/hv-client-lib contains the following files

Loading the files please wait ....