Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Amp Converter Bundle Laravel Package

erckul/amp-converter-bundle

View on GitHub
Deep Wiki
Context7

AmpConverter Bundle

Packagist PHP Symfony2 Packagist Packagist Travis Code Climate Code Climate

Features

Basic features list:

  • Convert Classic Html to AmpHtml
  • Get The list of needed scripts for AmpHtml

Supported Elements:

  • amp-iframe
  • amp-audio
  • amp-brightcove
  • amp-dailymotion
  • amp-image
  • amp-video
  • amp-vimeo
  • amp-youtube
  • amp-facebook
  • amp-instagram
  • amp-pinterest
  • amp-twitter

Tested Elements:

  • amp-iframe
  • amp-audio
  • amp-brightcove
  • amp-dailymotion
  • amp-image
  • amp-video
  • amp-vimeo
  • amp-youtube
  • amp-facebook
  • amp-instagram
  • amp-pinterest
  • amp-twitter

Install

Install with composer :

composer require elephantly/amp-converter-bundle

Then in your AppKernel.php file add:

new Elephantly\AmpConverterBundle\ElephantlyAmpConverterBundle(),

Finally, just use the service to access functions:

$converter  = $this->get('elephantly.amp_converter');
$ampHtml    = $converter->convert($html);
$ampScripts = $converter->getAmpScripts($html);

And you're done

Pull Requests:

Pull requests are very welcome :D Pleas do not hesitate to tell us if you wnat a feature, see any issue, or just want to discuss the future of the bundle...

Todo

  • Complete Contributing guide
  • Test all Elements
  • Create Empty Converter to clone

Stuff used to make this:

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package