Build CLI with PHP which you accept different known commands line combined with filter argument values, for example, price_range or specific id. the data should be fetched from a remote endpoint or local file which might be JSON or XML or CSV and use the filter arguments to return the filtered data count only.
Sigiloso
I build it with plain PHP with strategy and factory design patterns.