承接 cookiemc337/laravel-web-status-checker 相关项目开发

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

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

cookiemc337/laravel-web-status-checker

最新稳定版本:v1.4

Composer 安装命令:

composer require cookiemc337/laravel-web-status-checker

包简介

Simple Ping For Laravel Applications

README 文档

README

This Laravel package is simple and unopinionated. It simply returns the HTTP Status Code for a provided URL.

Installation

Install via Composer:

composer require cookiemc337/laravel-web-status-checker

You'll need to register the ServiceProvider and Facade:

// config/app.php

'providers' => [
    // ...
    CookieMC337\Checker\WebStatusCheckerServiceProvider::class,
];

'aliases' => [
    // ...
    'WebStatusChecker' => CookieMC337\Checker\Facades\WebStatusChecker::class,
];

Usage

<?php

namespace App\Http\Controllers;

use Ping;
use App\Http\Controllers\Controller;

class LinkController extends Controller
{
    /**
     * Show the current health of a given URL.
     *
     * @param  string  $url
     * @return string
     */
    public function healthCheck($url)
    {
        $health = Ping::check($url);

        if($health == 200) {
            return 'Alive!';
        } else {
            return 'Dead :(';
        }
    }
}

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固