snapp-market-pro / moadian
PHP SDK for working with tp.tax.gov.ir (سامانه مودیان مالیاتی)
Installs: 1 059
Dependents: 0
Suggesters: 0
Security: 0
Stars: 32
Watchers: 5
Forks: 11
Open Issues: 0
Requires
- php: ^8.0
- ext-openssl: *
- guzzlehttp/guzzle: ^7.5
- phpseclib/phpseclib: ~3.0
- ramsey/uuid: ^4.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.17
- monolog/monolog: ^3.3
- phpunit/phpunit: ^10.0
- symfony/var-dumper: ^6.2
This package is auto-updated.
Last update: 2024-10-05 08:18:39 UTC
README
کد PHP برای اتصال به سامانه مودیان مالیاتی (نظام پایانه های فروشگاهی و سامانه مودیان).
PHP code for connecting to Moadian Maliati Organization (Store Terminals and Taxpayer System).
Disclaimer
This software is provided as is without any warranty whatsoever, including accuracy and comprehensiveness. We are not associated with Moadian Maliati Organization and we have worked with the API just as simple clients so we are limited in the amount of support and help we can give regarding the functionality of the API. We have however personally used this package and have successfully submitted tens of thousands of invoices.
Installation
composer require snapp-market-pro/moadian
Usage
- Generate an RSA key pair according to specifications in moadian admin panel.
- Upload the public key of that key pair and get a username.
- Following get-tax-org-public-key get Tax Organization public key and key ID and store them somewhere.
- Construct the
Moadian
class with your private key, tax org public key, tax org key ID, your username and base url of tax org api if needed. - Login and set the received token on
Moadian
class. - Send Invoices or Inquire their status by reference numbers following send-invoices or inquire-by-reference-numbers.