Download the PHP package ijeyg/larapayamak without Composer

On this page you can find all versions of the php package ijeyg/larapayamak. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package larapayamak

Larapayamak

Unified Laravel SMS package for Iranian providers with clean multi-gateway switching.

PHP Version Laravel Version CI

A lightweight and practical SMS abstraction for Laravel projects that need to switch providers without rewriting business logic.

✨ Key Highlights


Why Larapayamak? 🚀

If your application depends on SMS delivery (OTP, notifications, order updates), provider lock-in is risky. Larapayamak gives you one consistent API while keeping provider selection flexible.


Features


Supported SMS Gateways

Gateway Simple SMS Pattern SMS Notes
SMS.ir (smsir) Uses API token header (X-API-KEY)
FaraPayamak (farapayamak) Uses Payamak REST endpoints
FarazSms (farazsms) Supports recipient array in simple send
MeliPayamak (melipayamak) Uses Payamak REST endpoints
NikSms (niksms) Pattern method is not implemented in package
PayamResan (payamresan) Uses API key and token endpoints

Installation

Laravel auto-discovers:


Configuration

Publish config:

Config file path:


Environment Variables

Set the default gateway:

Full example for all gateways:


Architecture

Core classes

Message flow

  1. App code calls Larapayamak facade or injected SmsService
  2. SmsService delegates to selected provider
  3. Provider sends request through internal HTTP client
  4. Package returns Illuminate\Http\JsonResponse

Basic Usage

1) Facade usage

2) Dependency Injection usage

3) Controller example

4) Service class example


Multi-Gateway Usage (Main Feature) 🔁

Runtime switching without changing your domain logic:

Per-gateway examples


Error Handling

Example:


Real-World Use Cases


OTP Example

E-commerce Example

Multi-Provider Strategy

Use one default provider for normal traffic and switch per action/tenant when needed:


Testing & Quality

This package uses:

Useful commands:


Supported Versions


Contributing

PRs and issues are welcome.

Recommended local workflow:


License

MIT. See LICENSE.md.



مستندات فارسی

معرفی پکیج

Larapayamak یک پکیج لاراول برای ارسال پیامک از چند سرویس‌دهنده ایرانی با یک API یکپارچه است.
فلسفه پکیج ساده است: کد کسب‌وکار شما نباید با عوض شدن Provider تغییر کند.

چرا Larapayamak؟ 🌟


ویژگی‌ها


درگاه‌های پشتیبانی‌شده

نام درگاه پیامک ساده پیامک پترن توضیح
SMS.ir (smsir) مناسب OTP و پیامک تراکنشی
FaraPayamak (farapayamak) مبتنی بر API پایامک
FarazSms (farazsms) در پیامک ساده، ورودی آرایه گیرنده هم پشتیبانی می‌شود
MeliPayamak (melipayamak) ساختار نزدیک به FaraPayamak
NikSms (niksms) متد پترن در خود پکیج پیاده‌سازی نشده
PayamResan (payamresan) مبتنی بر API Key

نصب و راه‌اندازی

پکیج به‌صورت خودکار Service Provider و Facade را رجیستر می‌کند.

انتشار فایل تنظیمات

مسیر فایل:


متغیرهای محیطی

درگاه پیش‌فرض:

نمونه کامل برای همه درگاه‌ها:


معماری پکیج

ایده اصلی

روند اجرا

  1. فراخوانی از Facade یا سرویس تزریق‌شده
  2. انتخاب درگاه پیش‌فرض یا درگاه مشخص‌شده با gateway()
  3. ارسال درخواست به سرویس‌دهنده
  4. دریافت خروجی به‌صورت JsonResponse

استفاده پایه

استفاده با Facade

استفاده با Dependency Injection


استفاده از چند Gateway (ویژگی کلیدی) 🔁

نمونه برای هر درگاه


مدیریت خطا


مثال‌های واقعی

OTP

فروشگاه اینترنتی

استراتژی چند‌سرویس‌دهنده

اگر پایداری ارسال برای شما مهم است:


تست‌ها و کیفیت کد

ابزارهای کنترل کیفیت:


نسخه‌های پشتیبانی‌شده


تغییرات

برای مشاهده تغییرات هر نسخه، فایل CHANGELOG.md را بررسی کنید.

مشارکت‌کنندگان

برای مشارکت در توسعه، لطفاً راهنمای مشارکت را بررسی کنید و Pull Request بفرستید.
لیست مشارکت‌کنندگان پروژه در GitHub قابل مشاهده است.

امنیت

اگر مشکل امنیتی پیدا کردید، لطفاً آن را عمومی منتشر نکنید و از طریق ایمیل زیر اطلاع دهید:
[email protected]

لایسنس

توسعه و انتشار این پکیج تحت لایسنس MIT انجام می‌شود.


All versions of larapayamak with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ijeyg/larapayamak contains the following files

Loading the files please wait ...