承接 jahurul1/ji-framework 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jahurul1/ji-framework

最新稳定版本:1.0.3

Composer 安装命令:

composer require jahurul1/ji-framework

包简介

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.

README 文档

README

A lightweight and efficient PHP framework designed to simplify web application development. JiFramework emphasizes ease of use and flexibility, allowing you to build robust applications without unnecessary complexity or overhead.

Features

  • Simplicity and Ease of Use

    • Minimal setup with no complicated configurations required
    • Plain PHP for views, giving complete control over presentation layer
  • Flexibility and Modularity

    • Component-based architecture
    • Easy integration with existing projects
  • Powerful Features

    • Database Query Builder
    • Robust error handling
    • Security features (CSRF protection, encryption, rate limiting)
  • Performance

    • Lightweight design
    • Optimized components

Requirements

  • PHP 7.4 or higher
  • Composer (for dependency management)

Installation

Via Composer

composer require jahurul1/ji-framework

Manual Download

Download the zip file and extract the files, then include the autoloader.

Quick Start

// Initialize the framework
require 'vendor/autoload.php';

// Create application instance
$app = new JiFramework\Core\App\App();

// Your application code here

Database Operations

// Get database connection via the application instance
$db = $app->db;

// Or create a new instance directly
$db = new JiFramework\Core\Database\QueryBuilder();

// Perform database operations
$users = $db->table('users')
            ->where('status', 'active')
            ->orderBy('name', 'ASC')
            ->get();

Basic Usage

// Using the App container
use JIFramework\Core\App\App;

$app = new App();
$db = $app->db;
$logger = $app->logger;
$session = $app->sessionManager;

// Or instantiate components directly
use JIFramework\Core\Database\QueryBuilder;

$db = new QueryBuilder();
$results = $db->table('users')->where('status', 'active')->get();

Testing

The framework includes a comprehensive testing system. To run tests:

# Run all tests
php tests/run_tests.php

# Run with debug output (verbose)
php tests/run_tests.php debug

# Run with minimal output
php tests/run_tests.php quiet

# Show progress dots for each test
php tests/run_tests.php progress

# Run tests for a specific class
php tests/run_tests.php YourTestClass

All tests are located in the tests/ directory and follow a standard structure.

Documentation

For complete documentation, visit our official website at jiframework.com.

The repository also includes sample documentation for select components in the docs directory to help you get started:

  • App - Understanding the application container
  • QueryBuilder - Database interaction guide

For the most comprehensive and up-to-date documentation, always refer to the official website.

Components

JiFramework includes the following components:

  • AccessControl - Manage user access permissions and roles
  • App - Application container (docs)
  • Auth - User authentication and management
  • Cache Manager - Efficient caching layer
  • DateTimeHelper - Simplify DateTime operations
  • Encryption - Secure data encryption/decryption
  • EnvironmentHelper - Manage environment-specific settings
  • ErrorPageHandler - User-friendly error page handling
  • ExecutionTime - Measure and manage execution timing
  • FileManager - Handle file operations easily
  • HttpRequestHelper - Simplified HTTP request handling
  • LanguageManager - Multilingual application support
  • Logger - Application logging system
  • PaginationHelper - Easy pagination of results
  • QueryBuilder - Simplified database queries (docs)
  • RateLimiter - Limit requests for security and performance
  • SessionManager - Secure session management
  • StringHelper - String utilities and helpers
  • UrlHelper - URL parsing and building
  • Validator - Easy and secure input validation

For complete documentation on all components, visit jiframework.com.

Contributing

Please see CONTRIBUTING.md for details on how to contribute to the project.

License

MIT License

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-26