承接 ignitekit/wp-query-builder 相关项目开发

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

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

ignitekit/wp-query-builder

最新稳定版本:1.3.1

Composer 安装命令:

composer require ignitekit/wp-query-builder

包简介

Wordpress Query Builder class library for custom models and data querying.

README 文档

README

Latest Stable Version GitHub Workflow Status Total Downloads License

This package provides a SQL query builder class built on top of WordPress core Database accessor. Usability is similar to Laravel's Eloquent.

The library also provides an abstract class and a trait to be used on data models built for custom tables.

This package is inspired by the WordPress MVC's Query Builder.

Install

This package / library requires composer.

composer require ignitekit/wp-query-builder

Usage & Documentation

Please read the wiki for documentation.

Quick snippet sample:

$books = wp_query_builder()
    ->select( 'ID' )
    ->select( 'post_name AS name' )
    ->from( 'posts' )
    ->where( ['post_type' => 'book'] )
    ->get();

foreach ( $books as $book ) {
    echo $book->ID;
    echo $book->name;
}

Coding Guidelines

PSR-2 coding guidelines.

License

MIT License (c) 2019 10 Quality. MIT License (c) 2023 Darko G.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-19