承接 zanichelli/healthcheck 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zanichelli/healthcheck

最新稳定版本:v1.1.6

Composer 安装命令:

composer require zanichelli/healthcheck

包简介

Health check package provides security target for the project

README 文档

README

Build Status codecov

Introduction

This package has the purpose to add in laravel project an api route (/api/health).

There are various possible system checks:

  • Database status (db)
  • Availability local filesystem (filesystem.local)
  • Aws S3 filesystem connection (filesystem.s3)

Installation

First install laravel project if you don't have yet.

Then install healthcheck package using composer:

cd laravel-project
composer require zanichelli/healthcheck

Follow the template-file to include param about the package.

Note: Default config vaule is null

Customization

It is possible edit package configurations:

php artisan vendor:publish --tag=config #create package config file inside own config folder
php artisan vendor:publish --tag=resources #publish messages views inside resources folder

Add params in config file (healthcheck.php) to add more db connections or s3 bucket connections , e.g.:

    'db' => [
        [
            'connection' => env('DB_CONNECTION', null)
        ],
        [
            'connection' => env('ORACLE_CONNECTION', null)
        ],
        [
            'connection' => env('REDIS_CONNECTION', null)
        ]
    ],

Testing

You can run tests from the project where the package was installed, remember to use the PHPUnit binary located in healthcheck vendor directory. Assuming you have installed the package in the Example project, you can run the following commands:

docker exec -it example_app bash

cd vendor/zanichelli/healthcheck

composer install

vendor/bin/phpunit

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固