LaravelPackages.net
Acme Inc.
Toggle sidebar
havenstd06/limg-php-client

PHP package for the Limg.app website - allowing to upload images via the API of the website.

40
3
v1.0.0
About havenstd06/limg-php-client

havenstd06/limg-php-client is a Laravel package for php package for the limg.app website - allowing to upload images via the api of the website.. It currently has 3 GitHub stars and 40 downloads on Packagist (latest version v1.0.0). Install it with composer require havenstd06/limg-php-client. Discover more Laravel packages by havenstd06 or browse all Laravel packages to compare alternatives.

Last updated

Limg PHP Client Package.

limg logo

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require havenstd06/limg-php-client

Usage

use Havenstd06\Limg\Client as Limg;

$token = "abcdef1234";
Limg::setApiToken($token);

$img = Limg::upload('./images/test.png', $title = null);

$getSuccess = $img->getSuccess(); // true || false
$getStatus = $img->getStatus(); // 200
$getTitle = $img->getTitle(); // "Image uploaded from Client-PHP-Client"
$getDatetime = $img->getDatetime(); // "1626435783"
$getDate = $img->getDate(); // "2021-07-16 11:34:54"
$getType = $img->getType(); // "image/jpeg"
$getUserId = $img->getUserId(); // 2
$getUsername = $img->getUsername(); // "Havens"
$getState = $img->getState(); // 2
$getDeleteLink = $img->getDeleteLink(); // "https://limg.app/api/images/delete/xxxxxx"
$getPageLink = $img->getPageLink(); // "https://limg.app/i/xxxxxx"
$getLink = $img->getLink(); // "https://limg.app/i/xxxxxx.xxx"

More information on Limg's documentation HERE.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments