PHP code example of maikschneider / steganography
1. Go to this page and download the library: Download maikschneider/steganography 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/ */
maikschneider / steganography example snippets
php
use MaikSchneider\Steganography\Processor;
$processor = new Processor();
$image = $processor->encode('/path/to/image.jpg', 'Message to hide'); // jpg|png|gif
// Save image to file
$image->write('/path/to/image.png'); // png only
// Or outout image to stdout
$image->render();
php
use MaikSchneider\Steganography\Processor;
$processor = new Processor();
$message = $processor->decode('/path/to/image.png');
echo $message; // "Message to hide"