pauljulio/avrs-php-api

API consumer with examples for popular use cases

1.0.2 2019-07-19 04:44 UTC

This package is auto-updated.

Last update: 2024-09-19 16:13:24 UTC


README

A Sample PHP-Based API Consumer

author: Paul Hulett Paul.Hulett@cdk.com

The any-OS, from-scratch guide:

cd /var/www/public/
curl -sS https://getcomposer.org/installer | php
php composer.phar install
  • copy the setting.json example to the proper location, then edit it
cp examples/_settings.json examples/settings.json
vim examples/settings.json
# or use your editor of choice
  • command-line execution example

vagrant@avrsapi:/var/www/public$ php -a

Interactive mode enabled

php > require_once 'vendor/autoload.php';

php > $example = new PaulJulio\AvrsApi\Examples\FeeCalculator();

php > $example->run();

To Do

  • needs browser-based interaction added
  • needs unit tests