Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

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

About

Laravel package for the Publitio SDK

Resources

License

Packages

No packages published

Languages