Download the PHP package isset/alfredo without Composer

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

Requirements

To take advantage of Online PDF Converter's API you'll need to install the client in your project and have access to our system. There are two keys need to access the API, a:

Without these you won't be able to connect to our servers. Next is the client. This installation process will be explained in the next chapter.

Installation

At the moment the client library is not publicly available. Please contact us to obtain access to this library. The client library needs to be installed through Composer. Click here if you've never used Composer. (http://getcomposer.org/doc/00-intro.md)

Add the following to your composer.json file in the "require" section:

After you've added the requirement go to your terminal of choice and run the command: If you've installed Composer on your machine:

Otherwise:

Online PDF Converter's API will now be installed and added to Composer's autoloader.

Create Payload

The conversion of a PDF is done through a payload, which is send to the server. With our API it's possible to create a pdf from several different sources. Currently the available sources: HTML, Pdf and Url. These examples will show you how this it's done:

Attach A Source

Attach HTML

Attach Pdf

Attach Url

Set Callback Url

A callback url is only needed when working with queues. This url will be called with response of the conversion. It'll contain two items, named:

With the identifier it's possible to download the when it's converted. Here's an example of how to set the callback:

Method chaining

All the above methods could be chained together:

Change Converter Type

Our API is able to switch converter type which each payload. Available types:

This is how you can change the type:

Stream Payload

There are multiple ways to execute conversion. Streaming is one of them. When streaming you'll immediately get a response, but can't be stored by the server, only by the user. For this conversion you'll be needing the consumer and private key. Here is how you can stream a Pdf:

Queue Payload

To queue a pdf conversion you'll need to set a callback url on the payload, this is explained a couple of chapters back. After adding one or multiple sources and a callback url we'll pass the payload to our API.

The server will return a JSON string which contains an identifier and the response status. It could be helpful to save the identifier somewhere in a database. When the pdf has converted our server will send a POST request to the callback url with the same JSON string. If the response status states the converion is completed you'll be able to request the pdf like this:

The response from the method getQueueItem() will be the converted pdf. You could stream it like explained in the chapter above this one.


All versions of alfredo with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 isset/alfredo contains the following files

Loading the files please wait ....