Download the PHP package navarr/verticalresponse without Composer

On this page you can find all versions of the php package navarr/verticalresponse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package verticalresponse

VerticalResponse API Wrapper

Latest Stable Version License Scrutinizer Total Downloads

Introduction

Everyone loves an API Wrapper! This one wraps the VerticalResponse API (v1).

VerticalResponse's own wrapper was pretty good - but in a PHP folder, with no composer support, strange class names, and everything else - I figured it was time to update it!

How to Use

Installation

Because I'm crazy, I tried to keep this library from having any opinions on what library to use for sending HTTP requests. That's neat, because it means you can throw in your own HTTP client if you want to.

On that note, however, I also made it default to using Guzzle if you didn't specify one - so that you could keep the constructor as clean as possible.

HOWEVER, I didn't want all of Guzzle packaged with every installation of this - so it's only a suggested dependency.

TL;DR: To use this library, it's recommended you composer require navarr/verticalresponse navarr/verticalresponse-guzzle.

Usage in Code

You will first have to get an Authorization Token from the VerticalResponse OAuth 2.0 API Endpoint. This is left as an exercise to the reader.

Once you've done that, just pipe it in to the VerticalResponse Client, like so:

$vr = new \VerticalResponse\Client($authorizationToken);
$response = $vr->get('lists');
var_dump($response);

For a new VerticalResponse account, the output would look something like this:

class stdClass#35 (3) {
  public $url =>
  string(47) "https://vrapi.verticalresponse.com/api/v1/lists"
  public $items =>
  array(1) {
    [0] =>
    class stdClass#29 (2) {
      public $url =>
      string(62) "https://vrapi.verticalresponse.com/api/v1/lists/25288767452069"
      public $attributes =>
      class stdClass#22 (4) {
        ...
      }
    }
  }
  public $links =>
  class stdClass#33 (1) {
    public $up =>
    class stdClass#36 (1) {
      public $url =>
      string(41) "https://vrapi.verticalresponse.com/api/v1"
    }
  }
}

The current version of this library does not provide any sort of ActiveRecord utilities for managing the data from this API. That, too, is left as an exercise to the reader.


All versions of verticalresponse with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
psr/http-message Version ^1.0
navarr/verticalresponse-provider-implementation Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package navarr/verticalresponse contains the following files

Loading the files please wait ...