PHPackages                             clintonnzedimma/woski - 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. clintonnzedimma/woski

ActiveProject[Framework](/categories/framework)

clintonnzedimma/woski
=====================

Woski is a simple fast PHP framework for the Realm.

v2.0.0(1y ago)22182[1 issues](https://github.com/clintonnzedimma/woski/issues)MITPHPPHP &gt;=7.4

Since Aug 18Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/clintonnzedimma/woski)[ Packagist](https://packagist.org/packages/clintonnzedimma/woski)[ Docs](https://github.com/clintonnzedimma/woski)[ RSS](/packages/clintonnzedimma-woski/feed)WikiDiscussions master Synced 1mo ago

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

[![](assets/img/logo.png)](assets/img/logo.png)

 Woski is a simple fast PHP framework for the Realm
 [**The Project**](https://www.woski.xyz)

--

[](#)

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

[](#-features)

- **PSR-4 Autoloading** via Composer
- **Express-style Routing**
    - HTTP verbs: `get`, `post`, `put`, `patch`, `delete`, `any`
    - Route groups: `$app->use('/admin', _import('routes/admin.routes.php'))`
- **Middleware Pipeline**
    - Global middleware: `$app->use([$mw->handle])`
    - Route-specific &amp; group middleware
    - `Next` / `Block` control flow
    - Debug logging with `WOSKIPHP_MIDDLEWARE_DEBUG=true`
- **Error Handling**
    - Custom 404 handlers per method or global via `$app->error()`
- **Request &amp; Response Objects**
    - `$req->body`, `$req->query`, `$req->files`, `$req->cookies`
    - `$req->hasFile('avatar')`, `$req->isImage('avatar')`
    - `$res->json()`, `$res->send()`, `$res->sendStatus()`
- **Input Validation**
    - `validate($req->body, [...rules...])` with aliases
- **File Uploads**
    - Easy retrieval: `Request::file('avatar')`
- **Configuration &amp; .env**
    - `env('KEY', $default)` and `config('app.name')` helpers
    - All core vars prefixed `WOSKIPHP_`
- **Logging**
    - `logger()->info()`, `warning()`, `error()`, `debug()` → `storage/logs/woski.log`
- **CLI Tooling** (`php woski ...`)
    - `--run [--port=]` → quick dev server
    - `--make:controller=Name`
    - `--make:middleware=Name`
    - `--help`

---

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

[](#-installation)

```
composer create-project clintonnzedimma/woski my-app
cd my-app
composer install
cp .env.example .env        # configure as needed
mkdir -p storage/logs        # ensure log folder exists
```

---

⚙️ Quick Start
--------------

[](#️-quick-start)

1. **Bootstrap &amp; start:**

    ```
    // index.php (or public/index.php)
    require 'core/woski.php';

    $app = new Woski\Application;

    // Global middleware example
    // $app->use([$demoMW->handle]);

    // Basic route
    $app->get('/', [$homeController->index]);

    // Grouped routes
    $app->use('/example', [$demoMW->foo], _import('routes/example.routes.php'));

    // 404 handler
    $app->error(['GET','POST','PUT','PATCH'], function($req, $res) {
        $res->sendStatus(404);
        return $res->json(['error'=>'Not found']);
    });

    $app->start();
    ```
2. **Run dev server:**

    ```
    php woski --run           # default port 3000 or WOSKIPHP_PORT
    php woski --run --port=8xxx
    ```
3. **Generate code:**

    ```
    php woski --make:controller UserController
    php woski --make:middleware AuthMiddleware
    php woski --make:model User --table=users
    ```

---

🛠 Configuration
---------------

[](#-configuration)

- Core **.env variables** must be prefixed `WOSKIPHP_`, e.g.: ```
    WOSKIPHP_PORT=4000
    WOSKIPHP_MIDDLEWARE_DEBUG=true

    ```
- **config/app.php** returns an array you can access via: ```
    config('app.name');   // "WoskiPHP"
    config('app.debug');  // true/false
    ```

---

🔒 Request Validation
--------------------

[](#-request-validation)

```
$errors = validate($req->body, [
  'email'    => 'required|email:Email Address',
  'password' => 'required|min:6:Password',
]);
if ($errors) {
  return $res->json(['errors'=>$errors], 422);
}
```

---

🗂 File Uploads
--------------

[](#-file-uploads)

```
if ($req->hasFile('avatar') && $req->isImage('avatar')) {
  $file = $req->files['avatar'];
  move_uploaded_file($file['tmp_name'], 'uploads/'.$file['name']);
  return $res->json(['message'=>'Uploaded']);
}
```

---

🧑‍💻 Contributing
----------------

[](#‍-contributing)

1. Fork the repo
2. Create a feature branch (`git checkout -b feature/...`)
3. Commit your changes (`git commit -m 'Add ...'`)
4. Push to the branch (`git push`)
5. Open a Pull Request

---

📄 License
---------

[](#-license)

Licensed under the MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance60

Regular maintenance activity

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Every ~1010 days

Total

2

Last Release

402d ago

Major Versions

v1.x-dev → v2.0.02025-05-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34009341?v=4)[Clinton Nzedimma](/maintainers/clintonnzedimma)[@clintonnzedimma](https://github.com/clintonnzedimma)

---

Top Contributors

[![clintonnzedimma](https://avatars.githubusercontent.com/u/34009341?v=4)](https://github.com/clintonnzedimma "clintonnzedimma (12 commits)")

---

Tags

phpframeworkwoskiwoskiphp

### Embed Badge

![Health badge](/badges/clintonnzedimma-woski/health.svg)

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[laravel/framework

The Laravel Framework.

34.8k543.8M19.8k](/packages/laravel-framework)[getkirby/cms

The Kirby core

1.5k584.8k454](/packages/getkirby-cms)[alleyinteractive/mantle-framework

A framework for powerful WordPress development

28325.2k2](/packages/alleyinteractive-mantle-framework)[doppar/framework

The Doppar Framework

4012.4k14](/packages/doppar-framework)

PHPackages © 2026

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