Download the PHP package actualreports/pdfgeneratorapi-laravel without Composer

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

PDF Generator API for Laravel

This Laravel package creates controllers and routes to easily use the PDF Generator API service. It also includes javascript interface to print and download generated files, and to open templates in the editor view.

Install

Require this package with composer using the following command:

If you don't use Laravel 5.5 auto-discovery, add the service provider and the alias to config/app.php. If you run Laravel 5.5 this is done automatically.

Add provider

Add alias

Publishes configuration file to your config folder (config/pdfgeneratorapi.php)

Publishes javascript to your assets folder (resources/assets/vendor/pdfgeneratorapi/index.js)

Configuration

Add configuration to your .env file

If "PDF_GENERATOR_USE_DATA_URL" is set to true then we send an url to your data file instead of sending the data in request body. This feature exists because of the url length limitations. When we redirect user to the editor view with json data in query param then we have are limited to browser url length and the data string can be incomplete.

To make this feature work you need to link your public folder. Data files are saved to /storage/app/public/pdfgenerator

Usage

We have included the javascript interface that makes calls to routes defined below and displays the result in browser. If you need more flexibility you can create your own front end interface that use the routes.

Data Repository

The main controller depends on ActualReports\PDFGeneratorAPILaravel\Repositories\DataRepository to get the data that is sent to PDF Generator service. By default the data repository looks for the "data" parameter in request using Input::get('data').

You can add your own DataRepository by implementing interface ActualReports\PDFGeneratorAPILaravel\Contracts\DataRepository and overriding the binding in your AppServiceProvider.php register() function.

User Repository

The main controller depends on ActualReports\PDFGeneratorAPILaravel\Repositories\UserRepository to generate unique workspace identifier for logged in user.

You can add your own UserRepository by implementing interface ActualReports\PDFGeneratorAPILaravel\Contracts\UserRepository and overriding the binding in your AppServiceProvider.php register() function.

Routes

Available routes

JavaScript interface

Init javascript interface

Fetches list of available templates

Executes print command that generates the document and opens browser print dialog

Executes download command that generates the document and starts download automatically

Executes inline command that generates the document and opens it in new tab/window

Opens new tab/window with template editor

Creates a copy of a given template and opens new tab/window with template editor


All versions of pdfgeneratorapi-laravel with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5.1
php Version ~5.6|~7.0
actualreports/pdfgeneratorapi-php 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 actualreports/pdfgeneratorapi-laravel contains the following files

Loading the files please wait ....