https://github.com/alidantech/searchcomponent
Enables you to search content form a database.
https://github.com/alidantech/searchcomponent
component mysql-database php
Last synced: 2 months ago
JSON representation
Enables you to search content form a database.
- Host: GitHub
- URL: https://github.com/alidantech/searchcomponent
- Owner: Alidantech
- Created: 2023-10-29T19:50:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-06T13:35:57.000Z (over 2 years ago)
- Last Synced: 2025-03-21T18:16:47.334Z (about 1 year ago)
- Topics: component, mysql-database, php
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Search Component Documentation
This is a database search component. It enables you to search data from your database. by just providing the database configurations and then you enter a keyword and you recieve the results.
## Dependencies
- Database
### Requires Interface
1. Requires a `configured database`.
2. Requires database configuration parameters inside a `db.env` file:
```.env
#ADD your database configurations here.
DB_HOST = 'host'
DB_USER = 'username'
DB_PASSWORD = 'password'
DB_NAME = 'name'
```
3. Requires the `table` and `columns` to search from.
4. Requires a `Keyword` to perform the search.
### Provides Interface
- The search component provides a connection to the database based on the provided configurations.
- It returns search results from the database in JSON format.
- Provides a method to search from a single table.
- Provides a method to search from multiple tables.