§Play 模組
Play 使用公開模組來擴充內建功能。
若要建立您自己的公開模組或從 play.api.Plugin
進行移轉,請參閱 ScalaPlayModules 或 JavaPlayModules。
§API 主機
§iheartradio/play-swagger
- 網站: https://github.com/iheartradio/play-swagger
- 簡短說明:在您的路由檔案中撰寫 Swagger 規格
§資產
§Typescript 外掛程式
- 網站: https://github.com/ArpNetworking/sbt-typescript
- 簡短說明:一個 sbt 外掛程式,使用 sbt-web 編譯 Typescript 資源
§Svelte 外掛程式
網站: https://github.com/tanin47/sbt-svelte
簡短說明:一個 sbt 外掛程式,使用 sbt-web 編譯 Svelte 元件
§驗證 (登入和註冊) 和授權 (限制存取)
§Silhouette (Scala)
- 網站: https://github.com/playframework/play-silhouette
- 文件: https://silhouette.readme.io/docs
- 簡短說明:一個支援多種驗證方法的驗證程式庫,包括 OAuth1、OAuth2、OpenID、CAS、Credentials、基本驗證、兩步驟驗證或自訂驗證機制。
§Deadbolt 2
- 網站 (Scala): https://github.com/schaloner/deadbolt-2-scala
- 網站 (Java): https://github.com/schaloner/deadbolt-2-java
- 簡短說明:Deadbolt 是一種授權機制,用於定義對特定控制器方法或檢視部分的存取權限,使用簡單的 AND/OR/NOT 語法
§Play-pac4j (Java 和 Scala)
- 網站: https://github.com/pac4j/play-pac4j
- 文件: https://github.com/pac4j/play-pac4j/blob/master/README.md
- 簡短說明:支援 OAuth/CAS/OpenID/HTTP 驗證和使用者個人資料擷取的 Scala 和 Java 中的 Play 應用程式
§Play-hmac-signatures (Scala)
- 網站: https://github.com/phelps-sg/play-hmac-signatures
- 簡短說明:一個 Play Framework 模組,用於建立驗證 HMAC 簽章的動作
§資料儲存
§Flyway 外掛程式
- 網站: https://github.com/flyway/flyway-play
- 文件: https://github.com/flyway/flyway-play/blob/master/README.md
- 簡短說明: 支援使用 Flyway 進行資料庫遷移。
§MongoDB Morphia 外掛程式 (Java)
- 網站(文件、範例): https://github.com/morellik/play-morphia
- 簡短說明: 使用 Morphia 提供受控的 MongoDB 存取和物件對應。
§MongoDB ReactiveMongo 外掛程式 (Scala)
- 網站(文件、範例): http://reactivemongo.org/releases/0.1x/documentation/tutorial/play.html
- 簡短說明: 提供適用於 ReactiveMongo 的 Play 2.x 模組,這是 MongoDB 的非同步反應式驅動程式。
§Play-Slick
- 網站(文件、範例): https://github.com/playframework/play-slick
- 簡短說明: 此外掛程式讓 Slick 成為 Play 的一級公民。
§ScalikeJDBC 外掛程式 (Scala)
- 網站: https://github.com/scalikejdbc/scalikejdbc-play-support
- 簡短說明: 提供另一個 Play 資料庫存取 API
§Redis Cache 外掛程式 (Java 和 Scala)
- 網站: https://github.com/KarelCemus/play-redis
- 簡短說明: 提供基於 Redis 的同步和非同步快取實作。它為 Java 和 Scala 實作 Play 的一般 CacheApi,並提供更多實作各種 Redis 指令的 Scala API,包括對集合的支援。
§網頁呈現
§Play Pagelets
- 網站: https://github.com/splink/pagelets
- 簡短說明: Play Framework 的模組,用於以優雅簡潔的方式建置有韌性和模組化的 Play 應用程式。
- 種子專案: https://github.com/splink/pagelets-seed
§JsMessages
- 網站: https://github.com/julienrf/play-jsmessages
- 簡短說明:允許在用戶端計算在地化訊息。支援 Play 2.7。
§效能
§Google 的 HTML 壓縮器 (Java 和 Scala)
- 網站: https://github.com/fkoehler/play-html-compressor
- 文件: https://github.com/fkoehler/play-html-compressor/blob/master/README.md
- 簡短說明:Google 的 HTML 壓縮器,適用於 Play 2。
§Memcached 外掛程式
- 網站: https://github.com/mumoshu/play2-memcached
- 簡短說明:提供基於 memcached 的快取實作。
§工作排程器
§Akka Quartz 排程器
- 網站: https://github.com/enragedginger/akka-quartz-scheduler
- 文件: https://github.com/enragedginger/akka-quartz-scheduler/blob/master/README.md
- 簡短說明:Quartz 擴充功能和公用程式,用於在 Akka 中進行 cron 式排程
§設定
§遠端組態
- 網站: https://github.com/play-rconf
- 簡短說明:從 etcd、consul、DynamoDB 等遠端提供者載入和套用組態項目 (金鑰和檔案)
§範本和檢視
§Google Closure 範本外掛程式
- 網站 (文件、範例): https://github.com/gawkermedia/play2-closure
- 簡短說明:提供對 Google Closure 範本的支援。支援 Play 2.4。
§Scalate
- 網站: https://github.com/scalate/play-scalate
- 文件: https://scalate.github.io/scalate/documentation/index.html
- 簡短說明: Jade(類似 Haml)、Mustache、Scaml(也類似 Haml)、SSP(類似 Velocity)和 Scuery(CSS3 選擇器語言)的 Twirl HTML 範本支援的替代方案
§PDF 模組 (Java)
- 網站: https://github.com/innoveit/play2-pdf
- 文件: https://github.com/innoveit/play2-pdf/blob/master/README.md
- 簡短說明 從 HTML 範本產生 PDF 輸出
§PlayFOP (Java 和 Scala)
- 網站(線上展示、使用者指南、其他文件): https://www.dmanchester.com/playfop
- 存放庫: https://github.com/dmanchester/playfop
- 簡短說明: 一個用於在 Play 應用程式中建立 PDF、影像和其它類型的輸出的函式庫。接受應用程式產生的 XSL-FO,並使用 Apache FOP 處理它。
§Play-Bootstrap (Java 和 Scala)
- 網站: https://adrianhurt.github.io/play-bootstrap/
- 存放庫: https://github.com/adrianhurt/play-bootstrap
- 簡短說明: 一個提供開箱即用解決方案的 Bootstrap 函式庫,包含一組輸入輔助程式和欄位建構函式。
§Play Form
- 網站: https://github.com/plippe/play-form
- 簡短說明: 一個使用瀏覽器通常不支援的方法(例如
PUT
、PATCH
和DELETE
)提交表單的模組。
§Hepek
- 網站: https://sake92.github.io/hepek/integrations/play-framework.html
- 儲存庫: https://github.com/sake92/hepek
- 簡短說明: 一個用於類型安全產生樣板 HTML 的函式庫。
§公用程式
§電子郵件傳送外掛程式 (Java 和 Scala)
- 網站 (文件、範例): https://github.com/playframework/play-mailer
- 簡短說明: 提供一個基於 apache commons-email 的電子郵件傳送器
§play-guard (Scala)
- 網站: https://github.com/sief/play-guard/
- 文件: https://github.com/sief/play-guard/blob/master/README.md
- 簡短說明: Play2 模組,用於封鎖和限制濫用請求
§play-secret-rotation (Scala)
- 網站: https://github.com/guardian/play-secret-rotation
- 簡短說明: 在活動叢集上提供 Play2 應用程式機密輪替。
§雲端服務
§Benji (Scala)
- 網站: https://github.com/zengularity/benji
- 文件: https://github.com/zengularity/benji/tree/master/examples
- 簡短說明: Benji 函式庫的反應式模組,提供物件儲存 DSL (AWS/Ceph S3、Google Cloud Storage)。
§已封存或未維護的模組
這些函式庫不再維護,因此它們可能不支援最近的 Play 版本,也可能包含未修補的
錯誤和安全漏洞。您可能會發現它們作為範例很有用,但除非
你完全理解他們在做什麼,並且願意自己分叉它們來修復問題。
如果任何模組的狀態已變更,請隨時發送公關進行更新
在這裡.
§mohiva/swagger-codegen-play-scala
- 網站: https://github.com/mohiva/swagger-codegen-play-scala
- 簡短說明:基於 PlayWS 函式庫的 Swagger 客户端產生器
§play2-sprites
- 網站: https://github.com/koofr/play2-sprites/
- 簡短說明:play2-sprites 是從影像產生雪碧圖的 sbt 外掛程式。
§Sass 外掛程式
- 網站: https://github.com/jlitola/play-sass
- 簡短說明:Sass 檔案的資產處理
§play-webpack 外掛程式
- 網站: https://github.com/BowlingX/play-webpack
- 簡短說明:一個 sbt 外掛程式,用於處理 webpack 產生的資產,以及一個函式庫,用於使用 Java 的 nashorn 引擎在伺服器上呈現 Javascript。
§驗證和授權模組 (Scala)
- 網站: https://github.com/t2v/play20-auth
- 文件 (英文): https://github.com/t2v/play20-auth/blob/master/README.md
- 文件 (日文): https://github.com/t2v/play20-auth/blob/master/README.ja.md
- 簡短說明此模組提供驗證和授權方式
§SecureSocial (Java 和 Scala)
- 網站: http://securesocial.ws/
- 簡短說明:支援 OAuth、OAuth2、OpenID、使用者名稱/密碼和自訂驗證方案的驗證模組。
§MongoDB Jongo 外掛程式 (Java)
- 網站 (文件、範例): https://github.com/alexanderjarvis/play-jongo
- 簡要說明:使用 Jongo 提供受控的 MongoDB 存取和物件對應
§Play-Hippo
- 網站 (文件、範例): https://github.com/jbloemendal/play-hippo
- 簡要說明:提供 Play 2.x 模組給 Hippo CMS。
§Redis 外掛程式 (Java 和 Scala)
- 網站 (文件、範例): https://github.com/typesafehub/play-plugins
- 簡要說明:提供基於 Redis 的快取實作,也讓您使用 Redis 特定的 API
§WAR 模組
- 網站: https://github.com/dlecan/play2-war-plugin
- 文件: https://github.com/dlecan/play2-war-plugin/blob/develop/README.md
- 簡要說明:允許將 Play! 2.x 應用程式封裝到標準 WAR 套件中。
§FolderMessages 外掛程式
- 網站: https://github.com/germanosin/play-foldermessages
- 簡要說明:允許您將在地化訊息檔案分割成可管理的個別檔案。
§訊息編譯器外掛程式 (Scala)
- 網站: https://github.com/tegonal/play-messagescompiler
- 文件: https://github.com/tegonal/play-messagescompiler/blob/master/readme.md
- 簡要說明:提供專案訊息的類型安全。
§Play I18n HOCON
- 網站: https://marcospereira.github.io/play-i18n-hocon/
- 文件: https://marcospereira.github.io/play-i18n-hocon/
- 簡短說明:Playframework 模組,使用 HOCON 進行國際化,而非 Java 屬性
§play-akkjobs
- 網站: https://github.com/tuxBurner/play-akkjobs
- 文件: https://github.com/tuxBurner/play-akkjobs/blob/master/README.md
- 簡短說明:一個簡單的 Play 2.5 模組,可讓您管理工作
§HTML5 標籤模組(Java 和 Scala)
- 網站: https://github.com/loicdescotte/Play2-HTML5Tags
- 文件: https://github.com/loicdescotte/Play2-HTML5Tags/blob/master/README.md
- 簡短說明:這些標籤會根據模型限制(例如,必要、電子郵件格式、最大或最小長度…)和特定輸入欄位(日期、電話號碼、網址…)為 Play 範本新增用戶端驗證功能
§Thymeleaf 模組(Scala)
- 網站: https://github.com/dmitraver/scala-play-thymeleaf-plugin
- 文件: https://github.com/dmitraver/scala-play-thymeleaf-plugin/blob/master/README.md
- 簡短說明:允許使用 Thymeleaf 範本引擎作為替代方案
到 Twirl
§Handlebars 範本(Java 和 Scala)
- 網站: https://github.com/andriykuba/play-handlebars
- 文件: https://github.com/andriykuba/play-handlebars/blob/master/README.md
- 簡短說明: Handlebars 範本基於 Java 埠,具備 Play Framework 的特殊處理程式。
§地理位置(Java)
- 網站: https://edulify.github.io/play-geolocation-module.edulify.com/
- 文件: https://github.com/edulify/play-geolocation-module.edulify.com/blob/master/README.md
- 簡短說明:根據 IP 取得地理位置資料的模組。
§JSONP 篩選器
- 網站: https://github.com/julienrf/play-jsonp-filter
- 簡短說明:在現有的 HTTP API 上啟用 JSONP。
§網站地圖產生器(Java)
- 網站: https://edulify.github.io/play-sitemap-module.edulify.com/
- 文件: https://github.com/edulify/play-sitemap-module.edulify.com/blob/master/READM
§Amazon SES 模組(Scala)
- 網站: https://github.com/Rhinofly/play-mailer
- 文件: https://github.com/Rhinofly/play-mailer/blob/master/README.md
- 簡短說明:Play 的 SES(簡單電子郵件服務)API 包裝器
§Amazon S3 模組(Scala)
- 網站: https://github.com/Rhinofly/play-s3
- 文件: https://github.com/Rhinofly/play-s3/blob/master/README.md
- 簡短說明:Play 的 S3(簡單儲存服務)API 包裝器
§Pusher
- 網站: https://pusher.com/
- 文件: https://github.com/tindr/Play2Pusher
- 簡短說明:在 Play 應用程式中輕鬆與 Pusher 服務互動。
§推播通知模組(Java)
- 網站: https://github.com/splendidbits/play-pushservices
- 文件: https://github.com/splendidbits/play-pushservices/blob/master/README.md
- 簡述: 一個用於建立、批次處理、排隊和發送推播通知的超簡單模組。
下一步: 結束支援 (EOL) 日期
在此文件發現錯誤?此頁面的原始程式碼可以在 這裡 找到。在閱讀 文件指南 後,歡迎貢獻拉取請求。有問題或建議要分享?請前往 我們的社群論壇 與社群展開對話。