<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gridprinciples / laravel-placeholder-avatars example snippets
// routes/web.php
use GridPrinciples\PlaceholderAvatars\Facades\PlaceholderAvatars;
PlaceholderAvatars::route('avatar.svg', type: 'beam');
// routes/web.php
use GridPrinciples\PlaceholderAvatars\Facades\PlaceholderAvatars;
PlaceholderAvatars::route('face.svg',
// which design should render (optional; defaults to "beam")
type: 'marble',
// enforce a red color scheme
colors: ['#440000', '#110000', '#CC0000'],
// force a circular avatar, a square will never be produced even if requested
square: false,
// we are rendering an SVG so this doesn't matter much, but you can set the size
size: 256,
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.