karyakode / framework
The Kodhe framework
Package info
Type:project
pkg:composer/karyakode/framework
dev-master
2026-08-07 02:01 UTC
Requires
- php: >=8.1
- eftec/bladeone: ^4.19
- paragonie/random_compat: ^9.99
Requires (Dev)
- mikey179/vfsstream: 1.6.*
- phpunit/phpunit: 9.*
Suggests
- paragonie/random_compat: Provides better randomness in PHP 5.x
This package is not auto-updated.
Last update: 2026-08-07 02:02:39 UTC
README
Setiap package berdiri sendiri. Install hanya yang dibutuhkan.
Standar yang Diterapkan
- PSR-4 — Autoload & struktur namespace
- PSR-12 — Coding style (header, declare strict_types, namespace, use, brace)
Contoh header file (PSR-12)
<?php declare(strict_types=1); namespace Kodhe\Framework\Http\Middleware; use Kodhe\Framework\Http\Request; use Kodhe\Framework\Http\Response; use Throwable; class CallableMiddleware implements MiddlewareInterface { // ... }
Namespace (PSR-4)
Core
| Package | Composer | Namespace root |
|---|---|---|
| framework | kodhe/framework |
Kodhe\Framework\ |
| http | kodhe/http |
Kodhe\Framework\Http\ |
| routing | kodhe/routing |
Kodhe\Framework\Routing\ |
| database | kodhe/database |
Kodhe\Framework\Database\ |
| session | kodhe/session |
Kodhe\Framework\Session\ |
| cache | kodhe/cache |
Kodhe\Framework\Cache\ |
| view | kodhe/view |
Kodhe\Framework\View\ |
| validation | kodhe/validation |
Kodhe\Framework\Validation\ |
Libraries
| Package | Composer | Namespace |
|---|---|---|
| agent | kodhe/user-agent |
Kodhe\UserAgent\ |
| driver | kodhe/driver |
Kodhe\Driver\ |
kodhe/email |
Kodhe\Email\ |
|
| upload | kodhe/upload |
Kodhe\Upload\ |
| image | kodhe/image |
Kodhe\Image\ |
| encryption | kodhe/encryption |
Kodhe\Encryption\ |
| encrypt | kodhe/encrypt |
Kodhe\Encrypt\ |
| ftp | kodhe/ftp |
Kodhe\Ftp\ |
| zip | kodhe/zip |
Kodhe\Zip\ |
| cart | kodhe/cart |
Kodhe\Cart\ |
| calendar | kodhe/calendar |
Kodhe\Calendar\ |
| pagination | kodhe/pagination |
Kodhe\Pagination\ |
| parser | kodhe/parser |
Kodhe\Parser\ |
| profiler | kodhe/profiler |
Kodhe\Profiler\ |
| table | kodhe/table |
Kodhe\Table\ |
| typography | kodhe/typography |
Kodhe\Typography\ |
| javascript | kodhe/javascript |
Kodhe\Javascript\ |
| migration | kodhe/migration |
Kodhe\Migration\ |
| test | kodhe/test |
Kodhe\Test\ |
| trackback | kodhe/trackback |
Kodhe\Trackback\ |
| xmlrpc | kodhe/xmlrpc |
Kodhe\Xmlrpc\ |
| xmlrpcs | kodhe/xmlrpcs |
Kodhe\Xmlrpcs\ |
Install Selektif
# Minimal API composer require kodhe/framework kodhe/http kodhe/routing kodhe/database # Full web composer require kodhe/framework kodhe/http kodhe/routing kodhe/database \ kodhe/session kodhe/cache kodhe/view kodhe/validation # Library saja composer require kodhe/email kodhe/upload kodhe/user-agent
Path repository (lokal)
{
"repositories": [
{ "type": "path", "url": "packages/*", "options": { "symlink": true } }
],
"require": {
"kodhe/framework": "*",
"kodhe/http": "*",
"kodhe/user-agent": "*"
}
}
Catatan
kodhe/cachemembutuhkankodhe/driverkodhe/frameworktidak memaksa dependency ke http/session/cache (hanya suggest)- File helper & Legacy tidak dipaksa
strict_types(kompatibilitas) - Semua class file memakai
declare(strict_types=1);