2017 © Pedro Peláez
 

library apiary-publisher

CLI and PHP interface for publishing Apiary Blueprints

image

mangoweb/apiary-publisher

CLI and PHP interface for publishing Apiary Blueprints

  • Tuesday, April 26, 2016
  • by Mikulas
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Apiary Publisher

Downloads this Month Stable version, (*1)

Apiary Publisher provides a simple CLI and PHP interface for publishing API Blueprints to Apiary., (*2)

Installation

Use composer:, (*3)

$ composer require mangoweb/apiary-publisher

Usage example

Symfony Console

Register Mangoweb\ApiaryPublisher\Bridges\SymfonyConsole\ApiaryPublishCommand to your Symfony Console application., (*4)

$app = new Symfony\Component\Console\Application();
$app->add(new Mangoweb\ApiaryPublisher\Bridges\SymfonyConsole\ApiaryPublishCommand);
# bin/console apiary:publish --name <apiName> --token <apiToken>                    <blueprintPath>
$ bin/console apiary:publish --name pollsapi  --token 874887d6ecd0b106a47448c5beca1 blueprint.apib

CLI

# apiary-publish <apiName> <apiToken>                    <blueprintPath>
$ apiary-publish pollsapi  874887d6ecd0b106a47448c5beca1 blueprint.apib

PHP

$apiName = 'pollsapi';
$apiToken = '874887d6ecd0b106a47448c5beca1';
$code = file_get_contents(__DIR__ . '/blueprint.apib');

$publisher = new ApiaryPublisher($apiName, $apiToken);
$publisher->publish($code);

License

MIT. See full license., (*5)

The Versions

26/04 2016

dev-master

9999999-dev

CLI and PHP interface for publishing Apiary Blueprints

  Sources   Download

MIT

The Development Requires