victo/velty
Composer 安装命令:
composer require victo/velty
包简介
The best PHP Framework
README 文档
README
Velty is a custom-built PHP microframework focused on clarity, speed, and a modern developer experience.
It features routing, dynamic views, middleware, and a Laravel-Ignition-style debug system.
🚀 Current Features
- ✅ Full routing system (GET, POST, groups, middleware, named routes)
- ✅ Secure middleware with interface validation
- ✅ Dynamic views using
{{ variables }} - ✅ Visual debug system (stack trace, code preview, suggestions)
- ✅ Custom exceptions (
ViewNotFoundException, etc.) - ✅ Modern 404 error page
- ✅ PSR-4 autoloading (via Composer)
- ✅
.envsupport withAPP_DEBUGtoggle
📁 Basic Structure
Velty/
├── app/
├── core/
│ └── Router.php
│ └── View.php
├── public/
│ └── index.php
├── resources/
│ └── views/
│ └── welcome.php
│ └── errors/404.php
├── routes/
│ └── web.php
├── src/Exceptions/
│ └── ViewNotFoundException.php
├── .env
├── composer.json
⚙️ Requirements
- PHP 8.1+
- Composer
📦 Installation
git clone https://github.com/yourusername/velty.git
cd velty
composer install
▶️ Run
php velty run
📌 Coming Soon
- Built-in CLI:
php velty make:controller,init - Controller@method routing support
- Blade-style template system (
@include,@extends) - Basic authentication system
- Integrated testing framework
Crafted with ❤️ by Viespa.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-12