Looking to hire Laravel developers? Try LaraJobs
This package is not available.

eveimages maintained by laravelevetools

Description
Library that facilitates the sourcing of images from the eve API.
Last update
2024/07/30 13:35 (dev-master)
License
Links
Downloads
135

Comments
comments powered by Disqus

LaravelEveTools\EveImages

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

Name Type Description Default
type string See Allowed Types Required
id Integer The ID of the Entity Required
size Integer See Allowed Sizes Required
attrs Array array of HTML attributes [ ]
lazy Boolean Lazy load Image false

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.