Download the PHP package snowsoft/nlktheme without Composer
On this page you can find all versions of the php package snowsoft/nlktheme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download snowsoft/nlktheme
More information about snowsoft/nlktheme
Files in snowsoft/nlktheme
Package nlktheme
Short Description FlexPage-style JSON-driven hybrid theme engine for Laravel 13
License MIT
Homepage https://github.com/snowsoft/nlktheme
Informations about the package nlktheme
NLK Theme Package
Laravel için kapsamlı bir tema yönetim paketi. Birden fazla tema desteği, component sistemı, cache yönetimi ve daha fazlası.
Özellikler
- ✅ Çoklu tema desteği
- ✅ Default theme fallback sistemi
- ✅ Component ve partial sistemi
- ✅ Section ve Stack yönetimi
- ✅ Asset yönetimi
- ✅ Cache yönetimi
- ✅ Widget sistemi
- ✅ Event sistemi
- ✅ Helper fonksiyonları
- ✅ Güvenlik özellikleri (XSS koruması, CSP, güvenlik header'ları)
- ✅ Livewire desteği
- ✅ React + SSR desteği (Vite entegrasyonu)
- ✅ Inertia.js desteği
Kurulum
Temel Kullanım
View Render
Theme Ayarlama
Default Theme Fallback
Bir dosya mevcut temada bulunamazsa, otomatik olarak default temadan yüklenir.
Config Ayarları
config/theme.php:
Örnek Kullanım
Partial ve Component
Partial
Component
Blade'de Kullanım
Section Sistemi
Blade Helper
Stack Sistemi
Birden fazla yerde içerik toplamak için:
Blade Helper
Asset Yönetimi
Helper Fonksiyonları
Blade'de Kullanım
Theme Data
Global tema verilerini yönetme:
Cache Yönetimi
View Kontrolü
Helper Fonksiyonlar
Metin İşlemleri
Navigation Helper
Widget Sistemi
Region (Alan) Yönetimi
Event Sistemi
Theme Event'leri
Config'de Event Tanımlama
themes/tema2/config.php:
Event Usage Example
Advanced Features
Compile and Cache
String Compilation
Get Compiled Path
Tema Yapısı
Config Dosyası
config/theme.php:
Middleware Kullanımı
Helper Listesi
theme($theme, $layout)- Theme instance altheme_asset($path)- Asset URLtheme_css($path, $media)- CSS tagtheme_js($path, $defer)- JS tagtheme_image($path, $alt, $attrs)- Image tagtheme_partial($view, $args)- Partial rendertheme_component($name, $data)- Component rendertheme_section($section, $default)- Section gettheme_stack($name)- Stack getactive_class($path, $active)- Active classtheme_truncate($text, $limit)- Truncatetime_ago($datetime)- Time agonumber_format_short($number)- Short numbertheme_cache_clear($theme)- Clear cachehas_theme_view($view)- Check view existshas_theme_section($section)- Check sectionrender_if_exists($view, $args, $default)- Render if existstheme_set($key, $value)- Set theme datatheme_get($key, $default)- Get theme datatheme_schema($schema)- Generate JSON-LD schematheme_product_schema($data)- Generate Product schematheme_organization_schema($data)- Generate Organization schematheme_breadcrumb_schema($items)- Generate BreadcrumbList schematheme_article_schema($data)- Generate Article schematheme_video_schema($data)- Generate Video schema
Artisan Komutları
Paket, tema yönetimi için çeşitli Artisan komutları sunar:
Detaylı kullanım için Artisan Komutları Dokümantasyonu dosyasına bakın.
Gelişmiş Özellikler
Paket artık modern frontend framework'leri ve gelişmiş güvenlik özellikleri ile birlikte geliyor:
Güvenlik
- XSS koruması ve HTML sanitization
- Content Security Policy (CSP) desteği
- Güvenlik header'ları (X-Frame-Options, X-XSS-Protection, vb.)
- View path validation
Modern Frontend Desteği
- Livewire: Server-side reactive component'ler
- React + SSR: Vite entegrasyonu ve server-side rendering
- Inertia.js: SPA deneyimi için tam destek
Detaylı dokümantasyon için:
- Hızlı Başlangıç
- Gelişmiş Özellikler
- Artisan Komutları
- Page Builder
- SEO & Rich Snippets
- Sorun Giderme
- Gelecekteki Özellikler
License
LICENSE
Support
Sorunlarınız için issue açabilirsiniz.
All versions of nlktheme with dependencies
laravel/framework Version ^13.0
matthiasmullie/minify Version *
nesbot/carbon Version *
guzzlehttp/guzzle Version ^7.0