Giter VIP home page Giter VIP logo

buuurst_dev_php's Introduction

drecom/buuurst_dev_php

BuuurstDev service PHP client This client currently supports Laravel framework only.

Installation

Install from composer

$ composer require drecom/buuurst_dev_php

Install from git

Add repository to your project's composer.json

   ...
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/drecom/buuurst_dev_php"
        }
    ],
    ...
$ composer install

Configuration(Laravel middleware)

Add below to app/Http/Kernel.php

    protected $middleware = [
        ...
        \BuuurstDev\Laravel\Middleware::class,
    ];

Then, Create configuration file config/buuurst_dev.php

<?php
return [
    /*
|--------------------------------------------------------------------
| Buuurst dev configurations
|--------------------------------------------------------------------
*/

    'enabled' => env('BUUURST_DEV_ENABLED', true),
    'collector_url' => env('BUUURST_DEV_COLLECTOR_URL', 'https://lambda-public.buuurst.dev/put-request-log'),
    'project_id' => env('BUUURST_DEV_PROJECT_ID', 'YOUR_PROJECT_ID'),
    'service_key' => env('BUUURST_DEV_SERVICE_KEY', 'YOUR_SERVICE_KEY'),
    'custom_headers' => env('BUUURST_DEV_CUSTOM_HEADERS', []),
    'ignore_paths' => env('BUUURST_DEV_IGNORE_PATHS', []),
];
  • buuurst_dev.enabled
    • switch enabled/disabled this middleware
  • buuurst_dev.project_id
    • loadtest target project id
  • buuurst_dev.service_key
    • get at account info page in BUUURST.DEV BETA
  • buuurst_dev.custom_headers (optional)
    • specify custom HTTP header names
  • buuurst_dev.ignore_paths (optional)
    • ignore sending request log when request path is in ignore_paths

buuurst_dev_php's People

Contributors

gussan avatar

Watchers

ohr486 avatar  avatar hiracy SRE avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.