Download the PHP package ftm-pm/media-server without Composer

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

MediaServer

The MediaServer is a micro application that receives an image file with filters(or simple file) and returns the path to this image and a collection of images with applied filters (or path for simple file).

Russian documentation here.

Setup

The MediaServer is a symfony/skeleton application with packages for uploading and cropping images. Some bundles:

Installation

Run the Composer command to create a new project

Configuration

After installing, you need to set environment variables. You can see variables in the .env file.

Next step, run command to update database.

In MediaServer, authorization was developed using JWT. You can see documentation here.

For create a new user, you can use any REST client. You should send a new request to http://my-project/api/register with parameters:

or using curl

After the confirmation email, get token. Send a new request to http://my-project/api/token:

or using curl

The MediaServer API returns two fields:

For authorization, you must to send header for any request: Authorization: Bearer your_token.

Use

The MediaServer API can create(load, crop...) and remove images. curl -X POST http://my-project/api/images ... - to create curl -X DELETE http://my-project/api/images/id ... - to delete by id

Simple loading

For create a new image, you can send a new post request with parameter imageFile:

The MediaServer API returns one field with the path to the source image:

Create preview

You can create a different preview for image using LiipImagineBundle. In the api, the previews parameter is an array consisting of LiipImagineBundle filter configurations.

For example, creating a small preview:

The MediaServer API returns the path to the source image, as well as a previews collection:

Download simple file

For create a new document, you can send a new post request with parameter documentFile:

The MediaServer API returns the path to the source document:

What's inside

It's the symfony 4 skeleton with the following bundles:

Feedback

License MIT.


All versions of media-server with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-iconv Version *
gesdinet/jwt-refresh-token-bundle Version ^0.3.2
gfreeau/get-jwt-bundle Version ^2.0
guzzlehttp/guzzle Version ^6.3
lexik/jwt-authentication-bundle Version ^2.4
liip/imagine-bundle Version 2.0.x-dev
nelmio/cors-bundle Version ^1.5
sensio/framework-extra-bundle Version ^5.1
symfony/console Version ^4.0
symfony/flex Version ^1.0
symfony/form Version ^4.0
symfony/framework-bundle Version ^4.0
symfony/lts Version ^4@dev
symfony/maker-bundle Version ^1.0
symfony/monolog-bundle Version ^3.2
symfony/orm-pack Version ^1.0
symfony/security-bundle Version ^4.0
symfony/serializer Version ^4.0
symfony/swiftmailer-bundle Version ^3.2
symfony/twig-bundle Version ^4.0
symfony/validator Version ^4.0
symfony/yaml Version ^4.0
vich/uploader-bundle Version ^1.7
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 ftm-pm/media-server contains the following files

Loading the files please wait ....