cleantalk / remote-calls
CleanTalk APBCT of `RemoteCalls` family classes
Package info
github.com/CleanTalk/_remote_calls
Type:cleantalk-apbct-lib
pkg:composer/cleantalk/remote-calls
1.6.0
2024-09-13 11:40 UTC
Requires
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: 3.*
- vimeo/psalm: ^4.8
This package is auto-updated.
Last update: 2026-02-18 06:03:05 UTC
README
Install:
composer require cleantalk/remote-calls
Using:
<?php $storage_handler = new \Cleantalk\Custom\StorageHandler\StorageHandler(); $api_key = 'your_api_key'; $remote_calls = new \Cleantalk\Common\RemoteCalls\RemoteCalls($api_key, $storage_handler); if ( $remote_calls::check() ) { try { die $remote_calls->process(); } catch ( \Cleantalk\Common\RemoteCalls\Exceptions\RemoteCallsException $exception ) { // Do logging here die 'FAIL ' . json_encode(array('error' => $exception->getMessage())) } }