PHPackages                             elad/cardcom - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. elad/cardcom

ActiveLibrary[Payment Processing](/categories/payments)

elad/cardcom
============

Cardcom iframe php package

0.2.1(7y ago)1138MITPHPPHP &gt;=5.6.0

Since Jul 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gasner/cardcom)[ Packagist](https://packagist.org/packages/elad/cardcom)[ RSS](/packages/elad-cardcom/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)DependenciesVersions (9)Used By (0)

Cardcom Iframe
==============

[](#cardcom-iframe)

cardcom iframe php package

Installation
------------

[](#installation)

> **Note:** Cardcom Iframe is currently in beta.

```
composer require elad/cardcom

```

### Basic Usage

[](#basic-usage)

```
use Cardcom\Iframe;
use Cardcom\Invoice;
use Cardcom\InvoiceProduct;
use Cardcom\Setting;

require 'vendor/autoload.php';

Setting::setTerminal();
Setting::setUser();
```

#### Create iframe

[](#create-iframe)

```
$iframe = new Iframe();
$iframe->setPrice(15);
$iframe->docTypeToCreate = 400;
//$iframe->setGoodUrl("http://secure.Cardcom.co.il/DealWasSuccessful.aspx");
$iframe->setGoodUrl("http://cardcom.try/response2.php");
$iframe->setErrorUrl("http://cardcom.try/error.php");
```

#### Create invoice

[](#create-invoice)

```
$invoice = new Invoice("elad gasner", "elad@closeapp.co.il");
$product = new InvoiceProduct("מעיל", 5, 1);
$product2 = new InvoiceProduct("מעיל רוח", 5, 2);
$invoice->setProducts([$product, $product2]);
$iframe->setInvoice($invoice);
```

#### Get iframe link

[](#get-iframe-link)

```
$iframe = new Iframe();
$iframe->setPrice(15);
$iframe->setInvoice($invoice);
//you can any property from the cardcom api
$iframe->docTypeToCreate = 400;

$iframe->setGoodUrl("http://cardcom.try/response2.php");
$iframe->setErrorUrl("http://cardcom.try/error.php");

// get iframe link
$result = $iframe->getIframe();

if ($result->isSuccess()) {
  $link =  $result->getUrl();
}else{
	$result->getError();
}
```

Good Luck!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~152 days

Total

8

Last Release

2598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ea3d5f4df6c88f074dae13d514476a18590e363541e547474927266b8a72e6b?d=identicon)[gasner](/maintainers/gasner)

---

Top Contributors

[![gasner](https://avatars.githubusercontent.com/u/6614838?v=4)](https://github.com/gasner "gasner (7 commits)")

### Embed Badge

![Health badge](/badges/elad-cardcom/health.svg)

```
[![Health](https://phpackages.com/badges/elad-cardcom/health.svg)](https://phpackages.com/packages/elad-cardcom)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
