Download the PHP package mainstreamct/pettenvolk-api without Composer

On this page you can find all versions of the php package mainstreamct/pettenvolk-api. 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 pettenvolk-api

Pettenvolk API for Laravel

Depreciation notice: the Pettenvolk API is moving to Laravel Passport authentication. For authenticating your users using their Pettenvolk account, refer to the Passport documentation. A complete overview of API endpoints for PettenvolkAPIv2.0 is now available at https://pettenvolk.com/developer/pettenvolk-api.

Recommended tools to complete this integration:
β˜•πŸŽΆπŸ’»β°

This is the official package to integrate the Pettenvolk API (a.k.a. Chameleon) with your Laravel application. API keys can be acquired using the Pettenvolk Developer Tools at https://www.pettenvolk.com/developer (currently only available to invited testers). Docs for this API can be found at https://chameleon.pettenvolk.com.

Table of contents

  1. Installation
    1. Using Composer
  2. Configuration
  3. Usage
    1. Authentication
    2. Fetching users
  4. Bugs
  5. Some final notes

Installation

Using Composer

First of all, install the package. Y'all know the drill, but as a reminder:

After installing, edit your config/app.php:

...and execute the following command:

Configuration

  1. Get your API key at https://www.pettenvolk.com/developer
  2. Create PETTENVOLK_API_KEY in your .env file and store the API key in it

Usage

Authentication

Before you can authenticate users using the Pettenvolk API, you must add two lines to your create_users_table migration (or add the corresponding columns to your Users table):

Note that this API token is reset at login and is required to perform any other interaction with the API, so store it carefully.

Authenticating users with Pettenvolk Passport is a breeze. For authentication using only Pettenvolk Passport, you could do something like this:

Fetching users

Getting a user's details from the API is easy:

This returns a user's , , , (background image), , (boolean), , and . Please note that in order to perform this request, a user needs to be logged in and have an API token. This token can optionally be passed by including an parameter (it's taken from the Auth facade by default).

Bugs

Found a bug? Message us at [email protected] or fill out the bug report form in your Pettenvolk Tester Environment.

Some final notes

This API is constantly monitored and implementations are often checked on compliance to the API terms. We store every request made to this API, together with some additional details like returned status codes, in order to ensure the best possible experience when using our API service.

Want to know how to fully comply to the API terms? Read https://www.pettenvolk.com/legal/api for more information.

Copyright Β© 2018 MainstreamCT
This package is published under the GNU AGPLv3 license. Additional API terms apply.


All versions of pettenvolk-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle 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 mainstreamct/pettenvolk-api contains the following files

Loading the files please wait ....