Download the PHP package opencontent/ocembed-ls without Composer

On this page you can find all versions of the php package opencontent/ocembed-ls. 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 ocembed-ls

OCEembed - Opencontent oEmbed operators

oEmbed is a format for allowing an embedded representation of a URL on third party sites.

oEmbed was designed to avoid having to copy and paste HTML from the site hosting the media you wish to embed. It supports videos, images, text, and more.

This eZ extension - loosely based on the WordPress oemabed implementation - offers the oEmbed easy embedding feature via some template operator.

Requirements

Installation

Enable the extension; clear all caches

Preinstalled embed provider:

You can add your own handler by creating a php class which implements oEmbedProviderInterface and adding a oEmbedProviders[] in ocembed.ini.

Available template operators

autoembed( mixed $separator, hash $parameters )

Print the html value of oEmbed response.

The separator and parameters variables are not required.

The separator value can be a string or an array. The default separator value is array( '<div class="text-center">', '</div>' )

The parameters value must be an array and overrides the default ocembed.ini width and height parameters [OCEmbedSettings].EmbedDefaults.

Example:

The example returns (without html comments):

This operator is used in the eztext.tpl and ezxmltext.tpl override templates include in this extension:

search_embed()

Return all embeddable links found in passed text.

Example:

Returns an array of embeddable urls.

get_oembed_object( string $url, hash $parameters )

Return the oEmbed response

The url parameter is required and must be an "oembeddable" url.

The parameters value must be an array and overrides the default ocembed.ini width and height parameters [OCEmbedSettings].EmbedDefaults.

Example:

The $test variable contains an associative array of oembed response object.

Cache data

If is enabled, all ocembed results are stored in ezsite_data table under the key 'oembed_cached_data'. To clear that cache, you can run


All versions of ocembed-ls with dependencies

PHP Build Version
Package Version
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 opencontent/ocembed-ls contains the following files

Loading the files please wait ....