Download the PHP package ayacoo/ard-sounds without Composer

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

TYPO3 Extension ard_sounds

1 Features

2 Usage

2.1 Installation

Installation using Composer

The recommended way to install the extension is using Composer.

Run the following command within your Composer based TYPO3 project:

2.2 TypoScript settings

Privacy

With plugin.tx_ardsounds.settings.privacy = 1 you can ensure that the IFrame is built with data-src instead of src. If you need more options to influence the HTML, you can use a PSR-14 event.

3 Developer Corner

3.1 No official oEmbed endpoint (yet)

ARD Sounds does not currently offer an official oEmbed endpoint. As a stand-in, Ayacoo\ArdSounds\Service\ArdSoundsOEmbedService fetches the public episode page (https://www.ardsounds.de/episode/{urn}/) and parses the PodcastEpisode JSON-LD block that ARD Sounds embeds in every episode page to derive title, description and thumbnail. Once ARD Sounds ships a real oEmbed endpoint, only this service needs to be replaced - Ayacoo\ArdSounds\Helper\ArdSoundsHelper and the renderer are unaffected.

If ARD Sounds changes their page markup so the built-in JSON-LD parsing in ArdSoundsOEmbedService::extractPodcastEpisode() no longer matches, you don't have to wait for an extension update - see ModifyPodcastEpisodeEvent below.

3.2 ModifyPodcastEpisodeEvent

ArdSoundsOEmbedService dispatches ModifyPodcastEpisodeEvent after it tried to parse the PodcastEpisode JSON-LD block from the episode page HTML. The event carries the raw HTML (getHtml()) and the extracted data as an array or null if parsing failed (getEpisode()). A listener can call setEpisode() to replace the extracted data with its own parsing of $html - for example to adapt to a markup change on ARD Sounds' side without having to wait for an extension update.

The array passed to setEpisode() is expected to use the same keys as the JSON-LD PodcastEpisode object, i.e. name, description and image.

EventListener registration

In your extension, extend Configuration/Services.yaml once:

3.3 ModifyArdSoundsOutputEvent

If you want to modify the output of the ARD Sounds HTML, you can use the ModifyArdSoundsOutputEvent.

EventListener registration

In your extension, extend Configuration/Services.yaml once:

3.4 Backend Preview

In the backend, the preview is used by TextMediaRenderer. For online media, this only displays the provider's icon, in this case ard_sounds. If you want to display the thumbnail, for example, you need your own renderer that overwrites Textmedia. An example renderer is available in the project. Caution: This overwrites all text media elements, so only use this renderer as a basis.

You register a renderer in the TCA Configuration/TCA/Overrides/tt_content.php with $GLOBALS['TCA']['tt_content']['types']['textmedia']['previewRenderer'] = \Ayacoo\ArdSounds\Rendering\ArdSoundsPreviewRenderer::class;

Documentation: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/ContentElements/CustomBackendPreview.html

3.5 Content security policy

If CSP is activated in the backend, policies will be automatically added. To do this, the file Configuration/ContentSecurityPolicies.php is used.

If CSP is to be extended for the frontend, the configuration can be added in a site package extension or in the global csp.yml

Take a look at the current documentation: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/ContentSecurityPolicy/Index.html

4 Administration corner

4.1 Versions and support

ard_sounds TYPO3 PHP Support / Development
2.x 14.x 8.2 - 8.5 features, bugfixes, security updates
1.x 13.x 8.2 - 8.5 features, bugfixes, security updates

4.2 Release Management

ard_sounds uses semantic versioning, which means, that

4.3 Contribution

Pull Requests are gladly welcome! Nevertheless please don't forget to add an issue and connect it to your pull requests. This is very helpful to understand what kind of issue the PR is going to solve.

Bugfixes: Please describe what kind of bug your fix solve and give us feedback how to reproduce the issue. We're going to accept only bugfixes if we can reproduce the issue.

5 Thanks / Notices

6 Support

If you are happy with the extension and would like to support it in any way, I would appreciate the support of social institutions.


All versions of ard-sounds with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 < 8.6
typo3/cms-core Version ^14.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 ayacoo/ard-sounds contains the following files

Loading the files please wait ...