Download the PHP package rollerworks/search-dev without Composer
On this page you can find all versions of the php package rollerworks/search-dev. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rollerworks/search-dev
More information about rollerworks/search-dev
Files in rollerworks/search-dev
Package search-dev
Short Description RollerworksSearch monolith development (use separate packages instead)
License MIT
Homepage https://rollerworks.github.io/
Informations about the package search-dev
RollerworksSearch
About RollerworksSearch
RollerworksSearch is a powerful search-system for PHP. Created to make searching in a PHP powered application as simple and fast as possible.
Whether you want to search for users in your SQL database, want to provide a powerful search system for searching products using an ElasticSearch back-end or are looking for a way to abstract filtering for a reporter.
:warning: RollerworksSearch v2.0 is not stable yet, backward compatible changes should be expected.
If you are looking for a stable version, please wait for a final v2.0 release.
How about complex data structures?
A complex data is structure is no problem, say your customer data is stored in the "customer" table, the "invoices" data is stored in it's own table, and the details of the invoices have there own table.
Instead of writing a very verbose SQL query, your users can use the easy to learn StringQuery syntax:
invoice-price: > $20.00; invoice-row-label: ~*"my cool product"; customer-type: !consumer
.
You just searched in three relational tables using a single condition with a user-friendly syntax. And that is just the start, RollerworksSearch can work with any locale, custom input format, or storage system.
Search conditions can be as simple or complex as you need them to be. Including grouping and nesting for the best possible result.
Features
RollerworksSearch provides you with most of the features you would expect from a search system, including:
- Localized input processing using the StringQuery format;
- User-friendly format validation;
- Integration with API-Platform;
- Integration for Symfony 4.4 and up (Symfony Flex supported).
And support for the most poplar storage systems.
Installation and usage
Please ignore the instructions below if your use a framework integration.
Read the Documentation for complete instructions and information.
Install the RollerworksSearch "core" library using Composer:
And create the SearchFactory
to get started.
That's it! The $condition
contains the SearchCondition in a normalized
data format which can be used in a condition processor (like ElasticSearch),
or be exported into another format like JSON for easier usage in a URL.
Note: RollerworksSearch is composed of multiple separate packages (to keep the architecture slim), the "core" package provides everything you need to get started.
Searching a (document) storage requires the installation of additional packages.
What about validation?
Each field type ensures the value is transformed to the correct format,
either a date input is automatically transformed to a DateTimeImuttable
object.
A field that expects an integer will fail when the provided input is not an integer.
To enforce more strict constraints like a maximum amount for an integer field you can use the Symfony Validator extension.
Resources
- Read the Documentation
- RollerworksSearch is maintained under the Semantic Versioning guidelines
Who is behind RollerworksSearch?
RollerworksSearch is brought to you by Sebastiaan Stok.
License
RollerworksSearch is released under the MIT license.
The types and extensions are largely inspired on the Symfony Form Component, and contain a big amount of code from the Symfony project.
Support
Use the issue tracker to create a new support question.
Note: Please be patient, it might take some time before your question is answered. Do not ping the maintainers.
Contributing
This is an open source project. If you'd like to contribute, please read the Contributing Guidelines. If you're submitting a pull request, please follow the guidelines in the Submitting a Patch section.
Note: RollerworksSearch is developed in a monolith repository, do not open pull request
against repositories marked as [READ-ONLY]
, thank you.
All versions of search-dev with dependencies
nesbot/carbon Version ^2.38 || ^3.0
psr/container Version ^1.0 || ^2.0
symfony/intl Version ^6.4 || ^7.0
symfony/options-resolver Version ^6.4 || ^7.0
symfony/property-access Version ^6.4 || ^7.0
symfony/string Version ^6.4 || ^7.0
symfony/translation-contracts Version ^3.4