{"id":21139256,"url":"https://github.com/deuxhuithuit/amp","last_synced_at":"2025-10-04T02:12:45.988Z","repository":{"id":66846906,"uuid":"109896813","full_name":"DeuxHuitHuit/amp","owner":"DeuxHuitHuit","description":"Transforms html into amp-html","archived":false,"fork":false,"pushed_at":"2017-11-07T22:10:29.000Z","size":827,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-14T12:45:24.044Z","etag":null,"topics":["amp","amp-html","symphony-cms","symphony-cms-extension"],"latest_commit_sha":null,"homepage":"http://symphonyextensions.com/extensions/amp/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeuxHuitHuit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-07T22:09:20.000Z","updated_at":"2020-10-15T12:38:16.000Z","dependencies_parsed_at":"2023-04-26T09:23:08.881Z","dependency_job_id":null,"html_url":"https://github.com/DeuxHuitHuit/amp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DeuxHuitHuit/amp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeuxHuitHuit%2Famp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeuxHuitHuit%2Famp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeuxHuitHuit%2Famp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeuxHuitHuit%2Famp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeuxHuitHuit","download_url":"https://codeload.github.com/DeuxHuitHuit/amp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeuxHuitHuit%2Famp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254466,"owners_count":25956604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amp","amp-html","symphony-cms","symphony-cms-extension"],"created_at":"2024-11-20T07:01:43.042Z","updated_at":"2025-10-04T02:12:45.969Z","avatar_url":"https://github.com/DeuxHuitHuit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMP\n\n\u003e Automagically transform your html ouput into valid amp-html\n\n### SPECS ###\n\nTransforms html into amp-html via a simple wrapper around [Lullabot/amp-library](https://github.com/Lullabot/amp-library)\n\n### REQUIREMENTS ###\n\n- Symphony CMS version 2.7.x and up (as of the day of the last release of this extension)\n\n### INSTALLATION ###\n\n- `git clone` / download and unpack the tarball file\n- Put into the extension directory\n- Enable/install just like any other extension\n\nYou can also install it using the [extension downloader](http://symphonyextensions.com/extensions/extension_downloader/).\n\nFor more information, see \u003chttp://getsymphony.com/learn/tasks/view/install-an-extension/\u003e\n\n### HOW TO USE ###\n\n- Enable the extension\n- Visit your url and append /amp/ at the end\n- Add a `\u003clink\u003e` to make your content discoverable\n\n```xslt\n\u003clink rel=\"amphtml\" href=\"{$current-url}/amp/\" /\u003e\n```\n\n#### Options ###\n\n- Disable amp generation on certain pages by adding the `no-amp` page type.\n- Use [cachelite](http://symphonyextensions.com/extensions/cachelite/) to cache the result.\n- The extension add a `\u003camp\u003e` node in `/data/params` which contains 'Yes' when the conversion will occur. 'No' otherwise.\n- Create alternate xslt templates by creating `_amp.xsl` files.\n- Replace content before or after the amp conversion.\nThis can be done using regular expressions in the `config.php` file.\n\n```php\n###### AMP ######\n'amp' =\u003e array(\n    'pre-regexp' =\u003e array(\n        '/regular expression before conversion/' =\u003e 'replacement',\n    ),\n    'post-regexp' =\u003e array(\n        '/regular expression after conversion/' =\u003e 'replacement',\n    ),\n),\n########\n```\n\n### DEBUG ###\n\nThe extension provides its own devkit to be able to debug the html to amp conversion.\nSimply add `?debug-amp` to your url to enable the devkit.\n\n### LICENSE ###\n\nMIT \u003chttp://deuxhuithuit.mit-license.org\u003e\n\n*Voila !*\n\nCome say hi! -\u003e \u003chttps://deuxhuithuit.com/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeuxhuithuit%2Famp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeuxhuithuit%2Famp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeuxhuithuit%2Famp/lists"}