PHPackages                             johannschopplich/kirby-extended - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. johannschopplich/kirby-extended

Abandoned → [johannschopplich/kirby-helpers](/?search=johannschopplich%2Fkirby-helpers)Kirby-plugin[Utility &amp; Helpers](/categories/utility)

johannschopplich/kirby-extended
===============================

Environment, SEO, and build utilities for Kirby CMS

6.7.1(5mo ago)281.7k5[1 issues](https://github.com/johannschopplich/kirby-helpers/issues)MITPHPCI passing

Since Jun 23Pushed 2w ago1 watchersCompare

[ Source](https://github.com/johannschopplich/kirby-helpers)[ Packagist](https://packagist.org/packages/johannschopplich/kirby-extended)[ Docs](https://github.com/johannschopplich/kirby-helpers#readme)[ RSS](/packages/johannschopplich-kirby-extended/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (100)Used By (0)

 [![Kirby Helpers logo](./.github/favicon.svg)](./.github/favicon.svg)Kirby Helpers
=============

[](#kirby-helpers)

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

[Environment](./docs/env.md) • [SEO Meta](./docs/meta.md) • [Sitemaps](./docs/sitemap.md) • [Redirects](./docs/redirects.md) • [Vite](./docs/vite.md)

When to Use
-----------

[](#when-to-use)

I want to…UseRead 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` optionRedirect dead URLs without touching existing content`redirects` optionServe Vite dev or built assets automatically`vite()->js()` / `vite()->css()`Features
--------

[](#features)

### 🔑 Environment Variables

[](#-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 →](./docs/env.md)**

### 🏷️ SEO Meta Tags

[](#️-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

```

**[Read more →](./docs/meta.md)**

### 🧭 XML Sitemaps

[](#-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 →](./docs/sitemap.md)**

### 🔀 Smart Redirects

[](#-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 →](./docs/redirects.md)**

### ⚡️ Vite Integration

[](#️-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
