PHP code example of ppardalj / ultima-paperdoll-drawer-php
1. Go to this page and download the library: Download ppardalj/ultima-paperdoll-drawer-php 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/ */
ppardalj / ultima-paperdoll-drawer-php example snippets
$drawer = PaperdollDrawer::with('/path/to/uofiles');
$paperdoll = PaperdollBuilder::create('Lord Semerkhet')
->withTitle('Legendary Developer')
->withItem(new Item(9860, 1109, Layer::NECK)) // Hooded shroud of shadows
->build();
$paperdollImage = $drawer->drawPaperdoll($paperdoll);
imagepng($paperdollImage, 'mypaperdoll.png'); // save to png file