Download the PHP package phil/paged-media-weasyprint without Composer

On this page you can find all versions of the php package phil/paged-media-weasyprint. 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 paged-media-weasyprint

phil/paged-media-weasyprint

HTML and CSS printed as a PDF by WeasyPrint for phil/paged-media-bundle, with the network and the disk out of its reach.

phil/paged-media-weasyprint is the WeasyPrint engine of phil/paged-media-bundle. WeasyPrintEngine implements the bundle's PrintEngine port by calling the weasyprint command: the document goes in on its standard input, the PDF comes out on its standard output, and a failure throws WeasyPrintFailed with the exit code and the error output.

Reach for it when a document needs what a paged-media engine does — running headers, page counters, footnotes, columns, CSS Paged Media — and the machine can run WeasyPrint. The bundle's native writer fits a document drawn in code, and needs no engine.

It is a package of its own so that phil/paged-media and phil/paged-media-bundle ask for no Python on the machine.

The command may only fetch data: addresses: a document cannot reach a file of the server or an address of its network, whoever wrote it, and a remote image is never fetched. LocalAssets gives a document the images, fonts and colour profiles of one directory, by writing them into it before the command starts. See Security.

PdfOptions chooses what the PDF is: PDF/A, PDF/UA or PDF/X with the ICC profile of its printing condition, tagged, with form fields, its images resampled. See PDF output.

Status

Part State
WeasyPrintEngine Implemented and tested
LocalAssets: images, fonts and ICC profiles of one directory Implemented and tested
PdfOptions and PdfVariant: PDF/A, PDF/UA, PDF/X and its output intent, tags, forms, images Implemented and tested, and run against WeasyPrint 70

Documentation

Document What it covers
Installation Requirements, the version of WeasyPrint and its detection, the service wiring.
PDF output The standard of the PDF, its output intent and ICC profile, tags, forms, images.
Security What the command may fetch, the assets directory, the limits.
Exceptions What WeasyPrintFailed reports.
Extension points The arguments an application chooses, and what it replaces.
Testing The fake command of the unit tests, and the test of the real one.
Reference Every public type, with its role.

Quick start

One line of config/services.yaml makes it the engine of the bundle:

Requirements

PHP 8.5 or later with dom, libxml and sodium; symfony/process 8.2; phil/paged-media-bundle 0.1; the weasyprint command, version 70 or later, on the machine that prints.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of paged-media-weasyprint with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-dom Version *
ext-libxml Version *
ext-sodium Version *
phil/paged-media-bundle Version ^0.1@dev
symfony/process Version ^8.2
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 phil/paged-media-weasyprint contains the following files

Loading the files please wait ...