Download the PHP package echointel/laravel-sdk without Composer

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

EchoIntel Laravel SDK

Packagist Version Packagist Downloads PHP Version Laravel Version

Laravel SDK for the EchoIntel AI API -- forecasting, customer segmentation, inventory optimization, anomaly detection, credit risk, NLP, and more.

Packagist: https://packagist.org/packages/echointel/laravel-sdk

Requirements

Installation

The service provider and facade are registered automatically via Laravel auto-discovery.

Publish Configuration

Environment Variables

Add the following to your .env file:

Sandbox / Production

The SDK defaults to sandbox mode when ECHOINTEL_SANDBOX is absent.

You can also override the URLs directly:

Optional

Quick Start

Using the Facade

Using Dependency Injection

Using the Helper

Available Methods

System

Method Endpoint
health() GET /health

Forecasting

Method Endpoint
forecastRevenue(array $data) POST /api/forecast-revenue
forecastCost(array $data) POST /api/forecast-cost
forecastCostImproved(array $data) POST /api/forecast-cost-improved
forecastUnits(array $data) POST /api/forecast-units
forecastCostTotus(array $data) POST /api/forecast-cost-totus

Inventory

Method Endpoint
inventoryOptimization(array $data) POST /api/inventory-optimization
inventoryHistoryImproved(array $data) POST /api/inventory-history-improved

Customer Analytics

Method Endpoint
customerSegmentation(array $data) POST /api/customer-segmentation
customerFeatures(array $data) POST /api/customer-features
customerLoyalty(array $data) POST /api/customer-loyalty
customerRfm(array $data) POST /api/customer-rfm
customerClvFeatures(array $data) POST /api/customer-clv-features
customerClvForecast(array $data) POST /api/customer-clv-forecast

Churn Analysis

Method Endpoint
churnRisk(array $data) POST /api/churn-risk
churnLabel(array $data) POST /api/churn-label

NPS

Method Endpoint
nps(array $data) POST /api/nps

Propensity Modeling

Method Endpoint
propensityBuyProduct(array $data) POST /api/propensity-buy-product
propensityRespondCampaign(array $data) POST /api/propensity-respond-campaign
propensityUpgradePlan(array $data) POST /api/propensity-upgrade-plan

Recommendations

Method Endpoint
recommendUserItems(array $data) POST /api/recommend-user-items
recommendSimilarItems(array $data) POST /api/recommend-similar-items

Cross-Sell & Upsell

Method Endpoint
crossSellMatrix(array $data) POST /api/cross-sell-matrix
upsellSuggestions(array $data) POST /api/upsell-suggestions

Dynamic Pricing

Method Endpoint
dynamicPricingRecommend(array $data) POST /api/dynamic-pricing-recommend

Sentiment Analysis

Method Endpoint
sentimentReport(array $data) POST /api/sentiment-report
sentimentRealtime(array $data) POST /api/sentiment-realtime

Anomaly Detection

Method Endpoint
anomalyTransactions(array $data) POST /api/anomaly-transactions
anomalyAccounts(array $data) POST /api/anomaly-accounts
anomalyGraph(array $data) POST /api/anomaly-graph

Credit Risk

Method Endpoint
creditRiskScore(array $data) POST /api/credit-risk-score
creditRiskExplain(array $data) POST /api/credit-risk-explain

Marketing Attribution

Method Endpoint
channelAttribution(array $data) POST /api/channel-attribution
upliftModel(array $data) POST /api/uplift-model

Customer Journey

Method Endpoint
journeyMarkov(array $data) POST /api/journey-markov
journeySequences(array $data) POST /api/journey-sequences

NLP & Text Processing

Method Endpoint
nlpAnalysis(array $data) POST /api/nlp-analisys
nlpAnalysisEn(array $data) POST /api/nlp-analisys-en
nlpExcessInventoryReport(array $data) POST /api/nlp-openai-excess-inventory-report
sanitizeText(array $data) POST /api/sanitize-text

Advanced Segmentation (Admin)

Method Endpoint
purchasingSegmentation(array $data) POST /api/purchasing-segmentation
purchasingSegmentationDendrogram(array $data) POST /api/purchasing-segmentation-dendrogram
segmentHierarchyChart(array $data) POST /api/segment-hierarchy-chart
segmentSubsegmentExplore(array $data) POST /api/segment-subsegment-explore
segmentClusterProfiles(array $data) POST /api/segment-cluster-profiles

Reporting (Admin)

Method Endpoint
segmentationReport(array $data) POST /api/segmentation-report
segmentationReportI18n(array $data, string $lang) POST /api/segmentation-report-i18n?lang={lang}
segmentationReportJson(array $data, string $lang) POST /api/segmentation-report-json?lang={lang}

Async ML Jobs

Method Endpoint
listJobs(?string $customerApiId, ?string $status, ?int $limit) GET /api/jobs
getJobStatus(string $jobId) GET /api/jobs/{jobId}/status
getJobResult(string $jobId) GET /api/jobs/{jobId}/result

Dead Letter Queue (Admin)

Method Endpoint
listDlqMessages(?string $queueName, ?int $limit) GET /api/dlq/messages
retryDlqMessage(string $jobId, ?string $queueName) POST /api/dlq/retry/{jobId}
deleteDlqMessage(string $jobId, ?string $queueName) DELETE /api/dlq/messages/{jobId}

Route Resolver

The SDK includes a RouteResolver for semantic route permissions using dot notation. This is used when creating or updating customers via the Admin API.

Error Handling

Configuration

After publishing, edit config/echointel.php:

Upgrading from v1.x to v2.0

Breaking Changes

API endpoint URLs changed from snake_case to kebab-case.

This is a server-side change. The SDK methods remain the same -- no code changes are needed in your application. However, the underlying HTTP requests now target kebab-case URLs:

v1.x v2.0
/api/forecast_revenue /api/forecast-revenue
/api/customer_segmentation /api/customer-segmentation
/api/churn_risk /api/churn-risk
... ...

Default API URL changed. The SDK now defaults to sandbox mode (https://ai.echosistema.dev). To use production, set ECHOINTEL_SANDBOX=false in your .env.

New in v2.0

Testing

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

Proprietary. See License File for details.


All versions of laravel-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^10.0|^11.0|^12.0
ext-json 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 echointel/laravel-sdk contains the following files

Loading the files please wait ...