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.
Download echointel/laravel-sdk
More information about echointel/laravel-sdk
Files in echointel/laravel-sdk
Package laravel-sdk
Short Description Laravel SDK for EchoIntel AI API - Forecasting, customer segmentation, inventory optimization, and more
License proprietary
Homepage https://github.com/EchoSistema/echointel-laravel-sdk
Informations about the package laravel-sdk
EchoIntel Laravel SDK
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
- PHP 8.1+
- Laravel 10.x, 11.x, or 12.x
- Composer
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
- Sandbox mode toggle via
ECHOINTEL_SANDBOXenvironment variable - Separate
ECHOINTEL_API_URL(production) andECHOINTEL_SANDBOX_API_URL(sandbox) configuration
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
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^10.0|^11.0|^12.0
ext-json Version *