PHP code example of sunnysideup / silverstripe-svg-images
1. Go to this page and download the library: Download sunnysideup/silverstripe-svg-images 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/ */
sunnysideup / silverstripe-svg-images example snippets
html
<!-- add svg as image -->
<img src="$Image.URL" />
<!-- or, for example when using Foundation interchange to have separate/responsive versions: -->
<img src="$Image_Mobile.URL" data-interchange="[$Image_Desktop.URL, medium]" />
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.