PHPackages                             erckul/amp-converter-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. erckul/amp-converter-bundle

ActiveSymfony-bundle

erckul/amp-converter-bundle
===========================

Amp Converter for Symfony

v1.0.5(8y ago)0966MITPHPPHP &gt;=5.3.0

Since May 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Erckul/AmpConverterBundle)[ Packagist](https://packagist.org/packages/erckul/amp-converter-bundle)[ RSS](/packages/erckul-amp-converter-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (16)Used By (0)

AmpConverter Bundle
===================

[](#ampconverter-bundle)

[![Packagist](https://camo.githubusercontent.com/dec0536d0a0ef8087d5394204992bf73fc3733ff9882a4a7932f892c4eae648b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c657068616e746c792f616d702d636f6e7665727465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elephantly/amp-converter-bundle)[![PHP](https://camo.githubusercontent.com/331696fac97c22eb0d3e36c28dffed121f5b96ab798a57bdd09581970d1dee69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e332e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/331696fac97c22eb0d3e36c28dffed121f5b96ab798a57bdd09581970d1dee69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e332e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Symfony2](https://camo.githubusercontent.com/5b723fcd359bb98dbc70cb2955e8983ff697fd84d6650773e7ec83fcb4f14542/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e79322d253345322e372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5b723fcd359bb98dbc70cb2955e8983ff697fd84d6650773e7ec83fcb4f14542/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e79322d253345322e372d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Packagist](https://camo.githubusercontent.com/72c0df3fbeaee24b31601381e66592c40a1ee25b22ac58a5c7af0fe716e310ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c657068616e746c792f616d702d636f6e7665727465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elephantly/amp-converter-bundle)[![Packagist](https://camo.githubusercontent.com/a7f95d985201577364daefd4d4836aa2bfef7401e6d37f6d8026a44466ef42b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c657068616e746c792f616d702d636f6e7665727465722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elephantly/amp-converter-bundle)[![Travis](https://camo.githubusercontent.com/cad741159e3708078520be14da86f5342d5eee8962efaea4d28b7209804d489a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656c657068616e746c792f416d70436f6e76657274657242756e646c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/elephantly/AmpConverterBundle)[![Code Climate](https://camo.githubusercontent.com/e0b215b7686451b1fe32a46b0e28c5d9361e72d2aedfaa6028ec2e62055f50fc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f656c657068616e746c792f416d70436f6e76657274657242756e646c652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/elephantly/AmpConverterBundle)[![Code Climate](https://camo.githubusercontent.com/3c61d1672108482eae1a2a75d2403ecb172bcdc81ae49b92a2c7118bac18ab04/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f656c657068616e746c792f416d70436f6e76657274657242756e646c652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/elephantly/AmpConverterBundle)

Features
--------

[](#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)

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)

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
----

[](#todo)

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

### Stuff used to make this:

[](#stuff-used-to-make-this)

- [PHP](http://php.net/) &gt;= 5.3.0
- [marc1706/fast-image-size](https://github.com/marc1706/fast-image-size)
- [symfony/css-selector](https://github.com/symfony/css-selector)
- [kriswallsmith/buzz](https://github.com/kriswallsmith/Buzz)
- [symfony/framework-bundle](https://github.com/symfony/framework-bundle)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~15 days

Total

14

Last Release

2971d ago

Major Versions

v0.0.13 → v1.0.12018-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/39928b4c537394752c210ed51191d7b4072cedf1c9766493445fb20eaec25a1f?d=identicon)[Erckul](/maintainers/Erckul)

---

Top Contributors

[![PurpleBabar](https://avatars.githubusercontent.com/u/7846095?v=4)](https://github.com/PurpleBabar "PurpleBabar (54 commits)")[![houllier-leparisien](https://avatars.githubusercontent.com/u/47316055?v=4)](https://github.com/houllier-leparisien "houllier-leparisien (5 commits)")[![Erckul](https://avatars.githubusercontent.com/u/16142183?v=4)](https://github.com/Erckul "Erckul (4 commits)")

---

Tags

bundleconverthtmlconverteramp

### Embed Badge

![Health badge](/badges/erckul-amp-converter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/erckul-amp-converter-bundle/health.svg)](https://phpackages.com/packages/erckul-amp-converter-bundle)
```

###  Alternatives

[magyarandras/amp-converter

A library to convert HTML articles, blog posts or similar content to AMP (Accelerated Mobile Pages).

65150.3k](/packages/magyarandras-amp-converter)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[takeit/amp-html-bundle

Provide AMP HTML conversion to your Symfony2/Symfony3 projects.

3252.5k](/packages/takeit-amp-html-bundle)[ph-7/html-to-text

Lightweight package to convert HTML code to plain text (handy for plain text email format).

108.2k2](/packages/ph-7-html-to-text)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
