sanmark / eupheme-laravel-sdk
laravel SDK for eupheme
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/sanmark/eupheme-laravel-sdk
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2025-10-21 22:44:45 UTC
README
Euphme Laravel SDK
Eupheme laravel sdk is laravel package for integrate Eupheme to laravle project.
Installation
composer require sanmark/eupheme-laravel-sdk
publish configurations
php artisan vendor:publish --provider="Sanmark\EuphemeLaravelSdk\EuphemeLaravelSdkServiceProvider"
Configurations
configurations located in config/eupheme-laravel-sdk.php
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}'
    ]
 ],
Auto approve comments
To auto approve comments change auto_approve to 1. Default value is 0
customize user details
To customize user details create class implementing interface Sanmark\EuphemeLaravelSdk\iUserHelper
implement both getAuthUserID and getUserNameFromID and add class name to configuration file under user_helper
Usage
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}'])