kornineqnetwork/xevmium
最新稳定版本:v1.0.3
Composer 安装命令:
composer require kornineqnetwork/xevmium
包简介
A lightweight, elegant PHP framework for building modern websites with minimal setup
关键字:
README 文档
README
🚀 A lightweight, elegant PHP framework for building modern websites with minimal setup.
✨ Features
- 🎨 Built-in theme system with 15 beautiful color schemes
- 📱 Fully responsive design out of the box
- 📝 Markdown support for content creation
- 🔒 Built-in XSS protection
- 🧩 Component-based architecture
- 📦 Zero external dependencies
- 🎯 Simple API for rapid development
🔧 Installation
Install via Composer:
composer require kornineqnetwork/xevmium
🚀 Quick Start
<?php require_once 'vendor/autoload.php'; use kornineqnetwork\Xevmium\Run; $app = new Run(); $app->register(); // Build a simple page $app->buildSite( pageTitle: 'My Website', fileTitle: 'Home', themeName: 'blue', navItems: [ ['url' => '/', 'title' => 'Home'], ['url' => '/about', 'title' => 'About'] ], content: '<h1>Welcome to my website!</h1>', copyright: 'Your Name' );
🎨 Available Themes
- blue (default)
- green
- purple
- orange
- red
- teal
- pink
- yellow
- gray
- indigo
- cyan
- amber
- lime
- brown
- deepPurple
📖 Examples
Creating a Button
$xevmium->createButton('Click Me', '/destination', 'custom-class');
Adding a Table
$headers = ['Name', 'Age', 'Location']; $rows = [ ['John Doe', '25', 'New York'], ['Jane Smith', '30', 'London'] ]; $xevmium->addTable($headers, $rows);
Using Markdown
$markdownParser = new MarkdownParser(); $markdownParser->loadMarkdownPage('content.md');
🛠️ Advanced Usage
Custom Theme Implementation
$app = new Run(); $app->register(); $app->settheme('purple'); $xevmium = $app->build('My Website', 'Custom Page'); $xevmium->buildHeader(); $xevmium->center('start'); $xevmium->createButton('Learn More', '#', 'custom-btn'); $xevmium->center('stop'); $xevmium->buildFooter('Your Company');
📝 License
Apache 2.0 License. See LICENSE for more information.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
🌟 Show your support
Give a ⭐️ if this project helped you!
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-01-05