mangahigh / timecapsule-php-client
A client library for TimeCapsule
Installs: 6 205
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2024-11-06 01:33:03 UTC
README
A php client for TimeCapsule.
Example:
See the publish.php and subscribe.php files in the example folder.
Publishing a message:
$publisher = new \TimeCapsule\Publisher();
$publisher->publishMessage($message, $embargoDate);
Message must be an implement TimeCapsule\Storable
Fetching the next message:
$subscriber = new \TimeCapsule\Subscriber();
$message = $subscriber->fetchMessage();
// process $message
$subscriber->ackMessage($message);
Contributing:
Please get involved in making this project better! Please submit a pull request with your changes.
Licenses:
Released under the MIT license. See LICENSE for more details.
Acknowledgments:
Mangahigh - https://www.mangahigh.com