Download the PHP package nemo64/canonical-url without Composer

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

Latest Stable Version Total Downloads Monthly Downloads License

EXT:canonical_url

This extension adds some canonical url features to your page.

This extension is based on my Blog Post (in german) in which you can read more about the topic of canonical urls in typo3 and why they aren't as simple as they should be.

There are also a lot of extension that already bring canonical support with varying implementation quality but in those the canonical url is just one of many features.

This extension only focuses on how to handle the current page url and you can install this extension and just use the typoscript extensions without any page modifications if you want to have full control.

I encourage you to use this extension as a dependency in your extension if you need canonical_parameters. This extension won't do anything except for providing the canonical_parameters getText function (and later maybe more ways like view helpers). The integrator will always have to include the static typoscript for this extension to have any effect. It is therefor a save dependency.

Main features

Static TypoScript template for <link rel="canonical">

This extensions adds a TypoScript for you to use. Just add the fittingly named <link rel="canonical"> (canonical_url) static include to your typoscript template and you are all set.

TypoScript extension data = canonical_parameters

You can use the new getText funktion canonical_parameters to get the query string to the current page. This is different to addQueryString in that it only includes parameters that are relevant for the cache and therefor validated using the cHash Mechanismus.

Here an example on how to create a link to the current page:

And here an example on how to create a breadcrumb where the last entry is the current page:

And here an example on how to implement hreflang:


All versions of canonical-url with dependencies

PHP Build Version
Package Version
Requires php Version ~7.2
typo3/cms-core Version ~8.7.7 || ^9.5
typo3/cms-frontend Version ~8.7.7 || ^9.5
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 nemo64/canonical-url contains the following files

Loading the files please wait ....