Download the PHP package concentrix/module-corporate-group without Composer

On this page you can find all versions of the php package concentrix/module-corporate-group. 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-corporate-group

Concentrix Corporate Group

Concentrix code challenge!

Overview

Concentrix Corporate Groups Module for Magento 2.4 is designed to manage corporate groups through a rest API and link them with customers.

Installation

Composer (recommended)

In the root directory of magento, execute the following command:

composer require concentrix/module-corporate-group

If there are any problems trying to install this package, update to the latest version of composer

composer self-update --2

Git

On the main page of the repository, click the "Code" button and clone the repository via git, or click "Download Zip" to download the module and add it to Magento manually in app/code/Concentrix/CorporateGroup directory

In both cases (composer or git), execute the following command in the root directory of magento:

bin/magento s:up

This should be enough for the module to start working correctly, although in a few cases, it will be necessary to deploy the static content. This can be done with the following command:

bin/magento setup:static-content:deploy -f

How to consume the API

Since this web API is exposed to anonymous users, it can be accessed without the need for a token or authentication of any kind.

The urls must be formed in the following way:

http://<magento_url>/rest/all/{endpoint}

For the definition of the endpoints of this web API in a visual way, you can access the Swagger UI of Magento at:

http://<magento_url>/swagger/#/concentrixCorporateGroupCorporateGroupRepositoryV1

To consume the API, you can either download a REST client (such as Postman or Insomnia) to make the corresponding requests, or you can perform a direct curl command. (You can even run it directly from Swagger UI!)

Curl example

Manage corporate groups

There are 4 main endpoints:

Description Method Endpoint
Create a new corporate group POST V1/concentrix/corporate-groups
Get a corporate group GET V1/concentrix/corporate-groups/{internalCode}
Delete a corporate group PUT V1/concentrix/corporate-groups
Search corporate group(s) GET V1/concentrix/corporate-groups

1. Create a new corporate group

V1/concentrix/corporate-groups POST

Request example

2. Get a corporate group

V1/concentrix/corporate-groups/{internalCode} GET

Request example

There is no request body for this, the internal_code must be passed by URL

3. Delete a corporate group

V1/concentrix/corporate-groups PUT

For this endpoint, I didn't use the DELETE method because of a bug I couldn't resolve :( sorry

Request example

4. Search corporate group(s)

V1/concentrix/corporate-groups GET

There is no request body for this, the URL must conform to a couple of SearchCriteria parameters (more details in Swagger UI of your Magento instance)

V1/concentrix/corporate-groups?searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D={field_name}&searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D={value}

Example (To search by phone)

V1/concentrix/corporate-groups?searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D=telephone&searchCriteria%5BfilterGroups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D=+525512345678

Bind customer group to a customer

There are also 2 additional endpoints to link a client to a business group:

Description Method Endpoint
Link a corporate group to a customer by customer id POST V1/concentrix/corporate-groups/link-customer-by-id
Link a business group to a customer using the customer's email POST V1/concentrix/corporate-groups/link-customer-by-email

1. Link a corporate group to a customer by customer ID

V1/concentrix/corporate-groups/link-customer-by-id POST

Request example

2. Link a corporate group to a customer by customer email

V1/concentrix/corporate-groups/link-customer-by-email POST

Request example

It is also possible to link a customer with an existing corporate group through the Magento administrator, going to Customers > All Customers then clicking on the customer of your choice and going to the Account Information tab

That's it!


All versions of module-corporate-group with dependencies

PHP Build Version
Package Version
Requires php Version ~7.4.0||~8.1.0
magento/framework Version 103.0.*
magento/module-customer Version *
magento/module-webapi Version *
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 concentrix/module-corporate-group contains the following files

Loading the files please wait ...