2017 © Pedro Peláez
 

library api-list

A library for listing and discovering runtime properties of APIs

image

openclerk/api-list

A library for listing and discovering runtime properties of APIs

  • Monday, September 11, 2017
  • by soundasleep
  • Repository
  • 1 Watchers
  • 0 Stars
  • 117 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

openclerk/api-list Build Status

A library for listing and discovering runtime properties of APIs, (*1)

Installing

Include openclerk/api-list as a requirement in your project composer.json, and run composer update to install it into your project:, (*2)

{
  "require": {
    "openclerk/api-list": "dev-master"
  }
}

Using

If you are using something like component-discovery, you can define a new API for listing all runtime discovered APIs using the ApiListApi abstract superclass:, (*3)

class MyApiListApi extends \Apis\ApiList\ApiListApi {

  function getAPIs() {
    return \DiscoveredComponents\Apis::getAllInstances();
  }

}

You can also get all runtime API information like so:, (*4)

$lister = new \Apis\ApiList\ApiLister();
$apis = $lister->processAPIs(\DiscoveredComponents\Apis::getAllInstances());

foreach ($apis as $api) {
  print_r(array(
    $api['endpoint'],
    $api['title'],
    $api['description'],
    $api['params'],   // array
    // ...
  ));
}

The Versions

11/09 2017

dev-master

9999999-dev

A library for listing and discovering runtime properties of APIs

  Sources   Download

The Requires

 

The Development Requires

11/09 2017

0.1.0

0.1.0.0

A library for listing and discovering runtime properties of APIs

  Sources   Download

The Requires

 

The Development Requires