Download the PHP package abdal/abdal-zarinpal-pg without Composer

On this page you can find all versions of the php package abdal/abdal-zarinpal-pg. 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 abdal-zarinpal-pg

Abdal Zarinpal PG For Laravel

💎 هدف اصلی

این پکیج برای یکپارچه‌سازی درگاه پرداخت زرین پال با لاراول طراحی شده است.

⚓ پیش نیاز

PHP 7.2 یا بالاتر
Laravel 7.0 یا بالاتر

✨ قابلیت‌ها

📝 چگونه کار می‌کند؟

نصب

برای نصب پکیج از کامپوزر استفاده کنید:

بروزرسانی

برای بروزرسانی پکیج از کامپوزر استفاده کنید:

تنظیمات

سپس سرویس‌پراوایدر را در فایل config/app.php اضافه کنید: (برای لاراول 11 نیاز به انجام این مورد ندارید)

و فاساد را ثبت کنید: (برای لاراول 11 نیاز به انجام این مورد ندارید)

استفاده

فرض کنید Route ها را به صورت زیر تعریف کرده اید

پس از تعریف Route ها می توانید کاربر را به آن پاس دهید و در تابعی که به route شما متصل شده است برای درخواست پرداخت یا همان ارسال مشتری به درگاه کد زیر را وارد کنید

برای تایید پرداخت مشتری:

اگر نمی خواهید در هر بار استفاده از پکیج کد درگاه و واحد پول را وارد کنید می توانید از فایل .env نیز استفاده کنید. در فایل .env پروژه خود، مقادیر مربوط به ZARINPAL_MERCHANT_ID و ZARINPAL_CURRENCY را اضافه کنید:

مرچنت کد یا کد درگاه را اضافه کنید

برای تغییر واحد پول به تومان (پکیج پیشفرض از واحد تومان استفاده می کند)

برای تغییر واحد پول به ریال

اگر تنظیمات را در فایل .env وارد کردید کدها را به صورت زیر استفاده کنید مثال استفاده با مقادیر پیش‌فرض از فایل تنظیمات ارسال مشترین به درگاه بانک

برای تایید پرداخت مشتری:

❤️ کمک به پروژه

https://alphajet.ir/abdal-donation

🤵 برنامه نویس

دست ساز با عشق توسط ابراهیم شفیعی (ابراشا)

E-Mail = [email protected]

Telegram: https://t.me/ProfShafiei

☠️ گزارش خطا

اگر با مشکلی در پیکربندی مواجه هستید یا چیزی آنطور که انتظار دارید کار نمی‌کند، لطفا از [email protected] استفاده کنید.طرح مشکلات بر روی GitLab یا Github نیز پذیرفته می‌شوند.


All versions of abdal-zarinpal-pg with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
laravel/framework Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.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 abdal/abdal-zarinpal-pg contains the following files

Loading the files please wait ....