Skip to content

kevengodet/ToolKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

ToolKit

Adagio collection of useful utilities

Usage

RadixConverter

$converter = new RadixConverter();

$str = 'Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.';

echo $converter->convert($str, RadixConverter::ASCII, RadixConverter::BASE64);
// VQJPaXWCLxPKOq2NLDVheY4bgQyoTRusvW7W1+IRFnbAcxpq5CItAKsnycmUfQZ+N+z0u3DbbglOy53CF7X7tiLxMMuw+LH9QA0yunZdJzNkVdyT3BBwKj5dvPlcZixmRBRKfgOYzMKU4VHluGvNkFTzjCQSL8VEcVXQNsai61nM8Y5zENtrfyktR55iPOYgHT2KUShrH6JOQwKuTh4B3g5QEoSrlo+r3EjpIayLT08dlQt8eVuUzF8iFVbFAKRhaAZAQ6Q8elGQp+0SPZO9vdvRGfNHyX4Hy1wprb0k4sAmkTQYgf3jXkMWvK7HVlhs5uWiYDmITVyVSisKEc6z3

// Binary, but with custom "digits"
echo $converter->convert($str, RadixConverter::ASCII, '.:')."\n";
// :...::.::::....::.:...:.::........:.::....:.::..:::.....:.:.::.:..::..::..::.:.::.::.::::..::..::...:..::.:.:.....:..:..:..::::.:..:::.:.::.:..:::..::::.::..:::.:..::.::.::.:.::.::.:::.:..:..::.::::.::..::...::::.:...::::....::..::::..::..:::.:....:::..:....:...::::..:...::.:...::.::::..:::::.:.::..:::::::..:.:..:::.....:..:.:...:...:...::.:..:....:::..:.::.:.....::.:.:..::::::::::...:..::::::::...:::.::..::....:..:..:...:.::.:.:...::::..:..::::.:..::..:.:.:..::.::::::...::....::.....::..:::::..:.:...::.:..::....:.:.::.:..:::.::.:....:.:::.:....::.::::.::....::....:::...:.:.::..::..:.::..:..::::.:....::.:...:..:..:...:...:....:.:..:::..:.:..:.::::.::::..:.::..::..::..:::.:.:.::...::..:....:..:.::...:::.:..:.:...::..:::::::.:::.::..::::....:.::::.:.:.::....::.:.:.::::::.:...:.::::::::::.::::.::::::..::.::...:.::..:::.:.::::::..:::.:..:.:.....::..:.:..:::......:.:..::::...:.:.:...::..:.:..:.::::.:.:::.....::.:..:...::.:::.:..:.::..:.....:.::.:....:..:..:::..:....:.:.:.::..:.:..::...:....:.:::.:...:...........::...:...........::.:::.::::.:.:::.::.:.::::::::.:....:::..:...:.:::...:..:.:.:.:.::::::.:::.:::.:..:...:::....::::..:.::::..:.:.:.:::.::::.:...::.:.::..:::..:....:..:......:..:.::..:..:..:.....:::.:::.:.:..:::...:.....::::::...:.:::.:::.::::.:..:...:::::.:.:..:..::.:::..:.....::.:.:.:..::::.:.:::::.:.:.::::::::....:..:.:..::.:::::...:.....::....:::::..:.:..::..::..::..::.:.:.:..:.:::::....:...:::........:.::::......:.::.::.::..:::.::...:::..:::..:....:::::::::...::.:::::....:::..:..:..:.:..:...::...:..:....:::.:..:::..::::...:.:...:..:::....:.::..:::::..::.....:.....:...::.::::..:.:.:..::.:::.:..:::.:.::::....:...::::.::::::....:..::::........::.......:::::.::...::..:.:.:::.:.::::::::...:::..::::...::.:.:::....::.:.:.:.::..:....::..:..:.:..:.....::.:......:.:::.:.:.::.:::....:...:.:::.:::.::....:..:.:.:::.::.::::.::::::.:::...:..:.:::.:::...:.::..:..:...::..:..:.....:...:::.:.::.:.::..:::::::..:::.....::.::.....:...:::::::.....:::..::::...:..::...:.::.::::..:.:.:..:.:::.::..:::..:..:.:.:...:...:::::::.:::::.:::..:::.::.:....::.:.::::.:..::.:....:....

About

Adagio collection of useful utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages