Download the PHP package ynloultratech/graphql-media-service without Composer

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

graphql-media-service

To build your application you probably need images, video's or maybe even a presentation too. The GraphQL Media Service handles all those media assets and centralizes them so you can find your content just the way you like it: fast and efficiently.

Installation

Install using composer:

composer require graphql-media-service

How its works?

Usage

The following steps assume you have a configured GraphQLAPI using graphql-bundle.

Add the following config in your config.yml

`

For performance reasons public files are served directly thought the http server, then the base_url must be a valid public accessible folder where the files are located.

Create a new entity File

``

At this point you must have a mutation called uploadFile in your graphql schema, see graphql-multipart-request-spec for details of using multipart form data to upload files.

Assign uploaded files to existent object

Upload files to the server is only the first step, you must able to link that files to existent objects. For example link a uploaded photo to the user profile.

Create a field to store the relation on a existent entity:

``

Note the annotation @MediaService\AttachFile() is required on properties linked to Files in order to resolve some parameters like the url in runtime.

@TODO ...


All versions of graphql-media-service with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
symfony/form Version ^3.4
symfony/framework-bundle Version ^3.4
doctrine/annotations Version ^1.5
doctrine/common Version ^2.8
myclabs/deep-copy Version ^1.7
mindplay/readable Version ^1.1
mtdowling/jmespath.php Version ^2.4
ynloultratech/graphql-bundle Version ^1.4
spatie/url-signer 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 ynloultratech/graphql-media-service contains the following files

Loading the files please wait ....