PHPackages                             jerichen/laravel-convert-html-to-amp - 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. [Framework](/categories/framework)
4. /
5. jerichen/laravel-convert-html-to-amp

ActiveLibrary[Framework](/categories/framework)

jerichen/laravel-convert-html-to-amp
====================================

1.5(6y ago)024MITPHPPHP &gt;=7.1.3CI failing

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jerichen/laravel-convert-html-to-amp)[ Packagist](https://packagist.org/packages/jerichen/laravel-convert-html-to-amp)[ RSS](/packages/jerichen-laravel-convert-html-to-amp/feed)WikiDiscussions master Synced yesterday

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

About convert-html-to-amp
-------------------------

[](#about-convert-html-to-amp)

#### 將文章內容由Html轉成符合amp內容。包含 :

[](#將文章內容由html轉成符合amp內容包含-)

- image
- iframe
- youtube-iframe
- instagram-iframe
- facebook-ifram

#### Packages 使用方式

[](#packages-使用方式)

```
composer require jerichen/laravel-convert-html-to-amp
```

or

```
composer config repositories.laravel-convert-html-to-amp vcs git@github.com:jerichen/laravel-convert-html-to-amp
```

- publish migrations (原本有 Article 就只做這個)

```
php artisan vendor:publish --tag="amp-migrations"
```

- 如果沒有 Article 做以下的動作(建立Article範例)

```
php artisan vendor:publish --tag="migrations"
php artisan vendor:publish --tag="seeds"
php artisan vendor:publish --tag="models"
php artisan db:seed --class=ArticleTableSeeder
```

- ArticleController 範例檔

```
