Download the PHP package livetyping/hermitage without Composer

On this page you can find all versions of the php package livetyping/hermitage. 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 hermitage

Hermitage

How often do you have to store images that were uploaded by users? Probably, very often. Putting these images into mobile applications is not so simple, because there are many devices with different parameters. A solution comes with Hermitage.

Hermitage is a micro-service based on Slim. It provides storage, delivery and modification of your images for clients and devices you want. Hermitage can:

And all of it is out of the box. Amazing! In addition, Hermitage is very simple and easy to use. The information bellow will cover the details. So, let's begin!

Installation

At first, you will need to install a composer lib and after that - to add a config file, then create an index file for your web-server and set environment variables. You can do it either by hand, or by using pre-setted skeleton (Hermitage Skeleton) and skip this section.

Run the Composer command to install:

Config file

You can put your config in config/main.php or so.

Environment variables

Copy the .env.example file to a local .env and configure it:

The local .env file looks like this:

NOTE: Set AUTH_SECRET to some random string.

Index file

You can put it in public/index.php or so.

REST API

Hermitage provides a simple API so you could upload, download and delete your images.

Signing write requests

To write to Hermitage a user agent will have to be specified by two request headers: X-Authenticate-Signature and X-Authenticate-Timestamp.

X-Authenticate-Signature is, like the access token, an HMAC (also using SHA-256 and the secret key).

The data for the hash is generated with the following elements:

These elements are concatenated in the previous order with | as a delimiter character, and the hash is generated with the secret key. The following snippet shows how it can be accomplished with PHP when deleting the image:

Upload

results in:

Delete

Deleting images from Hermitage can be done by requesting image's URIs with HTTP DELETE.

Get

Getting an original (optimized) version of the image:

Getting another version of the image:

where <version> is the version name of the image from config file (like "small", "thumb", etc.)

License

Hermitage is licensed under the MIT license.

See the LICENSE file for more information.


All versions of hermitage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-apcu Version *
slim/slim Version ~3.4
php-di/slim-bridge Version ~1.0
doctrine/cache Version ~1.4
monolog/monolog Version ~1.19
simple-bus/message-bus Version ~2.2
vlucas/phpdotenv Version ~2.0
league/flysystem Version ~1.0
league/flysystem-aws-s3-v3 Version ~1.0
league/flysystem-cached-adapter Version ~1.0
nesbot/carbon Version ~1.21
frostealth/php-shortid-helper Version ~1.0
slim/http-cache Version ~0.3
intervention/image Version ~2.3
beberlei/assert Version ~2.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 livetyping/hermitage contains the following files

Loading the files please wait ....