Skip to content

Commit

Permalink
Version v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Aug 19, 2023
1 parent 0df188d commit 9c30c36
Show file tree
Hide file tree
Showing 19 changed files with 1,931 additions and 1,333 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Wordpress Query Builder Library
# WordPress Query Builder Library

[![Latest Stable Version](https://poser.pugx.org/10quality/wp-query-builder/v/stable)](https://packagist.org/packages/10quality/wp-query-builder)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/10quality/wp-query-builder/test.yml)
Expand All @@ -7,21 +7,21 @@

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. The abstract class extends our generic [PHP model](https://github.com/10quality/php-data-model) class.
The library also provides an abstract class and a trait to be used on data models built for custom tables.

This is the perfect package to use within the [WordPress MVC](https://www.wordpress-mvc.com/) framework.
This package is inspired by the [WordPress MVC's](https://www.wordpress-mvc.com/) Query Builder.

## Install

This package / library requires composer.

```bash
composer require 10quality/wp-query-builder
composer require ignitekit/wp-query-builder
```

## Usage & Documentation

Please read the [wiki](https://github.com/10quality/wp-query-builder/wiki) for documentation.
Please read the [wiki](https://github.com/ignitekit/wp-query-builder/wiki) for documentation.

Quick snippet sample:
```php
Expand All @@ -44,4 +44,5 @@ PSR-2 coding guidelines.

## License

MIT License (c) 2019 [10 Quality](https://www.10quality.com/).
MIT License (c) 2019 [10 Quality](https://www.10quality.com/).
MIT License (c) 2023 [Darko G](https://darkog.com/).
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "10quality/wp-query-builder",
"name": "ignitekit/wp-query-builder",
"description": "Wordpress Query Builder class library for custom models and data querying.",
"license": "MIT",
"keywords": ["wordpress","query builder","database", "models"],
Expand All @@ -15,21 +15,24 @@
{
"name": "10 Quality",
"email": "info@10quality.com"
},
{
"name": "Darko G.",
"email": "dg@darkog.com"
}
],
"require": {
"php": ">=5.4",
"10quality/php-data-model": "^1.0"
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "9.*"
},
"autoload": {
"psr-4": {
"TenQuality\\WP\\Database\\": "src"
"IgniteKit\\WP\\QueryBuilder\\": "src"
},
"files": [
"src/Lib/functions.php"
"functions.php"
]
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/Lib/functions.php → functions.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

use TenQuality\WP\Database\QueryBuilder;
use IgniteKit\WP\QueryBuilder\QueryBuilder;
/**
* Global functions.
*
* @author 10 Quality <info@10quality.com>
* @author Darko G. <dg@darkog.com>
* @license MIT
* @package wp-query-builder
* @version 1.0.9
Expand All @@ -16,7 +17,7 @@
*
* @param string|null $query_id
*
* @return \TenQuality\WP\Database\QueryBuilder
* @return \IgniteKit\WP\QueryBuilder\QueryBuilder
*/
function wp_query_builder( $query_id = null )
{
Expand Down
Loading

0 comments on commit 9c30c36

Please sign in to comment.