yaroslawww / laravel-zvonok-api
Laravel api client for zvonok.com service
1.0.3
2020-09-09 08:24 UTC
Requires
- php: ^7.4
- ext-json: *
- guzzlehttp/guzzle: ~6.0|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^9.0
- psalm/plugin-laravel: ^1.2
- vimeo/psalm: ^3.11
This package is auto-updated.
Last update: 2024-11-09 17:50:55 UTC
README
Installation
You can install the package via composer:
composer require yaroslawww/laravel-zvonok-api
You can publish and run the migrations with:
You can publish the config file with:
php artisan vendor:publish --provider="GCSC\LaravelZvonokApi\LaravelZvonokApiServiceProvider" --tag="config"
Usage
ZvonokApi::request('post', 'phones/append/calls/', [ 'multipart' => [ [ 'name' => 'campaign_id', 'contents' => '123456789', ], [ 'name' => 'phones', 'contents' => fopen('/path/to/file.csv', 'r'), // just csv data as string ], ], ] );
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.