Download the PHP package mesd/phantasos-client-bundle without Composer

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

Phantasos Client Bundle

The purpose of this Symfony bundle is to provide a set of tools to make connecting to our simple media server, Phantasos.

Getting Started

To install the bundle with your Symfony application, use composer to add the client to your application.

Then add the bundle to your app kernel.

After that, the settings for the client need to be configured in your config.yml file.

The host is where the root of the Phantasos's rest api is, and apikey is the generated apikey for this application from Phantasos. The ready callback route is optional and takes the name of one of your application's named symfony routes to callback when the media done processing and is ready for playback. An example of what this action will look like is below. The method for the action needs to be POST, and the media id for the media that the call is being made about is in the body of the request under the name of 'media_id'.

If everything went as expected, then your application is ready to use the client.

Usage

The client bundle will add a new service to the dependency injection container called 'mesd_phantasos_client' that will return the Phantasos Client preconstructed with the host and apikey information needed to make calls to the media server.

Uploading

Uploading to Phantasos is a two step process. First an upload ticket needs to be retrieved from Phantasos along with an upload route. Then the end user will directly upload the media to media server. To obtain an the upload ticket information from the client, do as follows.

After obtaining the ticket and persisting the information you want to save, provide the user with the a simple upload form in html that has the action pointing to the url provided by in the upload ticket. Note, that the media server will return a set of responses back when uploading, so you may want to use some javascript on the end user side to track these in case an error is thrown or to mark that the media was successfully uploaded on the using application side.

Playback

The easist way to have playback for the media is to embed the following twig directive in your template where you wish to display the media, where 'myMediaId', is the media id of the media you wish to display and width and height are the resolution in pixels you wish to display the media as.

The bundle can support PDFs, video, audio, and images, all the types of media currently supported by Phantasos.

Given that the support for streaming directly from the end user form the server is not currently finished or in place, the client my change later in regards to playback.


All versions of phantasos-client-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.1
guzzlehttp/guzzle Version ~5.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 mesd/phantasos-client-bundle contains the following files

Loading the files please wait ....