承接 tentapress/static-deploy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tentapress/static-deploy

最新稳定版本:v0.6.0

Composer 安装命令:

composer require tentapress/static-deploy

包简介

README 文档

README

Static site generation for TentaPress.

Plugin Details

Field Value
ID tentapress/static-deploy
Version 0.6.0
Provider TentaPress\StaticDeploy\StaticDeployServiceProvider

Features

  • Generate static HTML for all pages and posts
  • Include theme assets (CSS/JS)
  • Generate sitemap.xml and robots.txt
  • Generate 404.html
  • Download as ZIP archive
  • Run saved find/replace rules on staged export files before zipping
  • Review and download stored export archives from the admin screen
  • Use a balanced two-column admin layout on larger screens
  • Present stored exports in a simpler, scan-friendly history list

Dependencies

None.

Admin Menu

Label Route Capability Position Parent
Static Deploy tp.static.index deploy_static 100 Settings

Output

The generated ZIP contains:

  • Pre-rendered HTML files
  • Theme assets
  • sitemap.xml
  • robots.txt
  • 404.html

Replacement Rules

Static Deploy can persist reusable find/replace rules in the admin UI and apply them to the staged export right before the ZIP archive is created.

  • Rules are stored as JSON in plugin settings.
  • Each rule requires find and replace values.
  • Optional files glob patterns limit which exported files are touched.
  • If files is omitted, Static Deploy targets text-like files such as *.html, *.xml, *.txt, *.css, *.js, and *.json.
  • The admin screen includes quick actions to load a working example payload or reset the saved rules to [].

Example:

[
    {
        "find": "<html",
        "replace": "<html data-static-export=\"1\"",
        "files": ["*.html"]
    },
    {
        "find": "https://example.com",
        "replace": "https://cdn.example.com",
        "files": ["*.html", "sitemap.xml"]
    }
]

Development

php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/static-deploy

Note: This is an optional plugin. Not enabled by default.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固