2017 © Pedro Peláez
 

library capiture

A very simple interface to track API calls.

image

silktide/capiture

A very simple interface to track API calls.

  • Tuesday, May 22, 2018
  • by jb000
  • Repository
  • 3 Watchers
  • 0 Stars
  • 584 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 96 % Grown

The README.md

cAPIpture

CircleCI, (*1)

A very simple interface to track API calls., (*2)

cAPIpture is used in various Silktide API client libraries with a simple goal of collecting data., (*3)

There is no implementation here but this data could be used for various purposes including billing, usage reporting etc., (*4)


Getting started

Install from composer, (*5)

composer require silkitde/capiture

Trait usage, (*6)

There is an optional trait which can make life slightly easier by setting up the scaffolding., (*7)

Don't forget to set your implementation through the setApiUsageTracker() method., (*8)

<?php 


use Silktide\Capiture\ApiUsageTracker;

class ApiClient
{
    use ApiUsageTracker;

    public function makeRequest()
    {
        $this->trackApiUsage('my-api','https://my.api.com/v1/exciting', true, ['additional' => 'optional-metrics']);
    }
}

The Versions

22/05 2018

dev-master

9999999-dev

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

22/05 2018

1.2.10

1.2.10.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

25/04 2018

1.2.9

1.2.9.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

25/04 2018

1.2.8

1.2.8.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

25/04 2018

1.2.7

1.2.7.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

25/04 2018

1.2.6

1.2.6.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.5

1.2.5.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.4

1.2.4.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.3

1.2.3.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.2

1.2.2.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.1

1.2.1.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.2.0

1.2.0.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

24/04 2018

1.1.0

1.1.0.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton

23/04 2018

1.0.0

1.0.0.0

A very simple interface to track API calls.

  Sources   Download

GPL-2.0-or-later

The Requires

  • php >=7.0

 

The Development Requires

by James Banton