laravelevetools / eveimages
Library that facilitates the sourcing of images from the eve API.
1.1
2024-07-30 11:35 UTC
Requires
- php: ^7.3|^8.0
- laravel/framework: ^7.0|^8.0|^9.0|^10.0|11.0
Requires (Dev)
- orchestra/testbench: 6.x-dev
- phpunit/phpunit: ^9.3.3
This package is auto-updated.
Last update: 2024-11-30 12:19:48 UTC
README
Independent images tool to source eve images from EVE. Based on eveseat/services/Image/Eve but without all the seat specific stuff.
Basic Usage
use LaraveEveTools\EveImages\Image; //Generate a full html <img> tag (new Image('characters', $character_id, 64))->html() //Generate image url (new Image('characters', $character_id, 64))->url()
Variables
Type
Allows the following options.
[ 'characters', 'corporations', 'alliances', 'factions' ]
Size
Allows the following options
[ 32, 64, 128, 256, 512, 1024 ]
lazy
If using lazy loading, you will need to handle the loading of the image from the front end.
The url of the image will be stored with the 'data-src' attribute.