Download the PHP package semexpert/module-store-info-blocks without Composer

On this page you can find all versions of the php package semexpert/module-store-info-blocks. 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 module-store-info-blocks

SemExpert_StoreInfoBlocks

SemExpert_StoreInfoBlocks enables developers to include Magento blocks in their themes that have access to Store Configuration like address, phone number, etc.

Build Status

Getting Started

To get started you only need to add the module to an existing Magento2 installation.

Prerequisites

You need a running copy of Magento2

Also, in order for composer to locate the module repository, you need to have set up SemExpert repository:

Install

To get StoreInfoBlocks up and running, you need to add it as a dependency to your Magento composer.json file

Or add it manually to your composer.json

After installing, you need to enable via the Magento CLI

Running tests

This module provides only unit tests that can be hooked into Magento testsuite in the standard way

In order to run this module's tests exclusively you can use the provided dev/phpunit.xml configuration file.

I found no need for integration or functional tests as of yet. And also I am unsure about how to write those.

Coding Styles

The module follows Magento 2.2 PHP and Less coding standards. You should test your code using the provided black/white lists and phpunit.xml configuration.

Magento 2

Components

The module provides 2 types of blocks

These blocks are available for use in your custom themes but are not automatically included anywhere on the site.

Usage

Template

By simply calling the Template block in a layout, the provided storeinfo.phtml template will be used which is provided only as an example

or you can provide your own template. Within the template, you can access a DataObject containing the store information by calling $block->getStoreInformation()

default.xml

storeinfo-modal-window.phtml

Available data keys are:

Value

You can set up a value block via layout XML to retrieve a single unformatted value

contact_index_index.xml

app/design/SemExpert/CustomTheme/Magento_Contact/templates/form.phtml

Check the description for Template block for a list of accepted values for the key argument.

Versioning

We use SemVer for versioning. To see available versions, check the tags for this repository.

Authors

Also check the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments


All versions of module-store-info-blocks with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
magento/module-store Version 100.2.*|101.*.*
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 semexpert/module-store-info-blocks contains the following files

Loading the files please wait ....