An example project that uses php to search over json data
Composer 2.4.1
Download and install Composer by following the official instructions.
For usage, see the documentation.
PHP 7.2.5 or above for the latest version.
Download and install PHP by following the official instructions.
-
run
composer install
-
start PHP local server:
php -S localhost:8000
send GET requests to local server:
- create model class for service
- use generators to parse services
- filtering, calculate distance, scorring in same iteration
- cache filter results
- sort, limit, paginate results