承接 gurpreetkaits/simple-query-builder 相关项目开发

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

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

gurpreetkaits/simple-query-builder

最新稳定版本:0.0.1

Composer 安装命令:

composer require gurpreetkaits/simple-query-builder

包简介

A simple query builder for php applications

README 文档

README

Simple Query Builder is a PHP library that provides a simple and easy-to-use query builder for constructing SQL queries. It allows you to build SELECT queries with various conditions, joins, and more. Currently building the library, it's not available for all types of databases. Contributions are welcome ❤️

Installation

 
composer require gurpreetkaits/simple-query-builder 

Simple Example Of Execution

 <?php

ini_set('display_errors', 1);

use GurpreetKaits\Builder\Connection;
use GurpreetKaits\Builder\Query;

require 'vendor/autoload.php';


$config = [
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => 'password',
    'database' => 'test'
];
$connection = (new Connection($config))::connect();

$selectQuery = (new Query($connection))
    ->table('award_icons')
    ->select('*')
    ->where('id', '=', 33)
    ->get();

echo '<pre>';
print_r($selectQuery);

Array
(
    [0] => Array
        (
            [id] => 33
            [title] => Award
            [icon] => award
            [created_at] => 2023-10-09 14:59:17
            [updated_at] => 2023-10-09 14:59:17
        )

)


统计信息

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

GitHub 信息

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

其他信息

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