定制 towerhouse/healthmeasures-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

towerhouse/healthmeasures-laravel

Composer 安装命令:

composer require towerhouse/healthmeasures-laravel

包简介

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

README 文档

README

towerhousestudio

  • 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:

  • [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

Tests

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

ToDos

Limit with query parameters the number of results (pagination)

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

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固