andrey-helldar / pochta
Package for working with API Russian Post.
Fund package maintenance!
paypal.me/helldar
Requires
- php: ^5.6.4|^7.0|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.11
- phpunit/phpunit: ~4.0|~5.0
- sllh/php-cs-fixer-styleci-bridge: ^2.1
This package is auto-updated.
Last update: 2021-11-13 19:03:17 UTC
README
Package for working with API Russian Post.
Installation
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"
Configuration
See at config/pochta.php
:
`api_url_one` - Адрес для Единичного доступа.
`api_login` - Логин для доступа к API Сервиса отслеживания.
`api_password` - Пароль для доступа к API Сервиса отслеживания.
Using
echo \Helldar\Pochta\Tracking::one('XX123456789123'); // XX123456789123 - Track ID
Copyright and License
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.