You want to look into
BTCPay Server.
It even has WordPress integration and many others, depending on your use case.
I'd recommend this deployment method:
https://docs.btcpayserver.org/Deployment/Hardware/ which gives you complete control. Obviously you can skip the home-network-specific stuff like DynDNS and NAT tunnelling-related instructions, since I assume your website is hosted on a static IP server of some sort.
Thank you. I will study these links and get back.
Hello
I want some guidance to accept L. Bitcoin on my website preferably in PHP.
If it is not available then help me understand how can we generate invoices and how can we confirm if they have been paid.
Thanks
You could use any ready-made solution/plugin which will work out of the box for you (like Bitpay). The downside is that these services are paid you need to pay a certain fee or %.
Second option is a free service for example from blockchain.com. In this case you'll need some custom code, so to hire a developer etc.
I don't want to use a 3rd party because it kills Bitcoin Decentralization and purpose. Also I think Blockchain API doesn't have lightening support