Download the PHP package pantheon-systems/pantheon-wordpress-edge-integrations without Composer

On this page you can find all versions of the php package pantheon-systems/pantheon-wordpress-edge-integrations. 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 pantheon-wordpress-edge-integrations

Pantheon WordPress Edge Integrations

Stable tag: 0.3.0
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 7.4
License: MIT
Tags: pantheon, personalization, edge integrations, geolocation, geoip, interest tracking, vcl, developer Contributors: jazzs3quence, jspellman, getpantheon

WordPress plugin and developer toolkit to support Pantheon Edge Integrations and personalization features.

Unsupported Pantheon WordPress Edge Integrations Packagist release Commits since latest release

Description

This plugin provides tools for integrating with Pantheon's Edge features provided by our Advanced Global CDN. Integrate natively with geolocation and interest tracking features to build personalization-enhanced features for your site.

If you would like to contribute to this plugin, please see the CONTRIBUTING.md file for more information.

Frequently Asked Questions

How do I check if vary headers are being sent from the CDN?

There are two ways to check for the vary headers sent by the CDN to ensure that your site is able to personalize based on that information.

Browser developer tools

In the browser Inspector (Right Click → Inspect in Firefox/Chrome), go to the Network tab. You may need to reload the page. The first element in the list should show the URL of the site. Click that item and ensure that the Headers tab is selected in the right panel. In the Response Headers section, there are three things you can be looking for depending on your AGCDN Varnish configuration: audience, audience-set and interest. interest will only show up if an interest is set in the browser (and enabled in VCL), but audience, audience-set or both should appear if Geolocation has been configured for your site. If either of those are showing in the response headers, the CDN is sending the data to your browser and personalization is configured correctly.

Using cURL

You can also make a curl request against the URL of your site to see the headers.

Running a curl request in a terminal application like the above will output the response headers of the requested URL. If the headers are being sent by the CDN, you should see entries in the returned response head data like the following:

Again, you are looking for audience or audience-set headers to be returned, which are visible at the bottom of the request in the example above.

Interest headers will only be sent back from the CDN if a cookie with the interest defined exists, however, you can test this with curl as well by passing a --cookie value:

This will return a response like this:

In the example output above, you can see the interest key is returned with a value of through-the-looking-glass which matches what was sent in the cookie via the curl request.

How do I validate that my vary headers are being sent to the CDN to vary content on interest/geolocation?

Like the above, validating that the vary headers are being sent correctly can be done either in the browser tools, or via curl.

Browser developer tools

Using the browser Inspector → Network tab again, repeat the process as above. This time, you will be looking for the vary key. This tells us what the CDN has been told we should vary content on. If the Vary headers are being sent properly from the plugin, you should see something like:

This represents the default vary headers that are set by the WordPress Edge Integrations plugin. There could be any number of combinations of Audience-Set, Audience, Interest or other vary headers that you have set yourself in the code.

Using cURL

You can get the same information using cURL as above, as well. When reading a curl --head ${your-domain} request to look for Vary headers, you'll want to look for the vary key in the response. Again, it will output something similar to:

This tells you what Vary headers are currently being sent by the code.

How can I troubleshoot no Vary headers being sent?

If you are looking at the response headers for your page and no Vary headers are being sent on a page that you'd expect them to (e.g. not a page that includes logic to not send Vary headers), the first thing to check is to see what the output of get_supported_vary_headers is. get_supported_vary_headers should output an array of just the currently-supported Vary headers (contrast this with the pantheon.ei.supported_vary_headers filter, which takes an array of headers and whether they are supported or unsupported). If the output is not what you expect (empty, a multidimensional array, etc.), you know that the problem exists in how the Vary headers are being defined. get_supported_vary_headers is run immediately before the header function is called, so it's the last place where the Vary headers would be breaking down. It might also be valuable to experiment with the pantheon.ei.supported_vary_headers filter, which is used to filter the output before returning the array of just the Vary header array keys.


All versions of pantheon-wordpress-edge-integrations with dependencies

PHP Build Version
Package Version
Requires pantheon-systems/pantheon-edge-integrations Version ^v1.1.0-alpha1
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 pantheon-systems/pantheon-wordpress-edge-integrations contains the following files

Loading the files please wait ....