Laravel package for Publit.io PHP SDK.
- Register the LaritioServiceProvider in config/app.php
- Execute php artisan vendor:publish and publish the Laritio config file.
- Add your configuration values for Laritio to your .env
You're all done!
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