Download the PHP package dmlab/module-typesafe-core without Composer

On this page you can find all versions of the php package dmlab/module-typesafe-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 module-typesafe-core

DmLab_TypeSafeCore

TypeSafe (Jev) AI client for Magento 2 — one connection, cache and token budget shared by every DMLab AI module.

CI codecov Packagist Version Downloads PHP Magento

TypeSafe answers structured questions about text — yes/no, pick one of N options, score on a scale — with calibrated probabilities instead of free-form output, at $0.042 per 1M input tokens. This module connects Magento to it. You usually get it as a dependency of a module that uses it, such as Catalog Enrich (fills empty product attributes from descriptions); on its own it adds no storefront or catalog behaviour.

What you get

Install

Magento 2.4.9+, PHP 8.3–8.5 with ext-curl. Then Stores → Configuration → DMLab → TypeSafe: enable, paste the key, Test Connection.

For developers

evaluateMany() sends a batch in parallel and returns a Response or a TypeSafeException per key; it never throws. Use Api\ConfigInterface::isConfigured() / getModel() instead of your own settings, and Api\UsageInterface for the remaining budget.

Data and privacy

Only the text a consuming module puts into a request is sent to TypeSafe (US-hosted API). Request and response content is never logged. Zero data retention is available on TypeSafe's enterprise plan.

License

OSL-3.0


All versions of module-typesafe-core with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0||~8.3.0||~8.4.0||~8.5.0
ext-curl Version *
magento/framework Version ^103.0.7
magento/module-backend Version ^102.0.7
magento/module-config Version ^101.2.7
symfony/console Version ^6.4||^7.4
psr/log Version ^2.0||^3.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 dmlab/module-typesafe-core contains the following files

Loading the files please wait ...