Laravel package for the Publitio SDK
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
composer.json
composer.lock
readme.md

readme.md

Laritio

Laravel package for Publit.io PHP SDK.

Installation

  1. Register the LaritioServiceProvider in config/app.php
  2. Execute php artisan vendor:publish and publish the Laritio config file.
  3. Add your configuration values for Laritio to your .env

You're all done!

Usage

File upload

$laritioSDKFileRequest = new LaritioSDKFileRequest(
    '/images/example.png', 
    ['title' => 'example title']
);

$laritioSDK->uploadFile($laritioSDKFileRequest);

Watermark

$laritioSDKWatermarkRequest = new LaritioSDKWatermarkRequest(
    '/images/example.png',
    [
        'name' => 'mytestwm', 
        'position' => 'bottom-right', 
        'padding' => '20'
    ]
);

$laritioSDK->uploadFile($laritioSDKWatermarkRequest);

General request

adtags list as example.

$laritioSDKRequest = new LaritioSDKRequest(
    '/players/adtags/list'
);

$laritioSDK->call($laritioSDKRequest);

For all possibilities see the publit.io API documentation at: https://publit.io/docs/?php#getting-started