2017 © Pedro Peláez
 

provider healthmeasures-laravel

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

image

towerhouse/healthmeasures-laravel

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  • Sunday, February 12, 2017
  • by lube8uy
  • Repository
  • 3 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Health Measures Laravel Provider

towerhousestudio, (*1)

  • This is a laravel/lumen provider for the library https://github.com/towerhouse/Healthmeasures
  • The provider is on HealthmeasuresServiceProvider.php
  • It provides a healthmeasures-routes.php with the format of a REST/API
  • You can consult what each function does on HealthmeasuresController.php
  • Responses are formatted following the standard from http://jsonapi.org/

Tech

Health Measures only uses one library to work properly:, (*2)

  • [towerhouse/healthmeasures] >= 1.3.*

Installation

  • composer require towerhouse/healthmeasures-laravel
  • Laravel: on the file config/app.php include
  • Lumen: on the file bootstrap/app.php include
$app->register(Healthmeasures\Laravel\HealthmeasuresServiceProvider::class);
  • The library generates pictures, create a folder healthmeasures under the public folder with write permissions, currently you're responsible for cleaning the folder. There isn´t other storage to use by the moment.

Example of use

Call a url as declared on healthmeasures-routes.php for instance, if (your vhost is called mbhealth-api.local) http://mbhealth-api.local/healthmeasures/measure and it will render all the measures from the database, (*3)

Tests

There are unit tests for each action except for the upload files actions. I have not found a way to do them yet., (*4)

ToDos

Limit with query parameters the number of results (pagination), (*5)

Html report generation

  • Laravel: php artisan vendor:publish
  • Lumen or Laravel: create the folder resources/views/healthmeasures/ and copy by hand report.blade.php inside there. Then you are free to modify the view.

Lumen provider

During the implementation of this package I found some difficulties that I documented here: http://towerhousestudio.com/implement-a-lumen-provider, (*6)

The Versions

12/02 2017

dev-master

9999999-dev

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucia Figueroa

laravel lumen data health

12/02 2017

1.0.4

1.0.4.0

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucia Figueroa

laravel lumen data health

05/02 2017

1.0.3

1.0.3.0

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  Sources   Download

MIT

The Requires

 

by Lucia Figueroa

laravel lumen data health

05/02 2017

1.0.2

1.0.2.0

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  Sources   Download

MIT

The Requires

 

by Lucia Figueroa

laravel lumen data health

05/02 2017

1.0.1

1.0.1.0

This library works as a laravel or lumen interface for the package towerhouse/healthmeasures.

  Sources   Download

MIT

The Requires

 

by Lucia Figueroa

laravel lumen data health