Download the PHP package locomotivemtl/charcoal-contrib-embed without Composer
On this page you can find all versions of the php package locomotivemtl/charcoal-contrib-embed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download locomotivemtl/charcoal-contrib-embed
More information about locomotivemtl/charcoal-contrib-embed
Files in locomotivemtl/charcoal-contrib-embed
Package charcoal-contrib-embed
Short Description Charcoal service provider for an embed property.
License MIT
Homepage https://locomotivemtl.github.io/charcoal-contrib-embed/
Informations about the package charcoal-contrib-embed
Charcoal Embed
A Charcoal service provider for the Embed library.
Installation
The preferred and only supported method is with Composer:
Dependencies
Required
- PHP v5.6, v7.2 to v7.4, or v8
- locomotivemtl/charcoal-app : v0.8+
- locomotivemtl/charcoal-config : v0.10+
- locomotivemtl/charcoal-property : v0.8+
- guzzlehttp/guzzle : v6 or v7
- guzzlehttp/promises : v1.4 or v2
- embed/embed : v3.4
Service Provider
Services
- embed/repository is an instance of
Charcoal\Embed\EmbedRepositoryand serves as the primary API for fetching and caching embed data.
Configuration
Including the embed module in the projects's configuration file will register the service provider and the [locomotivemtl/charcoal-admin] route for remotely updating the cached embed information:
Otherwise, the service provider can be included directly:
The contrib package can be configured from the the project's configuration file (default values for illustration):
Usage
The contrib package provides a custom embed model property that upon save will fetch the URL's embed information and store a subset of that data in a custom database table.
A URL's embed data can be retrieved using the EmbedRepository:
Development
The package can be linted with squizlabs/php_codesniffer and tested with phpunit/phpunit from the following command:
Coding Style
The charcoal-contrib-embed module follows the Charcoal coding-style:
- PSR-1
- PSR-2
- PSR-4, autoloading is therefore provided by Composer.
- phpDocumentor comments.
- .editorconfig for coding standards.
Credits
License
Charcoal is licensed under the MIT license. See LICENSE for details.
All versions of charcoal-contrib-embed with dependencies
embed/embed Version ^3.4
locomotivemtl/charcoal-app Version ~0.8
locomotivemtl/charcoal-config Version ~0.10
locomotivemtl/charcoal-property Version ~0.8
guzzlehttp/guzzle Version ^6.0 || ^7.0
guzzlehttp/promises Version ^1.4 || ^2.0
pimple/pimple Version ^3.5
psr/log Version ^1.1