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

ActiveFramework[Framework](/categories/framework)

seymenkonuk/framework
=====================

Modern PHP uygulamaları geliştirmek için tasarlanmış, hafif ve sade bir MVC framework'ü.

v1.4.4(2w ago)0273↓50%1MITPHPCI passing

Since Jun 11Pushed 1w agoCompare

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

READMEChangelogDependencies (12)Versions (20)Used By (1)

Framework
=========

[](#framework)

> Modern PHP uygulamaları için geliştirilmiş hafif ve sade bir MVC framework çekirdeği.

Açıklama
--------

[](#açıklama)

Modern PHP uygulamaları geliştirmek için oluşturulmuş hafif, sade ve geliştirici dostu bir MVC framework'üdür.

Framework; yalnızca ihtiyaç duyulan temel bileşenleri sağlayarak gereksiz karmaşıklıklardan kaçınır. Attribute tabanlı routing, middleware desteği, Dependency Injection Container, otomatik request validation ve authorization kontrolleri, session yönetimi, flash mesaj sistemi, cache ve veri tabanı gibi modern web uygulamalarında sık kullanılan özellikleri sunar.

Büyük framework'lerde zamanla oluşan karmaşık yapıların aksine, küçük ve anlaşılabilir bir çekirdek üzerine inşa edilmiştir. Bu sayede framework'ün çalışma mantığını öğrenmek, özelleştirmek ve ihtiyaçlara göre genişletmek oldukça kolaydır.

Bu framework'ün amacı, geliştiricilere esneklikten ödün vermeden hızlı geliştirme imkânı sunmak ve modern PHP uygulamaları için sağlam bir temel oluşturmaktır.

Özellikler
----------

[](#özellikler)

- MVC mimarisi
- Dependency Injection Container
- Constructor Injection &amp; Method Injection
- Klasik Routing &amp; Attribute Routing
- Middleware sistemi
- Request / Response abstraction
- UploadedFile abstraction
- Session &amp; Flash Messages
- Redis Cache
- PDO Database katmanı
- Repository Pattern
- Fluent API
- Route bazlı schema validation sistemi

Kurulum
-------

[](#kurulum)

```
composer require seymenkonuk/framework
```

Kullanım
--------

[](#kullanım)

### Klasik Routing

[](#klasik-routing)

```
$router->get("/", [HomeController::class, "index"]);
```

### Attribute Routing

[](#attribute-routing)

```
class HomeController extends Controller {
    #[Get("/")]
    public function index(Response $response){
        return $response->view("home");
    }
}
```

### Dependency Injection

[](#dependency-injection)

```
class UserController extends Controller {
    public function __construct(
        private UserRepository $users,
    ) {}

    public function index(Response $response)
    {
        return $response->json(
            $this->users->all()
        );
    }
}
```

### Dosya Yükleme

[](#dosya-yükleme)

```
$path = $request
            ->file("avatar")
            ->move("path");
```

Route Bazlı Şema (Validation + Authorization)
---------------------------------------------

[](#route-bazlı-şema-validation--authorization)

### Şema Tanımı

[](#şema-tanımı)

```
class ExampleSchema extends Schema
{
    public function __construct(
        protected Validator $validator
    ) {}

    public function body(): ObjectValidator
    {
        return $this->validator->object()->schema([
            "username" => $this->validator->field()
                ->string()
                ->min(3)
                ->required(),

            "email" => $this->validator->field()
                ->email()
                ->required(),
        ]);
    }

    public function query(): ObjectValidator
    {
        return $this->validator->object()->schema([]);
    }

    public function params(): ObjectValidator
    {
        return $this->validator->object()->schema([]);
    }

    public function files(): ObjectValidator
    {
        return $this->validator->object()->schema([]);
    }

    public function authorize(): ?array
    {
        if (true) {
            return [
                "title" => "Unauthorized",
                "description" => "Bu işlem için giriş yapmalısınız."
            ];
        }

        return null;
    }
}
```

### Route Üzerinde Kullanımı

[](#route-üzerinde-kullanımı)

```
$router->post(
    "/users/{id}",
    [UserController::class, "update"],
)->schema(ExampleSchema::class);
```

Lisans
------

[](#lisans)

Bu proje [MIT Lisansı](https://github.com/seymenkonuk/framework/blob/main/LICENSE) ile lisanslanmıştır.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance98

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

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 ~1 days

Total

19

Last Release

15d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/140429392?v=4)[Recep Seymen Konuk](/maintainers/seymenkonuk)[@seymenkonuk](https://github.com/seymenkonuk)

---

Top Contributors

[![seymenkonuk](https://avatars.githubusercontent.com/u/140429392?v=4)](https://github.com/seymenkonuk "seymenkonuk (27 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/seymenkonuk-framework/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[oro/platform

Business Application Platform (BAP)

645143.5k116](/packages/oro-platform)[lion/bundle

Lion-framework configuration and initialization package

122.4k4](/packages/lion-bundle)[concrete5/core

Concrete core subtree split

20166.1k53](/packages/concrete5-core)

PHPackages © 2026

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