treblle/treblle-api-tools-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

treblle/treblle-api-tools-laravel

最新稳定版本:0.0.1

Composer 安装命令:

composer require treblle/treblle-api-tools-laravel

包简介

A set of useful tools for building APIs in Laravel.

README 文档

README

Latest Version PHP Version Tests Total Downloads MIT Licence

Treblle makes it super easy to understand what’s going on with your APIs and the apps that use them. Just by adding Treblle to your API out of the box you get:

  • Real-time API monitoring and logging
  • Auto-generated API docs with OAS support
  • API analytics
  • Quality scoring
  • One-click testing
  • API management on the go
  • Supports Laravel Vapor and Laravel Octane
  • and more...

A set of useful tools for building APIs in Laravel.

Requirements

  • PHP 8.2+
  • Laravel 10+

Installation

composer require treblle/treblle-api-tools-laravel

Usage

Headers

Authorization

You can use the Authorization Header can be used like the following:

use Treblle\Tools\Http\Enums\Headers\AuthScheme;
use Treblle\Tools\Http\Headers\Authorization;

$auth = new Authorization(
    type: AuthScheme::BEARER,
    credentials: 'YOUR_API_TOKEN_HERE',
);

// Turn the header into an array
$array = $auth->toArray();
//[
//    'type' => AuthScheme::BEARER,
//    'credentials' => 'YOUR_API_TOKEN_HERE'
//]

// Turn the header into a header
$header = $auth->toHeader();
//[
//    'Authorization' => 'Bearer YOUR_API_TOKEN_HERE',
//]

Support

If you have problems of any kind feel free to reach out via https://treblle.com or email hello@treblle.com, and we'll do our best to help you out.

License

Copyright 2022., Treblle Limited. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

统计信息

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

GitHub 信息

  • Stars: 13
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-27