Download the PHP package matpompili/flarum-imgur-upload without Composer

On this page you can find all versions of the php package matpompili/flarum-imgur-upload. 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 flarum-imgur-upload

flarum-imgur-upload

flarum-imgur-upload is a Flarum extension to support the upload of images to the popular website Imgur, and include the direct link of the image in the post.

Flarum is a free, open-source forum software built with PHP and Mithril.js.

Imgur is the best place to share and enjoy the most awesome images on the Internet.

Features

With flarum-imgur-upload you can attach as many images as you want while writing your post, and it will automatically add the link to the uploaded image in your post!

It uses the Markdown language to include images, so you can also copy the link for other purposes.

You can also choose to resize images down to a maximum size before upload, reducing uploading times!

Install

The only way to get flarum-imgur-upload is with composer: in your flarum folder run

Configuration

Since flarum-imgur-upload uses Imgur API to upload your images, you will need an Imgur Client-ID. To get one simply register to the Imgur website, and register an application here. You need to choose a name for your application (e.g. My Forum), and select OAuth 2 authorization without a callback URL (as shown below). Imgur application configuration demo

Once your application, which can be even your own website, has been registered, your Client-ID will be available here. Simply put it in the configuration of the extension, in your admin page.

From there you can also set the maximum image size. If images are bigger than that they will be resized (keeping aspect raio) before being uploaded.

Usage

While writing a post, or opening a new discussion, click on the Attach button. This will prompt the file chooser, if you're on a computer, or the gallery and/or camera if you're on mobile. After the image to upload has been selected, the uploading process will start (which may take some time, based on the image size and on connection quality). Once the process will be completed, the code to include the image will be automatically added in your composer. Have fun!


All versions of flarum-imgur-upload with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^0.1.0-beta.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 matpompili/flarum-imgur-upload contains the following files

Loading the files please wait ....