linepayamak / laravel
A Laravel package for interacting with LinePayamak service.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel-package
Requires (Dev)
- illuminate/support: >=6.4
This package is auto-updated.
Last update: 2024-05-15 22:43:38 UTC
README
A Laravel package for interacting with LinePayamak service.
PHP Requirements
- SOAP Extension (source php.ini)
How to provide in laravel project?
First of all you need to add a new requirement to laravel project with below command.
composer require linepayamak/laravel
After that, Update autoloader comopser file with this command.
composer update && composer dump-autoload
Now, Update service provider list at config/app.php
like this.
/* * Package Service Providers... */ LinePayamak\Support\Laravel\ServiceProvider::class,
Add config file to your project with this command.
php artisan vendor:publish --provider="LinePayamak\Support\Laravel\ServiceProvider"
Finally, check out the config/linepayamak.php
file.
How to use in laravel project?
In controllers or any where.
$SMS = resolve('LinePayamak');
echo $SMS->GetCredit();
OR use facade.
use LinePayamak\Support\Laravel\Facade as SMS;
echo SMS::GetCredit();