Download the PHP package anee/shopfinder without Composer

On this page you can find all versions of the php package anee/shopfinder. 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 shopfinder


title: README For Shopfinder Module


Anee_Shopfinder

General

The purpose of this module is to manage all store shops and find the shop by name and identifier near to customer.

Controller Actions

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\Index

This controller is used to render the grid of shops.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\Save

This controller is used to save the data after getting submitted from shop form.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\Delete

This controller is used to delete single item of shop from grid row.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\MassDelete

This controller is used to delete multiple items of shop from grid action.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\Edit

This controller is used to show form for updating the data of shop.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\NewAction

This controller is used to show form for adding the data of shop.

\Anee\Shopfinder\Controller\Adminhtml\Shopfinder\Upload

This controller is used to upload the image in directory of images from add/update form.

Services

\Anee\Shopfinder\Service\ImageUploaderService

This service is responsible to save the image in tmp images directory and then move to the original images directory.

\Anee\Shopfinder\Service\UpdateShopfinderShopDataService

This service is responsible to update the shop data used in graphql mutation resolver class.

Validators

Anee\Shopfinder\Validator\IsUniqueShopfinderIdentifierValidator

This validator will validate that same identifier is not exist. If same identifier is exist for any other shop then
it will throw exception else return true.

GraphQl APIs

GetShopByIdentifier - \Anee\Shopfinder\GraphQl\Resolver\ShopfinderResolver

This GraphQl Api is used to get shop data by input parameter identifier. It will validate first that identifier is
exist in request if not exist then throw the exception. If shop not exist with identifier then it will also throw
the exception but if exist then return data in array.

GetShopByIdentifier Request

{ GetShopByIdentifier(identifier: "string") { country createdAt id identifier image latitude longitude name updatedAt } }

GetShopfinderShopList - \Anee\Shopfinder\GraphQl\Resolver\GetShopfinderShopListResolver

This GraphQl Api is used to get all shops list. If data is not exist then it will throw exception with message.
If shop data exist then it will return the list of shop.

GetShopfinderShopList Request

{ GetShopfinderShopList { country createdAt id identifier image latitude longitude name updatedAt } }

DeleteShopByIdentifier - \Anee\Shopfinder\GraphQl\Resolver\DeleteShopfinderResolver

This GraphQl Api is used to show message when someone tried to delete shop by identifier. It will only show nice
message that shop can not be deleted and also shop will not be deleted.

DeleteShopByIdentifier Request

{ DeleteShopByIdentifier(identifier: "string") { identifier message status } }

UpdateShopfinderShop - \Anee\Shopfinder\GraphQl\Resolver\UpdateShopfinderShopResolver

This GraphQl Api is used to update the shop data. It will take all data and update the shop.

UpdateShopfinderShop Request

mutation { UpdateShopfinderShop( id: 1 name: "string" identifier: "string" country: "string" image: "string" longitude: "string" latitude: "string" ) { country createdAt id identifier image latitude longitude name updatedAt } }

Module Installation

composer require anee/shopfinder

If composer downloaded file successfully then run following command on magento root directory: php bin/magento s:up && php bin/magento setup:di:compile && php bin/magento s:s:d -f

If composer not able to download the module from source then try following:

composer require "anee/shopfinder ~1.0.0"

If still facing any issue then download code from git: https://github.com/aneel2023/shopfinder

Put above downloaded code in app/code/Anee/Shopfinder directory and execute following command:

php bin/magento s:up && php bin/magento setup:di:compile && php bin/magento s:s:d -f

Run All PHP Unit Tests

  1. Copy dev/tests/unit/phpunit.xml.dist to dev/tests/unit/phpunit.xml
  2. Comment out line 60 -> <string>allure/allure.config.php</string>
  3. Run following command from project root directory:

    vendor/bin/phpunit -c dev/tests/unit/phpunit.xml vendor/anee/shopfinder/Test/Unit/

Run All PHP Integration Tests

  1. Rename dev/tests/integration/etc/install-config-mysql.php.dist to dev/tests/integration/etc/install-config-mysql.php
  2. Update db-host, db-user, db-password and db-name (Create new db for integration tests)
  3. After creating new db, make sure to run setup:upgrade and setup:di:coompile commands
  4. Copy dev/tests/integration/phpunit.xml.dist to dev/integration/unit/phpunit.xml
  5. Execute cd dev/tests/integration
  6. Run following command from above directory:

    ../../../vendor/bin/phpunit ../../../vendor/anee/shopfinder/Test/Integration/


All versions of shopfinder with dependencies

PHP Build Version
Package Version
Requires php Version ~7.4.0||~8.1.0||~8.2.0
magento/module-backend Version 100.0.*|100.1.*|100.2.*|101.0.*|102.0.*
magento/framework Version 100.0.*|100.1.*|101.0.*|102.0.*|103.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 anee/shopfinder contains the following files

Loading the files please wait ....