PHP code example of karavasilev / cryptomanana

1. Go to this page and download the library: Download karavasilev/cryptomanana library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

karavasilev / cryptomanana example snippets


// Autoload packages via Composer class autoloader
TF-8` for PHP >= 5.6)
ini_set('default_charset', 'UTF-8');

// Configure `mbstring` to use your favourite UTF-8 encoding
mb_regex_encoding('UTF-8');
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');

// Enable the `mbstring` support for CryptoManana components
\CryptoManana\Core\StringBuilder::useMbString(true);

// Start coding hard...

define('CRYPTO_MANANA_COMPATIBILITY_OFF', true); // const CRYPTO_MANANA_COMPATIBILITY_OFF = 1;
bash
# Install the package at your project via Composer
composer or/karavasilev/cryptomanana/check.php

# Or: ./vendor/karavasilev/cryptomanana/check