Download the PHP package wp-php-toolkit/reprint-server without Composer

On this page you can find all versions of the php package wp-php-toolkit/reprint-server. 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 reprint-server

Reprint Server

Composer package for the Reprint streaming export engine — the HTTP endpoint installed on the WordPress host that Reprint clients pull from and push to.

This package was previously published as wp-php-toolkit/reprint-exporter. It replaces that package (replace: self.version), so the two names cannot be installed side by side. Consumers should require wp-php-toolkit/reprint-server directly.

Loading it

Composer's classmap covers every canonical class in src/, so classes resolve after requiring vendor/autoload.php.

Reprint's entry points load their utility functions internally. src/utils.php is an internal implementation file and is not a public autoload entry point.

The Reprint Server plugin loads src/compat.php when it opens the server runtime so that released Site_Export_* server names continue to resolve without adding work to every request which loads the shared Composer autoloader.

Standalone consumers which request a released server name before its canonical class must explicitly require src/compat.php after Composer's autoloader.

src/export.php never autoloads, and that is deliberate. It declares functions rather than classes, so the classmap scan finds nothing in it to register. Keep it that way: requiring the file starts an output buffer and installs error, exception and shutdown handlers, all of which belong at dispatch time. WordPress\Reprint\Server\HTTPServer::serve() requires it at the right moment. Adding a class to export.php would make it autoloadable and break that.

Server classes use the WordPress\Reprint\Server namespace. The released Site_Export_* server names remain autoloadable aliases. The global Site_Export_HMAC_Client name and file remain unchanged because the Reprint client package consumes that class directly.

Development

This repository is a read-only Composer package split from the Reprint monorepo. It is published so Composer can install wp-php-toolkit/reprint-server directly.

Do not propose changes in this package repository. Open issues and pull requests against the source repository instead:

https://github.com/WordPress/reprint

The package repository is overwritten from packages/reprint-server in the monorepo during releases, so direct changes here will be lost.


All versions of reprint-server with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 wp-php-toolkit/reprint-server contains the following files

Loading the files please wait ...