Download the PHP package elife/api-sdk without Composer

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

eLife API SDK for PHP

This library provides a PHP SDK for the eLife Sciences API.

It includes code from the CsaGuzzleBundle for testing, which in the future will be a normal dependency (see csarrazi/CsaGuzzleBundle#169).

Dependencies

Running tests

To run all tests locally:

Installation

Execute composer require elife/api-sdk.

Usage (ApiClient)

The eLife\ApiSdk\ApiClient namespace provides separate clients for each part of the eLife API.

Each method on an API client represents an endpoint.

You can pass default headers to an API client, and/or to each API client method. You should provide an Accept header stating which versions you support.

API clients always return instances of GuzzleHttp\Promise\PromiseInterface, which wrap instances of eLife\ApiClient\Result, which in turn wrap the JSON response.

eLife\ApiClient\Result provides integration with the JMESPath (using jmespath.php), to allow easy searching of JSON responses.

Basic example

To list the Labs Post IDs that appear on the first page of the endpoint:


All versions of api-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
composer/package-versions-deprecated Version 1.11.99.2
elife/api-client Version dev-master
guzzlehttp/promises Version ^2.4.0
guzzlehttp/psr7 Version ^2.10.1
symfony/serializer Version ^5.0 || ^6.0 || ^7.0 || ^8.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 elife/api-sdk contains the following files

Loading the files please wait ...