elephantly / amp-converter-bundle
Amp Converter for Symfony
Installs: 2 637
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 4
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- kriswallsmith/buzz: ^0.15.0
- marc1706/fast-image-size: 1.*
- symfony/css-selector: 2.8.*
- symfony/framework-bundle: ^2.7
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- kahlan/kahlan: ^3.1
README
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