Skip to content

A lightweight, elegant PHP framework for building modern websites with minimal setup

License

Notifications You must be signed in to change notification settings

KornineQNetwork/Xevmium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xevmium - Modern PHP Website Builder

🚀 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!