Download the PHP package voquis/pdfapi without Composer

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

Build Status codecov

Introduction

A PHP API for generating business documents in PDF format.

Usage

Once the API is running using one of the methods below, the following endpoints are available:

Sample invoice requests

Body data should be posted as raw content type.

Docker

To run the API as a Docker container, a single http endpoint needs to be exposed, for example to on the host machine:

To run in detached mode, add before the image name.

Development

The API uses the Laravel Lumen framework and makes use of voquis/pdflib, a library built on TCPDF.

Developing in Docker

First start a development container in detached mode and mount the source code as a volume:

To use the current directory instead of specifying the full local path, use . If using docker for windows, change paths to . Then connect to the running container in interactive mode () and to the TTY (-t). Note that if using git for Windows, the prefix may be required. If using CentOS/RHEL or other SELinux enabled distros, use (exclusive access to this container) or (shared with other containers) at the end of the volume mounts to set appropriate permissions, i.e. . See this StackOverflow question/answer for further details.

To disconnect and leave a container running use then .

Install and enable dependencies

Note that the base Docker PHP image has a utility for installing and enabling PHP extensions. The extension is used for parsing image logos in the header. The extension is used during tests and is not required for production (see for production optimisation).

Install tools

Install Xdebug and add config file. The xdebug extension is required for producing unit test coverage reports. The and options are only required if remote debugging will be used (port ).

Increase memory limit

Static code analysis (phpstan) may hit default PHP memory limits, to increase this, run the following. Note that this creates a new config file.

Install and run composer

Acquire the latest version of composer with and output () to system-wide binary path, following any redirects (). Update permissions to allow executing (). Instruct composer to check out from git with , this will allow development of any vendor libraries if required.

Configure writeable directories

Give apache permission to write to and sub-directories.

Configure Apache

Enable the apache2 module, then update the configs to change from default webroot directory to location of project files in mounted volume ().

Note that restarting apache2 will terminate the container so will need to run and then reconnect.

Contributing

Contributions are welcome in the form of issue reporting and pull-requests, please fork the repository with any proposed changes. Please ensure 100% unit test code coverage is maintained and that tests are run locally with before pushing your changes. To generate unit test coverage report, run . These commands are defined in under .


All versions of pdfapi with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
laravel/lumen-framework Version 5.8.*
vlucas/phpdotenv Version ^3.3
voquis/pdflib Version 0.0.3-alpha
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 voquis/pdfapi contains the following files

Loading the files please wait ....