Download the PHP package liquidlight/typo3-shortcodes without Composer

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

Shortcodes

Wordpress style shortcodes for embedding external content in TYPO3.

Installation

Usage

Out of the box the extension comes with plenty of shortcodes to get you started; including YouTube, Vimeo, Facebook, Twitter and several others.

To use the shortcodes, you can use a shorthand syntax or follow the Wordpress, HTML inspired method.

More details below as to the exact usage for each tag, but as an example, the YouTube one could be used like one of the following:

⚠️ If using a full URL, it is worth leaving a space between the end of the link and the closing square bracket - this prevents the ] being used in the link

Shorthand colon syntax

Shorthand equals syntax

Wordpress Long-form syntax

Creating your own keyword

In the land of shortcodes, keyword is the "service" used to trigger the shortcode (e.g. youtube in the examples above).

Registering your own keyword requires a new class which extends LiquidLight\Shortcodes\Keywords\AbstractKeyword.

An example of how to extend and use can be found in the Classes/Keywords folder - anything but the AbstractKeyword class can be copied and used.

Once created, you can add it via the ext_localconf.php where new is the name of the keyword.

Using this method allows you to overwrite existing keywords if you wish to alter their output. The only requirement is that you return a string.

Existing Shortcodes

All shortcodes allow title as an attribute to add a title to iframe based shortcodes. If it is not added, it will default to the type (e.g. "Google Maps")

Facebook

[facebook]

Copy the URL of a facebook post or video

Properties:

Defaults:

Google Maps

[googlemaps]

⚠️ Google Maps requires an API key setting up - see the setup section below for adding your key

Shows a place, satellite, directions or streetview of a place.

Properties:

All the properties are of that listed in the documentation.

The only differences are:

Setup

To use the googlemaps shortcode, an API key must be set.

By default, it will look in your $_ENV variables for GOOGLE_MAP_API.

However it can be set in ext_localconf however you see fit (please don't commit your API key).

If you restrict the API key type, ensure you have the following enabled

Iframe

[iframe]

Allows a generic iframe to be rendered with the passed in URL

Properties:

Instagram

[instagram]

Embeds an Instagram post

LinkedIn

[linkedin]

Embeds an Linked post - ensure the url has urn:li:activity or similar in it.

For example:

Properties:

Defaults:

Soundcloud

[soundcloud]

Shows a Soundcloud player for a track or artists - can have the size & colour customised. Use the URL

For example:

Properties:

Spotify

[spotify]

Go to Spotify and click on what you want to embed - song, artist, playlist etc.

Click the 3 dots -> Share -> Copy Link

Properties:

Defaults:

X

[x | twitter | tweet]

Copy the URL (or the status code) of a tweet

Properties:

Any properties are passed through to the oembed-api, so the list & defaults can be found there

Video

[video]

The video element outputs an <iframe> with the src of that passed in. It allows an arbitrary URL to a video to be passed in and it will wrap it in a <div> for responsive styling purposes.

Properties

Vimeo

[vimeo]

Renders a Vimeo iframe embed. Can take a full URL or code.

See Video for properties and use.

YouTube

[youtube]

Renders a YouTube iframe embed. Can take a full URL or code.

See Video for properties and use.


All versions of typo3-shortcodes with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^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 liquidlight/typo3-shortcodes contains the following files

Loading the files please wait ....