serengiy/easy-link

easy-link package

1.1.1.0 2024-12-19 14:59 UTC

This package is auto-updated.

Last update: 2025-06-19 15:57:09 UTC


README

Installation

1. Add the Service Provider

\Serengiy\EasyLink\Providers\EasyLinkServiceProvider::class

2. Publish the Configuration File

Run the following Artisan command to publish the EasyLink configuration file:

php artisan vendor:publish --provider="Serengiy\EasyLink\Providers\EasyLinkServiceProvider"

3. Add Environment Variables

Add the following configuration values to your .env file:

EASY_LINK_URL='URL sendbox or easylink'
EASY_LINK_CK='Your company key'
EASY_LINK_APP_ID='Your app id'
EASY_LINK_APP_SECRET='Your app secret'

4. Set the Private Key Path

In the published configuration file (config/easylink.php), specify the path to your private key file for the private_key parameter:

'private_key' => storage_path('/path/to/your/private_key.pem'),

5. Ensure Required PHP Extension

Your application needs the openssl PHP extension to use this package. Make sure ext-openssl is added to your main composer.json file to enforce this requirement:

{
    "require": {
        "php": "^8.0",
        "ext-openssl": "*"
    }
}