Download the PHP package mrgla55/tabapi without Composer

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

Tabapi

TAB Studio REST API Client for Laravel 5

Laravel Latest Stable Version Total Downloads License Build Status

TAB REST API client for Laravel.

While this package is built for Laravel, it has been decoupled so that it can be extended into any framework or vanilla PHP application. Currently the only support is for Laravel 4, 5 and Lumen.

Installation

Tabapi can be installed through composer. Open your composer.json file and add the following to the require key:

Next run composer update from the command line to install the package.

Laravel Installation

Add the service provider and alias to your config/app.php file:

For Laravel 4, add mrgla55\Tabapi\Providers\Laravel4\TabapiServiceProvider in app/config/app.php. Alias will remain the same.

Lumen Installation

Then you'll utilize the Lumen service provider by registering it in the bootstrap/app.php file.

Configuration

You will need a configuration file to add your credentials. Publish a config file using the artisan command:

You can find the config file in: config/tabapi.php

For Lumen, you should copy the config file from src/config/config.php and add it to a Tabapi.php configuration file under a config directory in the root of your application.

For Laravel 4, run php artisan config:publish mrgla55/Tabapi. It will be found in app/config/mrgla55/Tabapi/config.php

Getting Started

Setting up a TAB Studio Account

  1. Go to https://studio.tab.com.au/
  2. You will need to have a valid TAB account number
  3. Click register and complete the form. Registration approval normally takes 2-3 days.
  4. Log in to TAB Studio
  5. Click "Settings" from the top right menu
  6. Note your Client Id and Client Secret and put them into your .env file as TAB_CLIENT_ID and TAB_CLIENT_SECRET, or update your tabapi config file.

Setup

Creating routes

Test API flow

API Requests

All resources are requested dynamically using method overloading.

First, determine which resources you have access to by calling:

Result:

Next, call resources by referring to the specified key. Replace the colon ':' with and underscore '_'. Embedded parameters in the base url are replaced with arguments. Any left over arguments are added to the query string.

For instance:

or

Custom Apex endpoints

For nested links or to call direct, you can use the custom() method for consuming them.

Additional options and parameters can be passed in like this:

Read Creating REST APIs using Apex REST for more information.

For more information about Guzzle responses and event listeners, refer to their documentation.


All versions of tabapi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
guzzlehttp/guzzle Version 6.*
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 mrgla55/tabapi contains the following files

Loading the files please wait ....