/laravel-pubrec-sdk

Laravel SDK for PubRec's API

Primary LanguagePHPMIT LicenseMIT

Provides a Laravel SDK for PubRec API

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a Laravel SDK for the PubRec API.

Installation

You can install the package via composer:

composer require chrisreedio/laravel-pubrec-sdk

You can publish the config file with:

php artisan vendor:publish --tag="laravel-pubrec-sdk-config"

This is the contents of the published config file:

return [
    'api_key' => env('PUBREC_API_KEY'),
    'api_url' => env('PUBREC_API_URL', 'https://api.pubrec.io'),
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-pubrec-sdk-views"

Usage

$pubRecSDK = new ChrisReedIO\PubRecSDK();
echo $pubRecSDK->echoPhrase('Hello, ChrisReedIO!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.