{"id":20930144,"url":"https://github.com/uzdevid/yii2-apelsin","last_synced_at":"2026-04-21T18:08:08.738Z","repository":{"id":87123483,"uuid":"554621634","full_name":"uzdevid/yii2-apelsin","owner":"uzdevid","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-20T05:31:49.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T07:47:46.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uzdevid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-20T05:30:21.000Z","updated_at":"2024-04-20T18:36:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"46899cc6-daee-4c1e-9f4c-ec05f2c8c423","html_url":"https://github.com/uzdevid/yii2-apelsin","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"d7ea7c8e9d928474688440fb0586e8871bfb8e4f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/uzdevid/yii2-apelsin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzdevid%2Fyii2-apelsin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzdevid%2Fyii2-apelsin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzdevid%2Fyii2-apelsin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzdevid%2Fyii2-apelsin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uzdevid","download_url":"https://codeload.github.com/uzdevid/yii2-apelsin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzdevid%2Fyii2-apelsin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32103729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T21:29:21.023Z","updated_at":"2026-04-21T18:08:08.703Z","avatar_url":"https://github.com/uzdevid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Apelsin\n=======\nIntegration with the \"Apelsin\" payment system\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist uzdevid/yii2-apelsin \"dev-main\"\n```\n\nor add\n\n```\n\"uzdevid/yii2-apelsin\": \"dev-main\"\n```\n\nto the require section of your `composer.json` file.\n\n***\n\nUsage\n-----\n\n**Note: You can use this extension after creating a contract between the Apelsin service and your company. And you can\nuse most of the methods only when you create your company as a payment system through the Central Bank of the Republic\nof Uzbekistan.**\n\n---\n\nLogin and password can be obtained from the technical specialists of the Apelsin service\n\n```php\n    $config = [\n        'login' =\u003e '\u003clogin\u003e',\n        'password' =\u003e '\u003cpassword\u003e'\n    ];\n```\n\nCreating an instance of a class\n\n```php\n    $apelsin = new uzdevid\\apelsin\\Apelsin($config);\n```\n\n### Working with cards\n\n***\n\n#### Getting p2p information about the card (cards.get_p2p_info)\n\nparams:\n\n1. card number is string\n\n```php\n    $card = $apelsin-\u003ecard-\u003einfo('\u003ccard number\u003e');\n```\n\n***\n\n#### Getting card data by card number and expiry date (cards.get)\n\nparams:\n\n1. card number is string or array\n2. expiry date is string\n\n```php\n    $card = $apelsin-\u003ecard-\u003edata('\u003ccard number\u003e', '\u003cexpiry date\u003e');\n```\n\nor (cards.get_some)\n\n```php\n    $cards = [\n        ['token' =\u003e '\u003ctoken_1\u003e', 'expire' =\u003e '\u003cexpire_1\u003e'],\n        ['token' =\u003e '\u003ctoken_2\u003e', 'expire' =\u003e '\u003cexpire_2\u003e'],\n        ['token' =\u003e '\u003ctoken_3\u003e', 'expire' =\u003e '\u003cexpire_3\u003e'],\n    ];\n    $card = $apelsin-\u003ecard-\u003edata($cards);\n```\n\n***\n\n#### Getting card data by token (cards.get)\n\nparams:\n\n1. token is string or array\n\n```php\n    $card = $apelsin-\u003ecard-\u003edataByToken('\u003ctoken\u003e');\n```\n\nor (cards.get_some)\n\n```php\n    $tokens = ['\u003ctoken_1\u003e', '\u003ctoken_2\u003e', '\u003ctoken_3\u003e'];\n    $card = $apelsin-\u003ecard-\u003edataByToken($tokens);\n```\n\n***\n\n#### Getting a phone number linked to a card by card number and expiry date (cards.get_phone)\n\nparams:\n\n1. card number is string\n2. expiry date is string\n\n```php\n    $card = $apelsin-\u003ecard-\u003ephone('\u003ccard number\u003e', '\u003cexpiry date\u003e');\n```\n\n***\n\n#### Getting a phone number linked to a card by token (cards.get_phone)\n\nparams:\n\n1. token is string\n\n```php\n    $card = $apelsin-\u003ecard-\u003ephoneByToken('\u003ctoken\u003e');\n```\n\n***\n\n#### Method that will block the card (cards.block)\n\nparams:\n\n1. token is string\n\n```php\n    $card = $apelsin-\u003ecard-\u003eblock('\u003ctoken\u003e');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzdevid%2Fyii2-apelsin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuzdevid%2Fyii2-apelsin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzdevid%2Fyii2-apelsin/lists"}