Download the PHP package phil/embed-bundle without Composer

On this page you can find all versions of the php package phil/embed-bundle. 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 embed-bundle

phil/embed-bundle

Features of a Symfony site that other sites embed, framed by the origins it allows and nobody else.

phil/embed-bundle turns a page of the site — a calendar, a form, a list of events — into something another site can paste into its own pages. The site gives that other site a code: a <phil-embed> element holding a plain link, and a script. The element puts the page in a frame, at the height its content asks for, and keeps following it; a reader without JavaScript follows the link. The frame's address carries a token, signed by the site for that embed and that origin: the page is answered in the theme the token names, and may be framed by that origin alone — a token copied to another site shows nothing there.

The height travels by a small postMessage protocol: the frame posts its readiness and its height to the origin of its token, never to *; the element reads messages from its own frame alone, and only from the origin of its address; the theme the other site asks for goes the other way, under the same checks. The bundle writes frame-ancestors through phil/browser-security-bundle when it is installed, or in a header of its own.

It is for any Symfony site whose partners show its content: a venue's calendar on the sites of its artists, a registration form on a partner's page, a list of events on a city's portal.

Status

Part State
Origin, SigningKey, EmbedClaims: an origin read by phil/url, a key, what a token says Implemented and tested
EmbedTokenCodec: tokens pe1.hs256.<key>.<claims>.<signature>, an ordered list of keys Implemented, tested and fuzzed
Embed, Embeds, EmbedTokens: the embeds of the configuration, tokens issued and read back into a context Implemented and tested
EmbedRequestListener: the page of an embed by its route's _embed or #[Embeddable] Implemented and tested
BrowserSecurityFraming, HeaderFraming: frame-ancestors for the token's origin, or none Implemented and tested, with and without phil/browser-security-bundle
EmbedMessage: the frame protocol's reference, shared with the JavaScript by its fixtures Implemented, tested and fuzzed
<phil-embed>: the frame at the height of its content, the theme, the link kept without JavaScript or when refused Implemented; driven in Chrome across two origins by the browser suite
The frame controller: readiness, height and theme inside the frame Implemented; driven in Chrome by the browser suite
EmbedCodes, phil_embed_code(), phil:embed:token: the code a partner pastes, a token from the console Implemented and tested
EmbedScriptController: the script under a stable address, readable across origins Implemented and tested
RemoteCommentThreads: the comments of a page carried by the forum of another site Not started: the port is declared, without an adapter until the forum exists
The Flex recipe: the bundle, a key from the environment, the script's route Written in recipe/0.1, for the recipes repository of PHIL

Documentation

Document What it covers
Installation Requirements, the bundle, the key, the route, the controller.
Configuration Every option, and the services registered.
Embedding Declaring an embed, its page, the code a partner pastes, the element and its fallback.
Tokens The format, the keys and their rotation, the claims, what a copied token can do.
Protocol The postMessage messages and the checks on both sides.
Framing frame-ancestors, with and without phil/browser-security-bundle.
Extension points What an application implements, configures, replaces or relies on.
Testing The PHP and Node tests, the fuzz targets and the checks in a browser.
Reference Every class and module of the bundle, with its role.

Quick start

Requirements

PHP 8.5 or later with the sodium extension, Symfony 8.2 and phil/url. For the frame controller, Stimulus 3 and AssetMapper; for the policy written into the site's own, phil/browser-security-bundle.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of embed-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-sodium Version *
phil/url Version ^0.1@dev
psr/clock Version ^1.0
psr/log Version ^3.0
symfony/config Version ^8.2
symfony/console Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/http-foundation Version ^8.2
symfony/http-kernel Version ^8.2
symfony/routing Version ^8.2
twig/twig Version ^3.21
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 phil/embed-bundle contains the following files

Loading the files please wait ...