You can publish events by using SDK for PHP to call the required API operation.

SDK for PHP provides the following API operation.