API Reference Overview¶
The Alerts in UA PHP library is designed to be intuitive and developer-friendly. It provides a set of classes that map closely to the alerts.in.ua API entities while offering additional helper logic.
Core Components¶
AlertsClient¶
The main entry point. Use it to perform all API requests. It supports both synchronous-style usage (via .wait()) and true asynchronous flows.
Models¶
Data is returned as rich objects rather than raw arrays: - Alert: Details of a single event. - Alerts: A filterable collection of Alert objects. - AirRaidAlertStatus: Current status codes for specific locations.
Typical Workflow¶
- Initialize the client with your token.
- Request data using one of the
Asyncmethods. - Handle the Result: You can either block execution or use a non-blocking callback.
The most common way to use the library. Use wait() to block until the request is finished.