PHPackages                             trioagus/velocix-framework - 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. trioagus/velocix-framework

ActiveLibrary[Framework](/categories/framework)

trioagus/velocix-framework
==========================

Velocix PHP Framework - Lightweight with SPA Support

1.0.1(4mo ago)161MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4|^8.5

Since Jan 8Pushed 4mo agoCompare

[ Source](https://github.com/trioagus/velocix-framework)[ Packagist](https://packagist.org/packages/trioagus/velocix-framework)[ RSS](/packages/trioagus-velocix-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

Velocix CLI Documentation
=========================

[](#velocix-cli-documentation)

Complete guide to using the Velocix command-line interface (CLI) tool.

[![Packagist](https://camo.githubusercontent.com/1ddfc12e7df97a41c51bd0f0c8b8982ec4f124f06692bb1db2c03a7dbaaf160c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7472696f616775732f76656c6f6369782d6672616d65776f726b2e737667)](https://packagist.org/packages/trioagus/velocix-framework)

Table of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Basic Usage](#basic-usage)
- [Available Commands](#available-commands)
    - [Server Commands](#server-commands)
    - [Make Commands](#make-commands)
    - [Database Commands](#database-commands)
    - [Cache Commands](#cache-commands)
    - [Optimization Commands](#optimization-commands)
    - [Storage Commands](#storage-commands)
    - [Authentication Commands](#authentication-commands)
- [Command Reference](#command-reference)

---

Introduction
------------

[](#introduction)

The Velocix CLI (`velocix`) is a powerful command-line tool that helps you manage your Velocix application. It provides commands for generating code, running migrations, managing cache, and much more.

Basic Usage
-----------

[](#basic-usage)

All Velocix commands follow this syntax:

```
php velocix  [arguments] [options]
```

To see all available commands:

```
php velocix help
```

---

Available Commands
------------------

[](#available-commands)

### Server Commands

[](#server-commands)

#### `serve`

[](#serve)

Start the built-in PHP development server.

**Syntax:**

```
php velocix serve [host] [port]
```

**Arguments:**

- `host` - Server host (default: `localhost`)
- `port` - Server port (default: `8000`)

**Examples:**

```
# Start on default (localhost:8000)
php velocix serve

# Custom host and port
php velocix serve 127.0.0.1 3000

# Run on all interfaces
php velocix serve 0.0.0.0 8000
```

**Output:**

```
⚡ Velocix development server started
   Server running at: http://localhost:8000
   Press Ctrl+C to stop

```

---

### Make Commands

[](#make-commands)

#### `make:controller`

[](#makecontroller)

Create a new controller class.

**Syntax:**

```
php velocix make:controller
```

**Arguments:**

- `ControllerName` - Name of the controller (e.g., `UserController`)

**Examples:**

```
# Basic controller
php velocix make:controller UserController

# Namespaced controller
php velocix make:controller Api/UserController
php velocix make:controller Admin/DashboardController
```

**Generated File:**

```
app/Http/Controllers/UserController.php
app/Http/Controllers/Api/UserController.php

```

**Generated Code:**

```
