Download the PHP package georgringer/page_speed without Composer

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

TYPO3 CMS Extension "page_speed"

This extensions provides an entry in the info module to check the usability & performance of the selected page by using the API of Google PageSpeed Insights.

Every page is automatically checked for the resolution desktop & mobile.

Screenshot

Requirements

Installation & Configuration

The extension just needs to be installed as any other extension. To make it work, you need a Google account and activate the PageSpeed service. After successfully activating the PageSpeed service you need to set the key in the configuration in EM and deactivate the demo mode.

Enable PageSpeed Service

1) Open console.developers.google.com and create a new project. 2) Open the project and switch to APIs and auth > APIs, select PageSpeed Insights API and Activate the API. 3) Switch to Credentials and click the button Create new key for public API access. 4) Create either a Server key or a Browser key*. 5) Test the access by using cUrl on the server where you want to use the extension by calling the command curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&url=http://www.bbc.co.uk/&key=AIzaSyA2rQEy7UyQz-9D1-7bnmw1jzSo0FmobYM'. (If you get a Bad request, just wait a few minutes to get the key deployed on all Google servers)

Preview Domain

If you need to use a different domain in the frontend or no sys domain record is available, you can use the following configuration inside your PageTsConfig: :

TCEMAIN.previewDomain = localhost/sites/t3/master

Avoid error "require_once(Net/URL2.php)"

If you see an exception about the file Net/URL2.php not found, please open the file typo3/contrib/vendor/pear/http_request2/HTTP/Request2.php and remove the require_once statement in line 24. This bug will be gone soon.

Technical background

A little bit technical information for the ones who are interested in:

The API is described in detail at developers.google.com/speed/docs/insights/v2/reference/pagespeedapi/runpagespeed and it is very simple to test by just using curl: :

# Desktop
curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&screenshot=true&url=http://www.typo3.org&key=<your_key>'
# Mobile
curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=mobile&screenshot=true&url=http://www.typo3.org&key=<your_key'

Further development

Todos


All versions of page_speed with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version >=7.2.0
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 georgringer/page_speed contains the following files

Loading the files please wait ....