Download the PHP package shardimage/shardimage-php without Composer

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

Shardimage PHP package

Packagist Build Status Packagist GitHub issues Packagist Version

Introduction

Official PHP package for using Shardimage application.

Installation

Install With Composer

or add

to your composer.json file and run update.

Quick start

Simple examples to use the package. For more details, please read our official documentation >>>

Configuring the Client

Configure the Client with information from our website to make connection with the Shardimage API.

Getting access datas

Your apiKey and apiSecret is available on Shardimage api page.

Access token can be created through Shardimage API, it requires a configured client with apiKey and apiSecret.

Now we can configure an another Client for token image hosting:

Manage clouds with API

To upload and store images, cloud must to be created.

You can add features to your cloud to make it efficient and secure! To view the full list of our features, please check the documentation >>>

Notice: The deliverySecureUrl settings will work only, if you set up the client with the security information: image secret hash or access token/acces token secret.

Send to the API to create it.

If you already have clouds, you can list them:

Manage images with API

To upload images to a cloud, or list from it, we need to use the ID of the cloud. The Shardimage PHP package is capable to upload images through single or multithreads, if you have big amount of pictures.

Single thread:

If everything goes alright, the $result variable will contain shardimage\shardimagephp\models\image\Image object with the uploaded image datas.

Multithread upload is very similar, we need to turn on the defer option before the upload. Turning it off will send the collected datas.

Unwanted pictures can be deleted from the system with two methods. Simple delete will delete one image by it's public ID and the cloud ID.

Other way is to delete images by their tags. In this case every images with the given tags will be deleted from the target cloud.

Using UploadBuilder

Using the builder class can make uploading easier by giving a developer friendly usage to build up upload parameters.

Hosting images

Hosting the uploaded images with the packgate is basically generating their URL. Using the UrlService class you can build up remote image URLs also to serve them through the Shardimage. Practically, the Shardimage will store only the original uploaded image. Every modification, transformation, conversion will applied through URL rules or cloud settings. For further information, please check the documentation >>>

Example for generation URL for stored image:

Basic security hash will be added to the URL only if you set up the imageSecret in your client config.

Changelog

All notable changes to this project will be documented in the CHANGELOG file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

License

Read more >>

Links


All versions of shardimage-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
shardimage/shardimage-php-api Version ^1.0
psr/log Version ^1.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 shardimage/shardimage-php contains the following files

Loading the files please wait ....