PHP code example of 1tomany / data-uri
1. Go to this page and download the library: Download 1tomany/data-uri 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/ */
1tomany / data-uri example snippets
use OneToMany\DataUri\DataDecoder;
final readonly class DecodeData
{
public function __construct(
private DataDecoder $dataDecoder,
) {
}
}
sh
php examples/decode.php [--all]