Download the PHP package zytzagoo/wp-google-fonts-optimizer without Composer

On this page you can find all versions of the php package zytzagoo/wp-google-fonts-optimizer. 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 wp-google-fonts-optimizer

WP Google Fonts Optimizer

PHP Version Build Status Scrutinizer Coverage Quality Score

WP Google Fonts Optimizer is a super-easy way to ensure your WordPress theme is not performing unnecessary extra requests for Google Web Fonts (in cases when you use more than one font family on a page).

It automatically scans your enqueued stylesheets and combines them into a single request when needed.

Optionally, for poorly coded themes (and/or conflicts with other plugins), it can scan and modify the generated markup.

Download

See Releases.

Or install it to your plugin directory via Composer:

Quickstart

Install and activate the plugin, it should do it's job automatically after that.

Details / Troubleshooting

By default, the plugin enqueues a new stylesheet (with combined font families etc.) and removes any found/enqueued stylesheets.

If your theme doesn't enqueue the Google Fonts properly (or if there is a potential conflict with another plugin/theme on your site), you can modify the way the plugin works and change it so that it parses the generated markup (instead of it inspecting the enqueued URLs). Do so by adding a filter to your functions.php (or even better, use a mu-plugin).

When in markup mode, it replaces existing <link> elements with a new one and places it in the <head>. This mode also supports creating a Web Font Loader <script> tag, if that's what you'd prefer. Turn it on using a filter:

License (MIT)


All versions of wp-google-fonts-optimizer with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.0
php Version >=5.4
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 zytzagoo/wp-google-fonts-optimizer contains the following files

Loading the files please wait ....