Download the PHP package beyerz/api-adapter-bundle without Composer

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

Api Adapter Bundle

About

Api Adapter Bundle for Symfony2

This bundle provides a gateway and adapter pattern for connecting to thrid party apis.

Using JMSSerializer, you will simply need to provide the data class to be populated with the api response.

Installation

Composer (Recommended)

composer require beyerz/api-adapter-bundle

Application Kernel

Add BeyerzApiAdapterBundle to the registerBundles() method of your application kernel: Due to the way that this bundle is compiled and the fact that other bundles could require it, please ensure that the bundle is the last parameter in the array.

Usage

Config

config.yml

Files and their purpose

Manager

In the manager you would write any business logic that is related to api, but not directly connected to the api. For example, if you wanted to save a copy of every response that the api returns, you could do this here.

The manager is essentially the only class that your system should work against in order to interact with the api.

The manager should have the gateway in the constructor

Adapter

The adapters job is to translate the api response into a php class. You select the adapter based on your api response type. For rest apis it is most common to use the JsonAdapter.

Gateway

We provide base gateway classes, but it is suggested that you extend from one of our base classes and add the api functions that you intend on using.

Response Entity

A response entity, is a data class that used JMSSeriliazer definitions to translate the API response. This is the class that will be passed to the gateway request from the manager.

In the event that a class is not passed, the plain Response will be returned to the manager. Sometimes this is useful when building out the api.

TODO

Add a sample of how it works


All versions of api-adapter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
symfony/symfony Version 2.8.*
jms/serializer-bundle Version ^1.0.0|^2.0.0
besimple/soap Version 0.2.6
csa/guzzle-bundle Version ^2.0|^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 beyerz/api-adapter-bundle contains the following files

Loading the files please wait ....