Add multiple products to cart programmatically in PHP programming?

I was trying to add multiple products to cart in PHP programming. But I am not able to add these multiple products. Can you please provide me some useful URL links of PHP questions and answers related to my query, So that I can get my query resolved.

what kind of framework you use?

//