PHP code example of bambi / bambi-postgres-text-search-bundle
1. Go to this page and download the library: Download bambi/bambi-postgres-text-search-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bambi / bambi-postgres-text-search-bundle example snippets
namespace App\Entity;
class Author
{
private string $name;
...
}
class Book
{
private string $name;
private string $isbn;
private Author $author;
...
}
xml
<resource class="App\Entity\Book">
<collectionOperations>
<collectionOperation name="get">
<attribute name="method">GET</attribute>
...
<attribute name="filters">
<attribute>app.book.text_search_match_filter</attribute>
</attribute>
</collectionOperation>
</collectionOperations>
</resource>