PHPackages                             artka54/ampify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. artka54/ampify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

artka54/ampify
==============

Convert your IMG tags to google-amp supported amp-img

1.0.1(8y ago)020MITPHPPHP ~5.6|~7.0

Since Aug 21Pushed 8y agoCompare

[ Source](https://github.com/artka54/ampify)[ Packagist](https://packagist.org/packages/artka54/ampify)[ Docs](https://github.com/artka54/ampify)[ RSS](/packages/artka54-ampify/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

ampify
======

[](#ampify)

[![Latest Version on Packagist](https://camo.githubusercontent.com/92ea619b0e53b286dd2149905e7729176c37b57bf1f53651a00ed8de4f4bad86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6172746b6135342f616d706966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/artka54/ampify)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/19018db1eef1185aa15a8e32fe70921cf6f0bb3b35267ca6c0f73c4d958dd520/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6172746b6135342f616d706966792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/artka54/ampify)[![Coverage Status](https://camo.githubusercontent.com/958b5c3fd8eef1e2b2d0000eaa0fdc2b7392b6b6026093115b2d9ad206054475/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6172746b6135342f616d706966792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/artka54/ampify/code-structure)[![Quality Score](https://camo.githubusercontent.com/e4510f0fec62ac02a6e4378641f693312a5af06a33c5b7ffb683d44de2704062/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6172746b6135342f616d706966792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/artka54/ampify)[![Total Downloads](https://camo.githubusercontent.com/569b1c780f72a4d6e2a6b6d930e21411b491f21a417998ec6e7b4f615e622ee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6172746b6135342f616d706966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/artka54/ampify)

This is a package to convert regular html `` tags to those obligated by Google-Amp ``. This package is tested with ckeditor.

Install
-------

[](#install)

Via Composer

```
$ composer require artka54/ampify:1.0.1
```

Usage
-----

[](#usage)

```
use artka54\ampify\Ampify as Ampify;

$Ampify   = new Ampify($htmlToConvert);
$Ampified = $Ampify->ampifyImgs();
```

WARNING: Your img must contain src, style(indicating width and height) and alt (can be empty) attributes. E.g a properly formatted img tag that can be successfuly converted with this package:

```

```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Arturs Kalnins](https://github.com/artka54)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~0 days

Total

3

Last Release

3235d ago

Major Versions

0.9.0 → 1.0.12017-08-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26529139?v=4)[Arturs Kalnins](/maintainers/artka54)[@artka54](https://github.com/artka54)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (29 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![artka54](https://avatars.githubusercontent.com/u/26529139?v=4)](https://github.com/artka54 "artka54 (7 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")

---

Tags

artka54ampify

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/artka54-ampify/health.svg)

```
[![Health](https://phpackages.com/badges/artka54-ampify/health.svg)](https://phpackages.com/packages/artka54-ampify)
```

###  Alternatives

[algoyounes/circuit-breaker

Circuit Breaker is laravel package that provides a way to handle failures gracefully

584.4k](/packages/algoyounes-circuit-breaker)

PHPackages © 2026

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