postyou / contao-proven-expert
ProvenExpert API Integration for Contao
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^5.3
- doctrine/dbal: ^3.6
- psr/log: ^3.0
- symfony/cache: ^6.4
- symfony/config: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/http-client: ^6.4
- symfony/http-kernel: ^6.4
Requires (Dev)
- contao/easy-coding-standard: ^6.0
- contao/manager-plugin: ^2.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This extension integrates the ProvenExpert API in contao. An account at ProvenExpert is required.
Goal
This extension tries to store ProvenExpert content locally whenever possible, so that no requests are made to third parties when the website is accessed.
Note
This is currently only implemented for images. If script or link tags are present in the widget HTML (e.g. type landing
), third party requests will still be made.
Cache
The API response is cached and automatically updated every hour (default). You can manually clear the cache by either:
- saving the corresponding frontend module or
- purging the ProvenExpert cache via the system maintenance
Frontend Modules
The following frontend modules can be used with this extension:
ProvenExpert Widget
Creates a new rating seal. Documentation (german) at developer.provenexpert.com/#widget.
Available types:
Type custom
This provides a simple HTML field into which you can paste HTML code generated in the ProvenExpert Dashboard, for example. Images contained in the HTML code are downloaded and cached every hour so that only the local version of the image will be output.
ProvenExpert RichSnippet
Creates a new rich snippet for google rating. Available options at developer.provenexpert.com/#rating-summary-richsnippet.
Configuration
contao_proven_expert: cache_lifetime: 3600