baldeweg / book-bundle
Offers tools for management of books.
Installs: 204
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/orm: ^2.9
- symfony/config: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9.5
- rector/rector: ^0.12
- symfony/browser-kit: ^5.4|^6.0
- symfony/maker-bundle: ^1.31
- symfony/var-dumper: ^5.4|^6.0
README
Offers tools for management of books.
Getting Started
composer req baldeweg/book-bundle
Activate the bundle in your config/bundles.php
, if not done automatically.
Baldeweg\Bundle\BookBundle\BaldewegBookBundle::class => ['all' => true],
Building a new query.
use Baldeweg\Bundle\BookBundle\Search\Find; $find = new Find($em, $term, $filter, $orderBy); $find->setFields([]); $find->setForcedFilters([]); $find->find();
Options
Query
- term - string , Operator: like
- filter - array<filter>
- orderBy - array
- book - array<order>
- author - array<order>
- limit - integer
- offset - integer
Filter
- genre - array<integer>, Operator: in
- lendOn - integer, Operators: eq, gte, gt, lte, lt, null
- branches - integer, Operator: eq
- releaseYear - integer, Operator: eq, gte, gt, lte, lt, null
- sold - bool, Operator: eq
- removed - bool, Operator: eq
- type - string, Operator: eq
- added - integer, Operator: eq, gte, gt, lte, lt, null
Order
- field - string
- direction - string