PHP Function to load data from LinkedIn Ads per day

Job ID: 34344191

Budget: €8 – €30 EUR

I need a simple PHP function to load data from a given date from LinkedIn Ads account.
Input: date, ad_account_id
All campaigns, one per row with each having data:
clicks, impressions, conversions, costs
Return as PHP-Array.
Script should handle authentication and it should run on CLI. Written as PHP function or class. It should just work and I will test on my side.
Related categories: PHP Software Architecture MySQL Linkedin API