Package for working with API Russian Post.
Require this package with composer using the following command:
composer require andrey-helldar/pochta
or
{
"require": {
"andrey-helldar/pochta": "~1.0"
}
}
After updating composer, add the service provider to the providers
array in config/app.php
Helldar\Pochta\PochtaServiceProvider::class,
You can also publish the config file to change implementations (ie. interface to specific class):
php artisan vendor:publish --provider="Helldar\Pochta\PochtaServiceProvider"
See at config/pochta.php
:
`api_url_one` - Адрес для Единичного доступа.
`api_login` - Логин для доступа к API Сервиса отслеживания.
`api_password` - Пароль для доступа к API Сервиса отслеживания.
echo \Helldar\Pochta\Tracking::one('XX123456789123');
// XX123456789123 - Track ID
Sitemap was written by Andrey Helldar for the Laravel Framework 5.3 or later, and is released under the MIT License. See the LICENSE file for details.