Download the PHP package jacklul/e621-api without Composer

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

Due to many changes in the new API this project has been discontinued.

e621 API Build Status

Simple wrapper for e621.net API written in PHP, uses Guzzle under the hood.

This class is currently in development, most of the stuff was not tested and not every method in entities is implemented yet.

Table of Contents

Instructions

Installation

Install this package through Composer - composer require jacklul/e621-api.

Usage

You can pass Guzzle's options applied only for a single request as a second parameter:

By default library will throw exceptions on connection failures or errors, you can disable this by using:

When disabled - all error messages will be available via $request->getError() method and $request->getReason() will contain a message that you can display to the user.

Logging in

Some actions require logging in to execute, to authenticate you can either pass login and password_hash (API key) parameters with each request or set it globally:

Debugging

You can set progress handler through Guzzle's options while initializing the object, per single request or after:

Similar with a debug logging function:

This will write the output to php://temp until the request finishes and then it will flush it to your handler, if you need to use different approach then set your handler through Guzzle's options.

API Methods

See official API documentation.

Posts

Tags

Artists

Comments

Blips

Wiki

Notes

Users

Dmail

Forum

Pools

Sets

Maintainers

Favorites

Tag History

Flag History

Tickets

Exceptions

jacklul\E621API\Exception\ConnectException

Is thrown when connection to e621.net API failed or timed out, in most cases it will also contain GuzzleHttp\Exception\ConnectException exception which might explain the issue ($e->getPrevious()).

jacklul\E621API\Exception\LoginRequiredException

Is thrown when executed method requires logging in but no login data was provided.

jacklul\E621API\Exception\E621Exception

Is thrown when something happens but it's none of the above.

Possible cases:

License

MIT License, for details see LICENSE.


All versions of e621-api with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5|^7.0
ext-json Version *
guzzlehttp/guzzle Version ^6.3
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 jacklul/e621-api contains the following files

Loading the files please wait ....