Download the PHP package j0k3r/php-imgur-api-client without Composer

On this page you can find all versions of the php package j0k3r/php-imgur-api-client. 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 php-imgur-api-client

PHP Imgur API Client

CI Coverage Status Total Downloads License

Object Oriented PHP wrapper for the Imgur API.

Uses Imgur API v3.

Information

Composer

Download Composer

Add the library details to your composer.json

Install the dependency with

Basic usage

The API calls can be accessed via the $client object

Documentation

Basic information

This client follow the same tree as the Imgur API.

Here is the list of available endpoints: account, album, comment, custom gallery, gallery, image, conversation, notification, memegen & topic.

You can access each endpoint using the api() method:

All available methods for each endpoints are in the folder Api. They mostly follow the description name in the Imgur doc. Here are few examples:

Uploading an image

If you want to upload an image you can use one of these solutions:

or

or

Pagination

For any API call that supports pagination and is not explicitly available via the method parameters, it can be achieved by using the BasicPager object and passing it as the second parameter in the api() call.

Here is a real life example if you want to retrieve all your available images of an account:

This pager is really basic:

NOTE: /gallery endpoints do not support the perPage query string, and /album/{id}/images is not paged.

Please, read the Imgur doc about it.

Image id or Album id ?

When you got an Imgur link it's almost impossible to be 100% sure if it's an image or an album. That's why we have an endpoint which might fix that by first checking an id as an image and if it's fail, test it as an album:

License

php-imgur-api-client is licensed under the MIT License - see the LICENSE file for details


All versions of php-imgur-api-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
guzzlehttp/guzzle Version ^7.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 j0k3r/php-imgur-api-client contains the following files

Loading the files please wait ....