Download the PHP package amattu2/avery-fpdf-labels without Composer

On this page you can find all versions of the php package amattu2/avery-fpdf-labels. 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 avery-fpdf-labels

Introduction

This is a PHP project to implement support for generating Avery.com label templates using FPDF.

Templates

Supported

The currently implemented templates are listed below.

Upcoming

There are plans to support the following templates but If you have an urgent need for a specific template to be supported, open a issue to let me know.

Feel free to contribute to the development effort by submitting a pull request for any of the above templates or any other templates you would like to see supported.

Usage

Install

Composer

To install via composer, follow the simple steps below.

NOTE: You can use any fork of FPDF you want as long as it implements the same methods as FPDF.

Then


Direct

If you choose to install without composer support, you can clone the repository directly. You will need to include FPDF also.

Then


Usage

See example.php for demonstration of usage.

Text Label

Use the addTextLabel method to add a text label to the template. The method accepts an array of strings, an optional alignment parameter, and optional row and column parameters. This would typically be used for address labels.

Image Label

Use the addImageLabel method to add an image label to the template. The method accepts a path to an image file and optional row and column parameters.

Custom Labels

The addCustomLabel method allows you to expand upon the current label types (e.g. adding barcodes). You must instantiate your own implementation of the custom label and pass it to this method.

The custom label must implement the LabelInterface interface. See /src/LabelInterface.php for more information.

Requirements & Dependencies


All versions of avery-fpdf-labels with dependencies

PHP Build Version
Package Version
Requires fpdf/fpdf Version ^1.85
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 amattu2/avery-fpdf-labels contains the following files

Loading the files please wait ....