PHPackages                             devkussema/semantica-app - 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. devkussema/semantica-app

ActiveProject[Framework](/categories/framework)

devkussema/semantica-app
========================

Semantica Framework - Modern PHP framework application skeleton

v1.0.3(7mo ago)030MITPHPPHP &gt;=8.0

Since Sep 28Pushed 7mo agoCompare

[ Source](https://github.com/devkussema/semantica-app)[ Packagist](https://packagist.org/packages/devkussema/semantica-app)[ Docs](https://github.com/devkussema/semantica-app)[ RSS](/packages/devkussema-semantica-app/feed)WikiDiscussions main Synced 1mo ago

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

🚀 Semantica Framework - Application Skeleton
============================================

[](#-semantica-framework---application-skeleton)

[![PHP Version](https://camo.githubusercontent.com/f9a61eee600abfa4c06628ff826dc6a7dfffc0cceca828fd79751b43e44f451f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e302d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Framework](https://camo.githubusercontent.com/8e587307ad87f38f5dde402fbc040ee1428a1e00b23540d31b6bfda0e5a2ea34/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616d65776f726b2d53656d616e746963612d707572706c652e737667)](https://github.com/devkussema/semantica-core)[![Version](https://camo.githubusercontent.com/06d6b280d5ea9ece1814e76e22b8c99f50ff6c6e76a543d96498848143751bbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e302d6f72616e67652e737667)](https://github.com/devkussema/semantica-app/releases)

Modern PHP framework application skeleton inspired by Laravel's elegance and simplicity.

**Created by:** Augusto Kussema
**Date:** September 28, 2025
**Version:** 1.0.0

📦 Quick Start
-------------

[](#-quick-start)

```
# Install via Composer (replace  with your project name)
composer create-project devkussema/semantica-app

# Navigate to project
cd

# Make CLI executable (Unix/Linux/macOS)
chmod +x semantica

# Start development server
./semantica serve
```

### Alternative Installation Methods

[](#alternative-installation-methods)

#### Option 1: Specific Version

[](#option-1-specific-version)

```
composer create-project devkussema/semantica-app:^1.0 my-project
```

#### Option 2: Clone Repository

[](#option-2-clone-repository)

```
git clone https://github.com/devkussema/semantica-app.git my-project
cd my-project
composer install
cp .env.example .env
chmod +x semantica
```

🛠️ Initial Setup
----------------

[](#️-initial-setup)

1. **Environment Configuration:**

    ```
    # Copy environment file (done automatically by post-install script)
    cp .env.example .env

    # Edit your database and app settings
    nano .env
    ```
2. **Database Setup:**

    ```
    # Run migrations
    ./semantica migrate
    ```
3. **Start Development Server:**

    ```
    # Start built-in server (default: http://localhost:8000)
    ./semantica serve

    # Custom host and port
    ./semantica serve --host=127.0.0.1 --port=8080
    ```

🎯 Features
----------

[](#-features)

- **🚀 Laravel-inspired CLI** - Artisan-like command system
- **🔄 Modern Routing** - Fluent API with groups and middleware
- **🎨 Theme System** - Dynamic template switching
- **💾 Multi-Database** - MySQL, PostgreSQL, SQLite support
- **🧩 Helper Functions** - Laravel-style helper functions
- **📦 PSR-4 Autoloading** - Modern PHP standards
- **🛡️ Apache Ready** - Includes .htaccess for clean URLs

📚 Available Commands
--------------------

[](#-available-commands)

### Framework Commands

[](#framework-commands)

```
./semantica list              # List all available commands
./semantica serve            # Start development server
./semantica migrate          # Run database migrations
./semantica route:list       # List all registered routes
```

### Code Generation

[](#code-generation)

```
./semantica make:controller UserController    # Create controller
./semantica make:model User                   # Create model
./semantica make:middleware AuthMiddleware    # Create middleware
```

🏗️ Project Structure
--------------------

[](#️-project-structure)

```
project-root/
├── app/
│   ├── Commands/           # CLI commands
│   ├── Controllers/        # HTTP controllers
│   └── Models/            # Data models
├── config/                # Configuration files
│   ├── app.php           # App configuration
│   ├── database.php      # Database configuration
│   └── template.php      # Template configuration
├── database/
│   └── migrations/       # Database migrations
├── public/               # Web root directory
│   ├── index.php        # Application entry point
│   └── .htaccess        # Apache configuration
├── routes/
│   └── web.php          # Web routes
├── templates/           # View templates
│   ├── default/        # Default theme
│   └── admin_v1/       # Admin theme
├── .env.example        # Environment template
├── composer.json       # Composer dependencies
└── semantica          # CLI tool

```

🎨 Basic Usage
-------------

[](#-basic-usage)

### Routing

[](#routing)

```
// routes/web.php
use Semantica\Core\Router;

Router::get('/', function() {
    return view('home');
});

Router::get('/users/{id}', function($id) {
    return view('users.show', ['id' => $id]);
});

// Route groups
Router::group(['prefix' => 'api'], function() {
    Router::get('/users', 'UserController@index');
    Router::post('/users', 'UserController@store');
});
```

### Controllers

[](#controllers)

```
// app/Controllers/UserController.php
