PHPackages                             gwack/core - 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. gwack/core

ActiveLibrary[Framework](/categories/framework)

gwack/core
==========

The gwack framework

0.1.1(8mo ago)27MITPHPPHP &gt;=8.3

Since Sep 14Pushed 8mo agoCompare

[ Source](https://github.com/Gwack-Framework/core)[ Packagist](https://packagist.org/packages/gwack/core)[ RSS](/packages/gwack-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Gwack Framework
===============

[](#gwack-framework)

Gwack is a modern PHP framework designed for full-stack development with seamless Vue.js integration. Built with developer experience in mind, it offers file-based routing, powerful dependency injection, and fast development workflow.

🚀 Features
----------

[](#-features)

- **File-Based Routing**: Zero configuration routing - just create PHP files in your `server/` directory
- **Vue.js Integration**: Native Vue.js support with hot module reloading
- **High Performance**: Optimized router with static route lookup and intelligent regex grouping
- **PSR Compliant**: Built on Symfony components with PSR standards compliance
- **Dependency Injection**: Container system with automatic resolution and caching
- **Developer Experience**: CLI tools for project scaffolding, development server, and production builds
- **API-First Design**: RESTful API server with built-in serialization and validation

📦 Installation
--------------

[](#-installation)

### Using the CLI (Recommended)

[](#using-the-cli-recommended)

```
# Install the CLI globally
npm install -g @gwack/cli

# Create a new project
gwack create my-app

# Navigate to your project
cd my-app

# Install PHP dependencies
composer install

# Start development server
gwack dev
```

### Manual Installation

[](#manual-installation)

```
# Install via Composer
composer require gwack/core

# Install frontend tooling
npm install @gwack/cli
```

🏗 Example Project Structure
---------------------------

[](#-example-project-structure)

```
my-app/
├── pages/                 # Vue.js pages (frontend)
│   ├── index.vue         # Home page
│   └── about.vue         # About page
├── server/               # PHP API routes (backend)
│   ├── posts/
│   │   └── index.php     # GET/POST /api/posts
│   └── users/
│       └── [id].php      # GET/POST /api/users/{id}
├── assets/               # Static assets
├── gwack.config.js       # Framework configuration
├── composer.json         # PHP dependencies
├── package.json          # Node.js dependencies
└── index.html           # Entry point

```

🎯 Quick Start
-------------

[](#-quick-start)

### 1. Backend API Routes

[](#1-backend-api-routes)

Create API endpoints by adding PHP files to the `server/` directory:

```
