Download the PHP package jahurul1/ji-framework without Composer
On this page you can find all versions of the php package jahurul1/ji-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jahurul1/ji-framework
More information about jahurul1/ji-framework
Files in jahurul1/ji-framework
Package ji-framework
Short Description A lightweight and efficient PHP framework designed to simplify web application development. Features timezone-aware DateTimeHelper, database query builder, security tools, and comprehensive utility classes.
License MIT
Homepage https://github.com/jahurul1/JiFramework
Informations about the package ji-framework
JiFramework
JiFramework is a lightweight, plug-and-play PHP framework built for developers who want to move fast without sacrificing structure.
Whether you're prototyping a side project or shipping a production application, JiFramework gives you a fully wired environment — database, authentication, caching, logging, validation, encryption, and more — all ready in two lines of code. No CLI tools to learn, no template engine to configure, no boilerplate to write. Just install, instantiate, and build.
Built on plain PHP with zero mandatory configuration, JiFramework stays out of your way while giving you the power to handle anything from simple REST APIs to full multi-language web applications.
Two lines to start:
That's it — database, auth, cache, logging, validation, and more are all ready.
Why JiFramework?
- Zero boilerplate — no commands to run, no code generation steps
- No template engine — use plain PHP files as views
- No CLI tools — everything works out of the box
- Lazy loading — components are created only when accessed; unused services cost nothing
- Optional router — use URL routing or skip it entirely (plug-and-play mode)
- Production ready — structured logging, CSRF protection, IP/country blocking, rate limiting, encryption
Requirements
- PHP 7.4 or higher
- Composer
- MySQL / MariaDB (optional — only needed for database features)
Installation
Quick Start
Configuration
Copy the example config to your project root and fill in your values:
JiFramework auto-detects jiconfig.php — no manual path setup needed. You only need to define the keys you want to change; everything else falls back to sensible defaults.
Router Mode
Enable routing in jiconfig.php (router_enabled => true) and define routes in index.php:
Components
| Component | Access | Description |
|---|---|---|
| QueryBuilder | $app->db |
Fluent SQL builder — SELECT, INSERT, UPDATE, DELETE, JOINs, aggregates, transactions |
| Model | extend Model |
Active Record-style base class for database tables |
| Auth | $app->auth |
User & admin authentication, remember-me tokens |
| Session | $app->sessionManager |
Session management, flash messages, CSRF tokens |
| Validator | $app->validator |
Fluent input validation with 20+ built-in rules |
| Router | $app->router |
Optional URL router — file or closure handlers, route groups, params |
| Cache | $app->cache |
File or SQLite cache driver with TTL, increment/decrement |
| Logger | $app->logger |
PSR-3 structured logger with log rotation and level filtering |
| Encryption | $app->encryption |
AES-256-GCM encryption, password hashing, secure random tokens |
| RateLimiter | $app->rateLimiter |
Request rate limiting with IP ban support |
| AccessControl | $app->accessControl |
IP and country blocking |
| HttpClient | $app->http |
HTTP client for external API requests |
| FileManager | $app->fileManager |
File read/write, upload handling, directory utilities |
| Str | $app->str |
String utilities — slugify, mask, case conversion, truncate, and more |
| Paginator | $app->paginator |
Pagination with QueryBuilder integration |
| DateTimeHelper | $app->dateTime |
Date/time arithmetic, formatting, timezone conversion |
| ExecutionTimer | $app->executionTimer |
Measure code execution time |
| Request | $app->request |
Client IP detection, request headers, bearer token, AJAX/HTTPS/CLI detection |
| Url | $app->url |
URL parsing, building, query param manipulation |
| Localization | $app->language |
Multi-language support via JSON files |
| ErrorHandler | automatic | Structured error handling, custom error pages, named HTTP exceptions |
| Exceptions | $app->abort() |
HttpException, NotFoundException, ForbiddenException, ValidationException, and more |
Code Examples
Database — QueryBuilder
Model
Validator
Session & CSRF
Logger
Encryption
Testing
The test suite contains 327 tests and 499 assertions covering all framework components.
Documentation
Full documentation is available at jiframework.com.
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT License — © 2025 Jahurul Islam