Your comments

That b"h I understand that using the API I can get all what I need. the question is how do I use it in PHP. I need an example or sample code that uses the API in PHP.

Tnx you for your answer. but the XML will not help me. I need the relevant parsha list for a specific year. for example. in case the user choose 5779 then I need to know the list of parshas for a leap year or not leap year. is it is inside israel or diaspora etc.