Download the PHP package magebitcom/magento2-module-agentic-core without Composer

On this page you can find all versions of the php package magebitcom/magento2-module-agentic-core. 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-module-agentic-core

Magebit_AgenticCore

Shared commerce primitives for Magebit's agentic commerce modules. Everything here answers a question about a Magento quote that every wire protocol has to ask, in terms none of them define.

What belongs here

Admission rule: if a class would have to change when a spec releases, it does not belong in this module. Naming a protocol is the cheapest detectable proxy for that, so the guard is a case-insensitive grep over this whole directory for either protocol's abbreviation or either consuming module's name. It must return nothing.

The pattern is not reproduced here on purpose: writing it out would make this file its own first violation. It lives in the purity_guard function in d/check, which runs ahead of the linters — a breach invalidates the point of the module, so there is no value in knowing the rest passed. Relaxing that grep is an abort condition for the whole shared-base effort, not a fix.

A vocabulary is the usual thing that gets smuggled in. CheckoutState has four cases and no strings: callers match over it to reach their own names, so a status renamed upstream never reaches here. BuyerIdentity is the same idea for fields rather than states.

What it provides

Class Answers
Model\Money\MinorUnits What is this major-unit price in the currency's integer minor units?
Model\Checkout\StateResolver Given a quote, an order, and whether anything blocks completion — which of the four states is this?
Model\Buyer\BuyerResolver Who is buying, reading the customer record then the billing then the shipping address?

Notes on behaviour

MinorUnits rounds on a decimal string, not by multiplying. (int) (19.99 * 100) is 1998, because 19.99 has no exact binary representation. Twelve of the cases in MinorUnitsTest fail under the naive implementation.

StateResolver checks for an order before it checks quote state. Placing an order deactivates the quote, so reading getIsActive() first reports every completed checkout as canceled.

BuyerResolver prefers billing over shipping. Billing identifies who is paying; shipping only names a recipient, who may be someone else. It also treats a blank string as absent, because Magento returns '' as readily as null for an unset address field and an empty string is a value these payloads reject.


All versions of magento2-module-agentic-core with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
php Version >=8.2
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 magebitcom/magento2-module-agentic-core contains the following files

Loading the files please wait ...