shimomo/laravel-ping
最新稳定版本:2.3.0
Composer 安装命令:
composer require shimomo/laravel-ping
包简介
Ping for Laravel.
README 文档
README
Installation
Install via Composer.
$ composer require shimomo/laravel-ping
Add to config/app.php.
<?php return [ // ... 'providers' => [ // ... Shimomo\Laravel\PingServiceProvider::class, ], // ... 'aliases' => [ // ... 'Ping' => Shimomo\Laravel\PingFacade::class, ], ];
Usage
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; /** * @author shimomo */ class PingController extends Controller { /** * @return string */ public function execute() { if ($latency = \Ping::execute('https://example.com/')) { return $latency . 'ms'; } return 'Not exist.'; } }
License
Laravel Ping is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 3.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-14