Download the PHP package cpsit/cps-shortnr without Composer

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

cps_shortnr

Latest Stable Version Build Status StyleCI

Installation

Configuration

Configuration file

Default:

cps_shortnr object

The configuration has to be wrapped in a cps_shortnr object.

decoder

Property Data type Description
decoder stdWrap The identifier for the decode process.

encoder

Property Data type Description
encoder stdWrap The instruction how shortlinks are built. The current record is available as well as four internal fields: tx_cpsshortnr_identifier_lower (determined identifier in lower case), tx_cpsshortnr_identifier_upper (determined identifier in upper case), tx_cpsshortnr_language (either current language or language of the record if available) and tx_cpsshortnr_language_parent (either uid of the record or its language parent if available).

Identifier configuration

The name for an identifier is free to choose. You might have to adopt the regular expression for your needs. Please be aware this should be a short identifier though.

source

Property Data type Description
record stdWrap The uid of the record that should be displayed.
table text The table of the record that should be displayed.
encodeMatchFields text Additional field => value assignment that the current record has to match for encode process.

path

Property Data type Description
path stdWrap The new Url used for the redirect.

Regular expression

Default:

The regular expression is used to split the incoming Url (shortlink) into different parts. These parts can be used inside the identifier configuration. They are stored in the TSFE->register variable with tx_cpsshortnrmatch prefix (e.g. tx_cpsshortnr_match_1, tx_cpsshortnr_match_2).

PageNotFound_handling

For a detailed description see Install Tool > All configuration > FE > pageNotFound_handling.

TypoScript API

Example:

userFunc

Property Data type Description
userFunc function name CPSIT\CpsShortnr\Service\Shortlink->create
record stdWrap The uid of the record that should be encoded.
table text The table of the record that should be encoded.

All versions of cps-shortnr with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^10.4 || ^11.5 || ^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 cpsit/cps-shortnr contains the following files

Loading the files please wait ....