Euphme Laravel SDK
Eupheme laravel sdk is laravel package for integrate Eupheme to laravle project., (*1)
Installation
composer require sanmark/eupheme-laravel-sdk, (*2)
publish configurations
php artisan vendor:publish --provider="Sanmark\EuphemeLaravelSdk\EuphemeLaravelSdkServiceProvider", (*3)
Configurations
configurations located in config/eupheme-laravel-sdk.php, (*4)
Add details of eupheme instances
'instances' => [
'ads' => [
'base_url' => '{name of eupheme instance}',
'app_key' => '{app key of eupheme instance}',
'app_hash' => '{app hash of euphme instance}'
]
],, (*5)
##### Auto approve comments, (*6)
To auto approve comments change auto_approve to 1. Default value is 0, (*7)
##### customize user details, (*8)
To customize user details create class implementing interface Sanmark\EuphemeLaravelSdk\iUserHelper, (*9)
implement both getAuthUserID and getUserNameFromID and add class name to configuration file under user_helper, (*10)
#### Usage, (*11)
include view anywhere you want to include eupheme comments section
@include('eupheme-laravel-sdk::comments', ['eupheme_ext_ref' => {reference_number_for_comments}, 'eupheme_instance' => '{name_o_the_instance}']), (*12)