Download the PHP package wasframework/wasf-core without Composer
On this page you can find all versions of the php package wasframework/wasf-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wasf-core
๐ WASF Core
The Core Engine of the WASF PHP Framework
WASF Core adalah inti dari seluruh ekosistem WASF Framework.
Package ini menyediakan semua komponen fundamental seperti Routing, HTTP Kernel, Console Engine, View/Blade compiler, Database Wrapper, Environment loader, dan berbagai helper yang digunakan oleh project wasf-app.
โจ Apa itu WASF Core?
WASF Core bukan aplikasi, tetapi mesin inti (engine) yang menjalankan seluruh kemampuan framework WASF.
Developer biasanya tidak membuat aplikasi langsung di atas Core โ melainkan menggunakan template wasf-app.
Namun untuk kontribusi, debugging, atau pengembangan fitur baru, inilah package yang memuat seluruh sistem:
- Routing system
- Request/Response kernel
- Exception handler
- Environment loader
- HMVC module loader
- Blade template compiler
- CLI command handler
- Database PDO wrapper
๐ฆ Instalasi
Tambahkan ke project berbasis Composer:
Jika digunakan bersama wasf-app, package ini sudah otomatis terinstal.
๐งฌ Fitur Inti WASF Core
โ 1. Routing Engine
Routing di WASF dibangun sederhana namun fleksibel:
Mendukung:
- Method GET, POST, PUT, PATCH, DELETE
- Parameter dinamis
{id} - Controller@method format
- Auto-binding module routes
- (Roadmap) Middleware & route group
โ 2. HTTP Kernel
HTTP Kernel menangani:
- Mem-parsing request
- Menentukan route yang cocok
- Menjalankan controller
- Menghasilkan response yang benar
- Handling status code
Contoh response:
โ 3. Console Kernel
Semua perintah CLI WASF dijalankan melalui console core:
Semua command berada di:
Developer bisa membuat command custom.
โ 4. Blade Template Compiler
Core menyediakan compiler untuk Blade engine:
View akan dikompilasi ke:
โ 5. HMVC Module Loader
WASF Core mendukung arsitektur modul:
Semua route module akan otomatis dimuat oleh Core.
โ 6. Database PDO Wrapper
Menggunakan PDO secara sederhana:
Ambil instance PDO:
โ 7. Helper Functions
Core menyediakan helper umum:
Termasuk autoloader untuk .env dan config.
โ 8. Environment Loader (.env)
Mengambil env dengan:
Core juga menyediakan fitur:
- Memuat
.envotomatis - Mendukung WASF_KEY sebagai encryption key
๐ Struktur Direktori WASF Core
๐ง Integrasi Dengan WASF App
wasf-app menjalankan bootstrap core:
Yang akan:
- Load environment
- Load core engine
- Register router
- Load module routes
- Run the application
๐งต Kontribusi
Karena Core adalah engine utama, kontribusi harus mengikuti standar stabilitas yang tinggi.
- Fork repository
-
Buat branch baru:
- Tambahkan dokumentasi & test (jika tersedia)
- Submit pull request
๐ก Keamanan
Untuk pelaporan celah keamanan:
๐ง [email protected]
subject: "WASF Core Security"
Jangan membuat issue publik.
๐บ Roadmap WASF Core
- [ ] Middleware Support
- [ ] Session Manager
- [ ] Cookie Encryption
- [ ] Cache System
- [ ] Validation Engine
- [ ] Module Autodiscovery
- [ ] File Storage Abstraction
- [ ] Logging System
- [ ] HTTP Client
- [ ] Event & Listener System
๐ Lisensi
WASF Core dirilis dengan lisensi MIT.