PHP Function for Fetching X Post URLs

Job ID: 38797502

Budget: $10 – $30 USD

I'm in need of a PHP function that can retrieve the latest post URLs from a specified X account. The function should:

- Accept an X account handle and a variable $number as input.
- Return an array of the $number latest X post URLs from the given account handle.
- Return all available posts if the requested number exceeds the available posts.

The ideal freelancer for this project should have:
- Proficient knowledge of PHP.
- Experience with X API (formerly Twitter).
- Understanding of error handling in functions.

Please note, I'm open to suggestions on error handling and methods for data fetching, though I have not specified any particular needs in these areas.
Related categories: PHP Twitter API