PHPackages                             vtapp/vtphp - 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. [Framework](/categories/framework)
4. /
5. vtapp/vtphp

ActiveProject[Framework](/categories/framework)

vtapp/vtphp
===========

VTPHP - Virtual Tech PHP Framework: A modern, feature-rich PHP framework inspired by Laravel

v1.0.0(6mo ago)11MITPHPPHP &gt;=7.4

Since Nov 3Pushed 6mo agoCompare

[ Source](https://github.com/SYLVESTER-OBIKWELU/vtphp)[ Packagist](https://packagist.org/packages/vtapp/vtphp)[ RSS](/packages/vtapp-vtphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (21)Versions (2)Used By (0)

VTPHP Framework - Virtual Tech PHP
==================================

[](#vtphp-framework---virtual-tech-php)

A powerful, modern PHP framework inspired by Laravel, featuring Eloquent-like ORM, Blade templating (.blade.php), service providers, collections, comprehensive CLI tools, and modern frontend stack with Vite + Tailwind CSS.

---

🎯 Quick Navigation
------------------

[](#-quick-navigation)

- **[📚 Full Documentation →](docs/index.md)** - Complete guides and tutorials
- **[⚡ Quick Start →](docs/getting-started/QUICK_START.md)** - Get started in 5 minutes
- **[📖 Complete Guide →](docs/VTPHP_COMPLETE_GUIDE.md)** - Everything you need to know
- **[🔍 Quick Reference →](docs/QUICK_REFERENCE.md)** - Commands and snippets

---

✨ Features
----------

[](#-features)

✅ **MVC Architecture** - Clean separation of concerns
✅ **Eloquent-like ORM** - ActiveRecord pattern with query builder
✅ **Blade Templating** - .blade.php files with layouts, components, slots
✅ **Service Providers** - SDK and package integration support
✅ **Collections** - 40+ powerful array manipulation methods
✅ **RESTful Routing** - Resource routes with middleware (CORS, CSRF, Auth)
✅ **Database Migrations** - Version control for your database
✅ **Validation System** - 20+ built-in validation rules
✅ **Artisan CLI** - 95+ commands for rapid development
✅ **Beautiful Error Pages** - Laravel-like exception handler with stack traces
✅ **Vite + Tailwind CSS** - Modern frontend tooling with hot reload
✅ **Alpine.js** - Lightweight reactive framework included
✅ **Mail System** - PHPMailer integration
✅ **Logging** - Monolog with multiple channels
✅ **Cache** - File, Redis, Database drivers
✅ **Storage** - Flysystem for local/cloud storage
✅ **Events** - Event dispatcher system
✅ **Queue** - Background job processing

📦 Installation &amp; Setup
--------------------------

[](#-installation--setup)

### 1. Install PHP Dependencies

[](#1-install-php-dependencies)

```
composer install
```

### 2. Install Node Dependencies (for Vite + Tailwind)

[](#2-install-node-dependencies-for-vite--tailwind)

```
npm install
```

### 3. Environment Configuration

[](#3-environment-configuration)

```
cp .env.example .env
php artisan key:generate
```

Edit `.env` and configure your database:

```
APP_NAME="VTPHP Framework"
APP_ENV=development
APP_DEBUG=true
APP_KEY=your_generated_key_here

DB_HOST=localhost
DB_DATABASE=your_database_name
DB_USERNAME=your_username
DB_PASSWORD=your_password
```

### 4. Create Database

[](#4-create-database)

Create a MySQL database:

```
CREATE DATABASE your_database_name;
```

### 5. Run Migrations

[](#5-run-migrations)

```
php artisan migrate
```

### 6. Build Frontend Assets

[](#6-build-frontend-assets)

**Development:**

```
npm run dev
```

**Production:**

```
npm run build
```

### 7. Start Development Server

[](#7-start-development-server)

```
php artisan serve
```

Visit: `http://localhost:8000`

🚀 Quick Examples
----------------

[](#-quick-examples)

### Create a Model

[](#create-a-model)

```
php artisan make:model Post --migration
```

### Create a Controller

[](#create-a-controller)

```
php artisan make:controller PostController --resource
```

### Create a Migration

[](#create-a-migration)

```
php artisan make:migration create_posts_table
```

### Define Routes

[](#define-routes)

Edit `routes/web.php`:

```
$router->resource('/posts', 'App\Controller\PostController');
```

### Create API Routes

[](#create-api-routes)

Edit `routes/api.php`:

```
$router->apiResource('/posts', 'App\Controller\Api\PostController');
```

Common CLI Commands
-------------------

[](#common-cli-commands)

```
# List all commands
php artisan list

# Make commands
php artisan make:controller UserController --resource
php artisan make:model User --migration
php artisan make:migration create_users_table
php artisan make:middleware CheckAge
php artisan make:seeder DatabaseSeeder
php artisan make:request StoreUserRequest
php artisan make:provider CustomServiceProvider
php artisan make:command SendEmails

# Migration commands
php artisan migrate
php artisan migrate:rollback
php artisan migrate:fresh
php artisan migrate:status
php artisan migrate:reset

# Database commands
php artisan db:seed
php artisan db:wipe

# Cache commands
php artisan cache:clear
php artisan view:clear
php artisan config:clear
php artisan config:cache

# Utility commands
php artisan route:list
php artisan key:generate
php artisan tinker

# Development server
php artisan serve
php artisan serve --port=8080
```

Using Collections
-----------------

[](#using-collections)

```
$users = User::all();

// Filter and transform
$activeUsers = $users
    ->where('status', 'active')
    ->sortBy('name')
    ->pluck('email');

// Map data
$userNames = collect($users)->map(function($user) {
    return strtoupper($user->name);
});

// Group by attribute
$byRole = $users->groupBy('role');
```

Service Providers for SDK Integration
-------------------------------------

[](#service-providers-for-sdk-integration)

Install any Composer package and integrate it:

```
composer require vendor/package
```

Create a service provider:

```
php artisan make:provider PackageServiceProvider
```

```
class PackageServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->app->bind('package', function() {
            return new Package(env('PACKAGE_KEY'));
        });
    }
}
```

Register in `config/app.php`:

```
'providers' => [
    App\Providers\PackageServiceProvider::class,
],
```

Blade Templating
----------------

[](#blade-templating)

Create layouts and components:

```

DOCTYPE html>

    @yield('title')

    @yield('content')

@extends('layouts.app')

@section('title', 'Home Page')

@section('content')
    Welcome!

    @component('components.card')
        @slot('title')
            Featured Content
        @endslot

        This is the card body.
    @endcomponent
@endsection
```

📁 Folder Structure
------------------

[](#-folder-structure)

```
framework/
├── app/
│   ├── Controller/        # Your controllers
│   ├── Middleware/        # Custom middleware
│   ├── Models/            # Your models
│   ├── Mail/              # Mail classes
│   ├── Events/            # Event classes
│   ├── Jobs/              # Queue jobs
│   └── Policies/          # Authorization policies
├── config/                # Configuration files
├── core/                  # Framework core (View, Router, Model, etc.)
├── database/
│   ├── migrations/        # Database migrations
│   └── factories/         # Model factories
├── docs/                  # 📚 Complete Documentation
├── public_html/           # Web root (index.php)
│   └── build/             # Built assets (Vite)
├── resources/
│   ├── views/             # Blade templates (.blade.php)
│   ├── css/               # Tailwind CSS
│   └── js/                # Alpine.js + Axios
├── routes/                # Route definitions
│   ├── web.php            # Web routes
│   └── api.php            # API routes
├── storage/
│   ├── app/               # File storage
│   ├── cache/             # Cache files
│   └── logs/              # Log files
├── tests/                 # PHPUnit tests
└── vendor/                # Composer dependencies

```

📚 Documentation
---------------

[](#-documentation)

All documentation is now located in the **`docs/`** folder:

- **[Documentation Index](docs/index.md)** - Start here!
- **[Quick Start Guide](docs/getting-started/QUICK_START.md)** - 5-minute setup
- **[Complete Framework Guide](docs/VTPHP_COMPLETE_GUIDE.md)** - Everything you need
- **[Quick Reference](docs/QUICK_REFERENCE.md)** - Commands and snippets
- **[Blade Templating](docs/BLADE.md)** - Layouts, components, directives
- **[Service Providers](docs/SERVICE_PROVIDERS.md)** - SDK integration
- **[Collections](docs/COLLECTIONS.md)** - 40+ array methods
- **[API Development](docs/API.md)** - REST API guide
- **[Advanced Topics](docs/ADVANCED.md)** - Transactions, uploads, caching

🎓 Next Steps
------------

[](#-next-steps)

1. **Read** [Quick Start Guide](docs/getting-started/QUICK_START.md) to get up and running
2. **Follow** [CRUD Tutorial](docs/how-to-guides/crud-tutorial.md) to build your first app
3. **Learn** [Blade Templating](docs/BLADE.md) for beautiful views
4. **Explore** [Documentation Index](docs/index.md) for everything else

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License
---------

[](#-license)

This framework is open-sourced software licensed under the MIT license.

---

**VTPHP Framework v1.0.0** - Built with ❤️ by Virtual Tech 4. Use collections for data manipulation 5. Check example controllers in `app/Controller/` 6. Study example views in `resource/views/`

Support
-------

[](#support)

For detailed documentation, see `docs/README.md`

Happy coding! 🚀

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance66

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32d09bb9e41735c7ae081987dcca7e43eb369615330d056cfbb0cebd38869312?d=identicon)[SYLVESTER-OBIKWELU](/maintainers/SYLVESTER-OBIKWELU)

---

Top Contributors

[![SYLVESTER-OBIKWELU](https://avatars.githubusercontent.com/u/133868022?v=4)](https://github.com/SYLVESTER-OBIKWELU "SYLVESTER-OBIKWELU (2 commits)")

---

Tags

phpframeworkormblademvctailwindvtphpvirtual-tech

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vtapp-vtphp/health.svg)

```
[![Health](https://phpackages.com/badges/vtapp-vtphp/health.svg)](https://phpackages.com/packages/vtapp-vtphp)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
