Download the PHP package straschek-io/typo3-hyphenator without Composer

On this page you can find all versions of the php package straschek-io/typo3-hyphenator. 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 typo3-hyphenator

TYPO3 Hyphenator

This extension allows you to add soft-hyphen definitions to your TYPO3.
Those rules will be applied to the frontend at the end of your middleware stack.

This extension aims to give you full control about HOW you want specific terms to break in case of having limited space. There are other client- & server-side solutions out there which do all the magic w/o you having to provide specifications, but they may result in endlessly huge pain on designer and customer sites.

So as a simple example, this extension allows you to NOT have break like this:

... ... .. ..... ... Ar-
beiterunfallversicherungsgesetz

... ... .. ..... Arbeiterun-
fallversicherungsgesetz

Arbeiterun-
fallver-
sicherungsge-
setz

You can have this:

... ... .. ..... ... Arbeiter-
unfallversicherungsgesetz

... ... .. ..... Arbeiterunfall-
versicherungsgesetz

Arbeiter-
unfall-
versicherungs-
gesetz

YAY!

How to install

No further configuration needed.

How to use

  1. Just add a "Hyphenator term" record and clear the TYPO3 cache
  2. Reload your frontend

The pid field is not evaluated, so simply drop the records into a sys folder to your liking.

Good to know

I tried several PHP based DOM parsers, but they all significantly suffered from complexity and performance issues.

The replacement now is implemented in a super simple way via preg_replace(). This may and will not cover all cases. Maybe I failed on it, but this approach IMHO works best:
simple & fast.

If you have improvement suggestions, find the used regular expression on regex101.com.
I am open to enhance this.

Compatibility

Compatible with TYPO3 10.4+
Tested manually. No automated tests planned (so far).

Works for me, may work for you.


All versions of typo3-hyphenator with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^12.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 straschek-io/typo3-hyphenator contains the following files

Loading the files please wait ....