Download the PHP package mediawiki/iframe-tag without Composer

On this page you can find all versions of the php package mediawiki/iframe-tag. 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 iframe-tag

+Title: MediaWiki IFrameTag extension

+Author: Mark A. Hershberger

This extension allows you use [[https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element][iframe]] tags in your wiki and makes some attempt to validate the URLs being embedded in iframes. Your wiki admins will be able to use a page in the MediaWiki namespace to update the list of allowed URLs.

As of this writing, only the following attributes are supported:

There are two methods for configuring permissible domains. ** On Wiki configuration This method is enabled by default, but if you do not want your administrators changing the list of allowed domains, you can set =$iFrameOnWikiConfig= to false:

+begin_src php

$iFrameOnWikiConfig=false;

+end_src

If you leave the method enabled, people with the [[https://www.mediawiki.org/wiki/Manual:User_rights#List_of_permissions][editsitejson]] (administrators and interface administrators by default) will be able to change the value of =[[MediaWiki:IFrame-cfg.json]]=. To authorize the only three domains, the following would be used:

+begin_src json

{ "domains": [ "one.example.com", "two.example.com", "two.example.com" ] }

+end_src

** PHP Configuration This is the familiar "set a PHP variable in your =LocalSettings.php=" method.

In your =LocalSettings.php=, add a setting for the variable =$iFrameDomains= that contains an array of domains that are allowed. For example:, to authorize the same three domains as are in the above wiki configuration.

+begin_src php

$iFrameDomains = [ 'one.example.com', 'two.example.com', 'three.example.com' ];

+end_src

If problems are found with when parsing the iframe tag attributes, that attribute is skipped, notes about what went wrong are they are inserted into the page output as HTML comments.

If the =src= attribute has a problem, then the iframe tag is skipped and the author will have to check the html source to find any problems.


All versions of iframe-tag with dependencies

PHP Build Version
Package Version
Requires composer/installers Version 1.*,>=1.0.1
nichework/tag-builder Version ^1.5
php Version >=7.3
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 mediawiki/iframe-tag contains the following files

Loading the files please wait ....