New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adagio/toolkit

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adagio/toolkit

Adagio collection of useful utilities

Source
Packagist
Version
dev-master
Version published
Total downloads
11
Maintainers
0
Created
Source

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";
// :...::.::::....::.:...:.::........:.::....:.::..:::.....:.:.::.:..::..::..::.:.::.::.::::..::..::...:..::.:.:.....:..:..:..::::.:..:::.:.::.:..:::..::::.::..:::.:..::.::.::.:.::.::.:::.:..:..::.::::.::..::...::::.:...::::....::..::::..::..:::.:....:::..:....:...::::..:...::.:...::.::::..:::::.:.::..:::::::..:.:..:::.....:..:.:...:...:...::.:..:....:::..:.::.:.....::.:.:..::::::::::...:..::::::::...:::.::..::....:..:..:...:.::.:.:...::::..:..::::.:..::..:.:.:..::.::::::...::....::.....::..:::::..:.:...::.:..::....:.:.::.:..:::.::.:....:.:::.:....::.::::.::....::....:::...:.:.::..::..:.::..:..::::.:....::.:...:..:..:...:...:....:.:..:::..:.:..:.::::.::::..:.::..::..::..:::.:.:.::...::..:....:..:.::...:::.:..:.:...::..:::::::.:::.::..::::....:.::::.:.:.::....::.:.:.::::::.:...:.::::::::::.::::.::::::..::.::...:.::..:::.:.::::::..:::.:..:.:.....::..:.:..:::......:.:..::::...:.:.:...::..:.:..:.::::.:.:::.....::.:..:...::.:::.:..:.::..:.....:.::.:....:..:..:::..:....:.:.:.::..:.:..::...:....:.:::.:...:...........::...:...........::.:::.::::.:.:::.::.:.::::::::.:....:::..:...:.:::...:..:.:.:.:.::::::.:::.:::.:..:...:::....::::..:.::::..:.:.:.:::.::::.:...::.:.::..:::..:....:..:......:..:.::..:..:..:.....:::.:::.:.:..:::...:.....::::::...:.:::.:::.::::.:..:...:::::.:.:..:..::.:::..:.....::.:.:.:..::::.:.:::::.:.:.::::::::....:..:.:..::.:::::...:.....::....:::::..:.:..::..::..::..::.:.:.:..:.:::::....:...:::........:.::::......:.::.::.::..:::.::...:::..:::..:....:::::::::...::.:::::....:::..:..:..:.:..:...::...:..:....:::.:..:::..::::...:.:...:..:::....:.::..:::::..::.....:.....:...::.::::..:.:.:..::.:::.:..:::.:.::::....:...::::.::::::....:..::::........::.......:::::.::...::..:.:.:::.:.::::::::...:::..::::...::.:.:::....::.:.:.:.::..:....::..:..:.:..:.....::.:......:.:::.:.:.::.:::....:...:.:::.:::.::....:..:.:.:::.::.::::.::::::.:::...:..:.:::.:::...:.::..:..:...::..:..:.....:...:::.:.::.:.::..:::::::..:::.....::.::.....:...:::::::.....:::..::::...:..::...:.::.::::..:.:.:..:.:::.::..:::..:..:.:.:...:...:::::::.:::::.:::..:::.::.:....::.:.::::.:..::.:....:....

FAQs

Package last updated on 28 Oct 2015

Related posts