Download the PHP package adrian-mid/humhub-klipy without Composer

On this page you can find all versions of the php package adrian-mid/humhub-klipy. 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 humhub-klipy

HumHub Klipy

Code Quality

Add GIF search and attachment to HumHub posts and comments using the KLIPY API.

Features

Requirements

Installation

Use a separate Composer project in protected/modules/. The module installs to protected/modules/humhub-klipy/ and its dependencies go to protected/modules/vendor/, leaving HumHub's protected/vendor/ tree untouched.

Do not run composer init or composer require at the HumHub web root.

One-time setup - copy the Composer scaffold (once per HumHub instance):

Install or update:

Enable HumHub Klipy under Administration → Modules.

Configure the module under Administration → Settings → HumHub Klipy.

Configuration

Setting Description
Enable GIF picker Activates the GIF button on post and comment forms
KLIPY API Key Your KLIPY API key
API Key Environment Variable Optional env var name (e.g. KLIPY_API_KEY)
Locale Region code such as en_US
Content filter KLIPY safety filter (off, low, medium, high)
Download quality KLIPY rendition to attach: full (gif), mediumgif, or tinygif (via media_filter)
Maximum attach size (MB) Server-side reject limit when downloading GIFs (1–50 MB, default 10)

Environment variables

When an environment variable name is configured and the value exists on the server, it takes precedence over the database-stored API key.

How it works

HumHub exposes file upload menus on post and comment forms through pluggable file handlers. This module registers a GIF handler that opens a KLIPY search modal.

When a user selects a GIF:

  1. The browser requests /humhub-klipy/gif/attach with the KLIPY CDN URL.
  2. The server downloads the GIF from an allowed KLIPY host.
  3. HumHub stores it through the standard file upload pipeline.
  4. The file preview and fileList[] hidden inputs are updated exactly like a manual upload.

GIF search requests are proxied through HumHub so the API key stays on the server. The browser JavaScript config only receives HumHub endpoint URLs and the locale - never the KLIPY API key.

Development

This module is maintained with strict static analysis, coding standards, and unit tests:

Run all checks:

CI runs the same checks on push and pull requests via GitHub Actions.

License

GPL-3.0-or-later - see LICENSE.

Changelog

See CHANGELOG.md.


All versions of humhub-klipy with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
composer/installers Version ^2.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 adrian-mid/humhub-klipy contains the following files

Loading the files please wait ...