Download the PHP package xenocrat/sfnt2woff without Composer

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

What is this?

sfnt2woff is a PHP class for converting OTF, TTF, TTC and OTC files to WOFF 1.0 and 2.0.

Requirements

Limitations

WOFF 2.0 export uses a null transformation: table data is not optimized.

Usage

Convert a font to WOFF 1.0:

Convert a font to WOFF 2.0:

Methods

sfnt_import

Description

Imports SFNT data from a TTF or OTF font source.

Parameters

otfc_import

Description

Imports TTC or OTC data from a TrueType or OpenType font collection.

Parameters

otfc_extract

Description

Extracts SFNT data from a TrueType or OpenType font collection. After extraction, the data can be exported using woff1_export or woff2_export.

Parameters

woff1_export

Description

Exports SFNT data in WOFF 1.0 format.

Parameters

Return Values

Returns a complete WOFF 1.0 file as a string of data, or false if there is no data to export.

woff2_export

Description

Exports SFNT data in WOFF 2.0 format.

Parameters

Return Values

Returns a complete WOFF 2.0 file as a string of data, or false if there is no data to export.

woffc_export

Description

Exports TTC or OTC data in WOFF 2.0 font collection format.

Parameters

Return Values

Returns a complete WOFF 2.0 collection file as a string of data, or false if there is no data to export.

set_woff_version

Description

Set the major and minor version numbers for WOFF exports.

Parameters

get_woff_version

Description

Get the major and minor version numbers for WOFF exports.

Return Values

Returns an array of two integers representing the major and minor version numbers.

set_woff_meta

Description

Set the WOFF extended metadata block.

Parameters

get_woff_meta

Description

Get the WOFF extended metadata block.

Return Values

Returns a SimpleXMLElement object representing the XML metadata, or false if no metadata block has been set.

set_woff_priv

Description

Set the WOFF private data block.

Parameters

get_woff_priv

Description

Get the WOFF private data block.

Return Values

Returns a string of data representing the private data block, or false if no private data block has been set.

get_sfnt_info

Description

Returns information about SFNT data imported using sfnt_import or otfc_extract.

Return Values

Returns an associative array, or false if no data has been imported.

get_otfc_info

Description

Returns information about TTC or OTC data imported using otfc_import.

Return Values

Returns an associative array, or false if no data has been imported.


All versions of sfnt2woff with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-spl Version *
ext-zlib Version *
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 xenocrat/sfnt2woff contains the following files

Loading the files please wait ...