cleantalk / email-encoder
CleanTalk ContactsEncoder class
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cleantalk-apbct-lib
pkg:composer/cleantalk/email-encoder
Requires
Requires (Dev)
- phpcompatibility/php-compatibility: @dev
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: 3.*
- vimeo/psalm: ^4.8
This package is auto-updated.
Last update: 2025-11-09 08:47:06 UTC
README
To use the ContactsEncoder module:
-
Extend the platform-specific ContactsEncoder class
-
Instantiate the encoder
$contacts_encoder_params = new Params(); $contacts_encoder_params->api_key = 'CleanTalk API key'; $contacts_encoder = ContactsEncoder::getInstance($contacts_encoder_params);
-
Prepare the content (HTML, text, etc.)
-
Encode contact details
$encoded_content = $contacts_encoder->runEncoding('your content do encode');
- Output the modified content
echo $encoded_content;