pomm-project / api-platform
Api platform bridge for pomm
Installs: 11 549
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 2
Forks: 7
Open Issues: 4
pkg:composer/pomm-project/api-platform
Requires
- php: >=7.0
- api-platform/core: ~2.0
- pomm-project/pomm-bundle: ~2.4
This package is auto-updated.
Last update: 2025-10-07 20:54:34 UTC
README
Use Pomm with Api platform.
Filters
Search Filter
The search filter supports:
partialstrategy usesLIKE %text%to search for fields that containing the text.start strategyusesLIKE text%to search for fields that starts with text.end strategyusesLIKE %textto search for fields that ends with text.word_startstrategy usesLIKE text% OR LIKE % text%to search for fields that contains the word starting with text.
Prepend the letter i to the filter if you want it to be case insensitive. For example ipartial or iexact.
Add an entry in services.yml:
services: app.book.search_filter: parent: 'api_platform.pomm.search_filter' arguments: [ { 'title': 'exact', 'description': 'partial'} ] tags: [ { name: 'api_platform.filter', id: 'book.search' } ]
And in resources.yml use the service filter:
resources: AppBundle\Entity\Book: collectionOperations: get: filters: ['book.search']