I need a clean, well-documented PHP library that connects to the AngelOne API and streams both live stock prices and sectoral indices in real time. The goal is to drop the code straight into my existing PHP 8 setup, call a few methods, and instantly start receiving ticks without juggling tokens or worrying about missed packets. Key points you must handle • Authentication and token refresh so the connection never times out • WebSocket or REST polling—choose the AngelOne-recommended method that truly delivers tick-by-tick updates • Data objects that expose price, timestamp, and symbol for each stock plus sector identifier and last traded value for each sectoral index • Simple callback or event system so I can plug the feed into my own trading logic • One example script that shows subscribing to two stocks and one sector, printing the JSON payload to the console Acceptance criteria 1. When I run the sample script, I see real-time updates for selected stocks and sectoral indices every tick with no noticeable lag. 2. The library passes a five-minute stress test (continuous stream, no disconnects, no memory leaks). 3. Code is PSR-12 compliant and thoroughly commented. If you have already worked with the AngelOne API in PHP, this should be quick; please reference that experience when you respond.