Download the PHP package siteation/magento2-icons-payment without Composer

On this page you can find all versions of the php package siteation/magento2-icons-payment. 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 magento2-icons-payment

Siteation - Magento 2 Payment Icons

Packagist Version Supported Magento Versions Hyvä Themes Supported License

This Magento 2 module adds payment method icons to your storefront, as a library of 40 icons in three styles, with view models to render them.

Unlike most icon packs, this one is not tied to a frontend. It needs nothing but magento/framework, so the icons render in Luma, Nebula, a custom theme or a standalone checkout. Install it alongside Hyvä and the same call renders inline SVG through Hyvä's own SvgIcons, so a Hyvä store keeps the theme fallback, icon cache and Alpine handling it already has.

Installation

Install the package via:

How to use

Each style has its own view model, so you pick the look by picking the view model:

Style View model Look
default Siteation\IconsPayment\ViewModel\PaymentIcons Card with the brand logo
flat Siteation\IconsPayment\ViewModel\PaymentIconsFlat Flat brand logo
mono Siteation\IconsPayment\ViewModel\PaymentIconsMono Monochrome

Preview of each style

Default

Flat

Mono

The monochrome icons are drawn with currentColor, so they take the text colour of whatever you place them in. They are not previewed here for that reason.

Get Payment Icons in your own Template blocks.

First get the view model in your template, using the following sample:

Hyva - Sample Phtml file head
Luma - Sample Phtml file head _For Luma templates, pass the view model as a block argument in your layout XML:_

After this you can render any icon in your phtml:

What comes out depends on the store, and nothing else about the call changes:

Extra attributes land on the root element either way, so ['loading' => 'eager'] works for icons above the fold.

Sizing defaults to 24 × 24. Pass your own width and height to scale, in any ratio: the icons are drawn on a 24 × 16 canvas and are scaled to fit the box you give them, never stretched to fill it.

Accessibility

Pass a title when an icon is the only thing naming a payment option. It becomes the <title> of an inline icon and the alt text of an <img>.

Without one the <img> renders alt="", which is how HTML says decorative. That is the right default for icons sitting next to a label that repeats the same name.

What the <img> fallback cannot do

Two things need inline SVG, so they need a Hyvä store:

Available icons

abn-b2b-afterpay • alipay • amazonpay • amex • applepay • bancontact • banktransfer • belfius • biller • billie • billink • cash-on-delivery • creditcard • direct-debit • eps • giftcard • giropay • googlepay • ideal • ideal-wero • in-3 • kbc • klarna • maestro • mastercard • multibanco • mybank • payconiq • paypal • paysafecard • przelewy-24 • riverty • sepa • sofort • stripe • trustly • visa • vpay • wechatpay • wero

[!NOTE] in3 and przelewy24 are accepted as aliases of in-3 and przelewy-24, so both spellings resolve to the same icon.

Missing or Outdated Payment Icons?

We strive to keep this list of payment options and their logos accurate and up to date.

If you notice a missing icon or an outdated logo, please help us improve the list by opening an issue or, even better, submitting a pull request.

Enhance Your Store with Automatic Payment Icons

This icon pack integrates with our StoreInfo Payments module to automatically display payment icons based on your configured Magento 2 payment options.

Interested, then checkout the StoreInfo Payments to display your Payment options Automatically!

More Siteation Modules

We have a whole suite of modules that add even more features to your store.

Icon License

The payment icons used in this module were created by Siteation under a MIT License

Disclaimer

All used trademarks, brands and/or names are the property of their respective owners.

The use of these trademarks, brands and/or names does not indicate endorsement of the property holder by us, nor vice versa.


All versions of magento2-icons-payment with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version >=102.0.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 siteation/magento2-icons-payment contains the following files

Loading the files please wait ...