Download the PHP package hryvinskyi/magento2-banner-slider-api without Composer

On this page you can find all versions of the php package hryvinskyi/magento2-banner-slider-api. 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-banner-slider-api

Magento 2 & Adobe Commerce Banner Slider API

Service contracts, data interfaces and value objects of the Banner Slider.

Part of hryvinskyi/magento2-banner-slider-pack - Complete Banner Slider solution for Magento 2

What this package is

The innermost ring of the Banner Slider. It holds only contracts: no implementation, no database schema, no configuration and no templates. It depends on magento/framework and psr/clock, nothing else.

Every arrow points inward. The admin and the storefront packages call only the interfaces in this package, and never each other. Classes of the implementation package are never imported by PHP code outside it.

Contents

All types are @api.

Namespace Contents
Api\Data SliderInterface, BannerInterface, BreakpointInterface, ResponsiveCropInterface (extensible entities), CropVariantInterface (immutable variant of a crop), the four *SearchResultsInterface
Api SliderRepositoryInterface, BannerRepositoryInterface, BreakpointRepositoryInterface, ResponsiveCropRepositoryInterface (single-entity persistence)
Api\Slider SliderLocatorInterface (the slider a storefront visitor sees), SliderEditorInterface (save a slider with its breakpoints atomically)
Api\Banner VisibleBannersProviderInterface (a slider's banners at a moment), BannerEditorInterface (save a banner with its crops atomically)
Api\Picture PictureSourcesProviderInterface (ready-to-render <picture> sources per banner)
Api\ResponsiveCrop CropRegeneratorInterface (re-encode stored crops on the server)
Api\Media ImageUploadInterface, VideoUploadInterface, MediaUrlResolverInterface
Api\Image ImageFormatRegistryInterface (open set of image formats and crop variant formats)
Api\Config ImageConfigInterface, VideoConfigInterface
Api\Video ProviderInterface (a video source: parse, embed URL and attributes), ProviderResolverInterface
Api\Validation one validator per entity; repositories run them on save and throw ValidationException with every error
Api\Value value objects and enums (below)

Value objects

Domain concepts are value objects, not strings and integers: ActiveWindow, Visibility, LocationCode, AspectRatio, Dimensions, CropRect, ResponsiveItem, ImageFormat, BreakpointSpec, PictureSource, ImageFile, StorefrontContext, UploadedFile, StoredMedia, VideoData, EmbedOptions, FormatRequest, EncodedImage, CropInput, BreakpointInput, and the enums BannerType, SlideEffect, EmbedKind.

The rules they follow:

Messages of these exceptions are for developers and are not translated. Callers that show them to people turn them into their own translated messages.

Trust levels

Web API

These contracts are for PHP callers. Value objects and the upload contracts are not serialisable by the Magento web API, and the package declares no webapi.xml.

Requirements

Installation

This module is normally installed as part of the hryvinskyi/magento2-banner-slider-pack metapackage:

Upgrading from 1.x

2.0 is a breaking release; see CHANGELOG.md for every removed and changed contract.

Author

Volodymyr Hryvinskyi

License

MIT


All versions of magento2-banner-slider-api with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0||~8.4.0
magento/framework Version ^103.0.7
psr/clock Version ^1.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 hryvinskyi/magento2-banner-slider-api contains the following files

Loading the files please wait ...