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

Overview

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

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" ">
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.

You might also like...
This package is a simple API laravel wrapper for Pokemontcg with a sleek Model design for API routes and authentication.

This package is a simple API laravel wrapper for Pokemontcg with a sleek Model design for API routes and authentication.

API G4RZK is a website that stores data from other websites (cURL).

API G4RZK is a website that stores data from other websites (cURL).

The official PHP SDK for Webmarketer (app.webmarketer.io)
The official PHP SDK for Webmarketer (app.webmarketer.io)

PHP SDK for Webmarketer The official PHP SDK for Webmarketer (app.webmarketer.io). Install To add this package, your project must meet several require

The official Previewify.app PHP Client
The official Previewify.app PHP Client

Previewify for PHP This is the official Previewify client for PHP. Support us Like our work? You can support us by purchasing one of our products. Ins

PHP package to manage google-api interactions

Google-api-client PHP package to manage google-api interactions Supports: Google Drive API Google Spreadsheet API Installation composer require obrio-

🌐 Free Google Translate API PHP Package. Translates totally free of charge.

Google Translate PHP Free Google Translate API PHP Package. Translates totally free of charge. Installation Basic Usage Advanced Usage Language Detect

PHP GitHub Sponsors is a package that integrates directly with the GitHub Sponsors GraphQL API.

PHP GitHub Sponsors PHP GitHub Sponsors is a package that integrates directly with the GitHub Sponsors GraphQL API. Using it, you can easily check if

PHP package providing easy and fast access to Twitter API V2.

Twitter API V2 is a PHP package that provides an easy and fast access to Twitter REST API for Version 2 endpoints.

Nexmo REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.

Client Library for PHP Support Notice This library and it's associated packages, nexmo/client and nexmo/client-core have transitioned into a "Maintena

Releases(v1.0.0)
A library written in PHP to interact with Coinbase Pro via API.

A library written in PHP to interact with Coinbase Pro via API.

Blake Hamilton 4 Mar 31, 2022
This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP

Twilio SendGrid 1.4k Dec 27, 2022
This library is for integration with Salesforce via REST API.

xsolve-pl/salesforce-client Introduction This library is for integration with Salesforce via REST API. Licence This library is under the MIT license.

Boldare / XSolve Sp. z o.o. 31 Oct 13, 2022
laravel wrapper for dicom images services

laravel wrapper for dicom images services

Laravel Iran Community 4 Jan 18, 2022
Code Quiz MonoRepo (API, API Client, App)

Code Quiz Welcome to the Code Quiz Open Source project from How To Code Well. This is an Open Source project that includes an API and an App for the d

How To Code Well 2 Nov 20, 2022
PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

Sergey Bykov 63 Feb 14, 2022
ProcessTranslatePage – A Processwire module to translate all page fields via Fluency

ProcessTranslatePage – A Processwire module to translate all page fields via Fluency ProcessTranslatePage is an extension for the Processwire module F

Robert Weiss 5 Aug 29, 2022
A links dashboard which can be integrated via HTML into various other systems.

quickdash Newest QuickDash version. Combines the API and Client repositories. Requirements PHP version 7.4 - https://www.php.net/ Composer - https://g

Hugo Soares 0 Aug 11, 2022
Notifies via Telegram when an aircraft passes over a certain area.

adsbTelegramNotifier Notifies via Telegram when an aircraft passes over a certain area. The script gets the data from an existing readsb or dump1090 i

RundesBalli 6 Dec 18, 2022
A2Reviews Client API lets you build apps, extensions or plugins to get reviews from the A2reviews APP

A2Reviews Client API lets you build apps, extensions or plugins to get reviews from the A2reviews APP. Including adding reviews to a store's products. It is used to import and export reviews through the API. This is the official package built and developed by A2Reviews, Inc.

Be Duc Tai 2 Sep 25, 2021