johannschopplich/kirby-extended 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

johannschopplich/kirby-extended

Composer 安装命令:

composer require johannschopplich/kirby-extended

包简介

Environment, SEO, and build utilities for Kirby CMS

README 文档

README

Kirby Helpers logo

Kirby Helpers

Environment variables, SEO meta, XML sitemaps, URL redirects, and Vite integration for Kirby – the utilities most projects re-implement, in one plugin.

EnvironmentSEO MetaSitemapsRedirectsVite

When to Use

I want to… Use
Read typed values from a .env file env('KEY', $fallback)
Emit meta description, OpenGraph, Twitter, and JSON-LD $page->meta()->social()
Auto-generate an XML sitemap with hreflang sitemap.enabled option
Redirect dead URLs without touching existing content redirects option
Serve Vite dev or built assets automatically vite()->js() / vite()->css()

Features

🔑 Environment Variables

Load .env files and read variables through a global env() helper, with type coercion and fallbacks.

// .env file support with fallbacks
$apiKey = env('STRIPE_SECRET_KEY', 'fallback-key');

Read more →

🏷️ SEO Meta Tags

Generate meta description, OpenGraph, Twitter Card, JSON-LD, and canonical tags from page fields, page models, and global defaults.

// Complete meta tag generation
<?= $page->meta()->social() ?>
<?= $page->meta()->robots() ?>

Read more →

🧭 XML Sitemaps

Auto-generate XML sitemaps with multilingual hreflang, template and page exclusion, and per-page control via blueprints.

// Automatically available at /sitemap.xml
// Supports hreflang for multilingual sites

Read more →

🔀 Smart Redirects

Pattern-based redirect rules that only fire when no existing page or route matches the URL, with placeholders and callback targets.

// Pattern-based redirects with placeholders
'old/blog/(:any)' => 'news/$1'

Read more →

⚡️ Vite Integration

Switch between the Vite dev server (with HMR) and built manifest.json assets automatically, including Panel asset integration.

// Load Vite assets with automatic dev/production switching
<?= vite()->js('src/main.js') ?>
<?= vite()->css('src/main.js') ?>

Read more →

Requirements

  • Kirby 5
  • PHP 8.3+

Installation

Composer (Recommended)

composer require johannschopplich/kirby-helpers

Manual Installation

Download and copy this repository to /site/plugins/kirby-helpers.

License

MIT License © 2020-PRESENT Johann Schopplich

MIT License © 2020-2022 Bastian Allgeier

MIT License © 2020-2022 Nico Hoffmann

统计信息

  • 总下载量: 1.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 28
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 28
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固