Download the PHP package memuya/fabdb-php-sdk without Composer

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

⚠️ Notice

https://fabdb.net is shutting down.

Flesh and Blood (fabdb.net) API library

A library to communicate with the fabdb.net API.

Installation

This library can be installed via composer.

Usage

The quickest way to get started is to use the Client through the FleshAndBlood class. FleshAndBlood is a wrapper to easily call all endpoints the fabdb.com API has to offer.

A new instance can be created by creating a Client object.

You can then pass the client to the FleshAndBlood instance.

Note that you can use the Client object directly to have more control. See examples below for more information.

Formatter

You can change the response format by passing a Formatter to the client. By default, JsonFormatter is used. This is used to also populate the Accept request header.

Please note that the API does not seem to honor anything but JSON in the Accept header. This means only JsonFormatter should be used.

List of formatters:

You can use a formatter via the contructor or the setter method:

List of Cards

Returns a paginated list of cards. The list of cards can be filtered down using the CardsConfig object. See below example for all filtering options. All filtering options are optional. If a filter is not valid, an InvalidCardConfigException exception in thrown. For a full list of options please see the API documentation.

FleshAndBlood object example:

Client object example:

Return a Card

Search for a card using its identifier.

FleshAndBlood object example:

Client object example:

Decks

Return information on a given deck.

FleshAndBlood object example:

Client object example:


All versions of fabdb-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 memuya/fabdb-php-sdk contains the following files

Loading the files please wait ....