PHPackages                             azaharizaman/nexus-procurement-ml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. azaharizaman/nexus-procurement-ml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

azaharizaman/nexus-procurement-ml
=================================

Machine learning feature extractors for procurement analytics - predictive models for vendor fraud detection, pricing anomalies, budget overruns, and delivery quality

02PHP

Since May 5Pushed 2mo agoCompare

[ Source](https://github.com/azaharizaman/nexus-procurement-ml)[ Packagist](https://packagist.org/packages/azaharizaman/nexus-procurement-ml)[ RSS](/packages/azaharizaman-nexus-procurement-ml/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nexus Procurement-ML Adapter
============================

[](#nexus-procurement-ml-adapter)

**Package:** `azaharizaman/nexus-procurement-ml`

Overview
--------

[](#overview)

This package provides Machine Learning (ML) feature extraction capabilities for the `azaharizaman/nexus-procurement` package. It is designed as an optional adapter, allowing consumers to leverage ML-powered analytics for procurement processes without forcing the dependency on applications that do not require it.

This adheres to the Nexus philosophy of package atomicity and framework agnosticism.

Features
--------

[](#features)

- **Feature Extraction for Procurement Entities:** Provides `FeatureExtractorInterface` implementations for various procurement-related entities.
- **Anomaly Detection:** Extracts features for identifying anomalies in:
    - Purchase Order Quantities
    - Vendor Pricing
- **Risk Prediction:** Extracts features for predicting:
    - Requisition Approval Risks
    - Budget Overruns
    - GRN Discrepancies
- **Fraud Detection:** Extracts features for vendor fraud detection.
- **Efficiency Analysis:** Extracts features for PO conversion efficiency.

Installation
------------

[](#installation)

```
composer require azaharizaman/nexus-procurement-ml:"*@dev"
```

Core Concepts
-------------

[](#core-concepts)

This package acts as a bridge between the `azaharizaman/nexus-procurement` package and the `azaharizaman/nexus-machine-learning` package. The extractors in this package are designed to be used by the services in `azaharizaman/nexus-machine-learning`.

### Available Extractors

[](#available-extractors)

- `BudgetOverrunPredictionExtractor`
- `GRNDiscrepancyPredictionExtractor`
- `POConversionEfficiencyExtractor`
- `ProcurementPOQtyExtractor`
- `RequisitionApprovalRiskExtractor`
- `VendorFraudDetectionExtractor`
- `VendorPricingAnomalyExtractor`

### Available Analytics Repository Interfaces

[](#available-analytics-repository-interfaces)

- `ApprovalAnalyticsRepositoryInterface`
- `BudgetAnalyticsRepositoryInterface`
- `ConversionAnalyticsRepositoryInterface`
- `DeliveryAnalyticsRepositoryInterface`
- `HistoricalDataRepositoryInterface`
- `PricingAnalyticsRepositoryInterface`
- `VendorAnalyticsRepositoryInterface`

Application Layer Integration
-----------------------------

[](#application-layer-integration)

### Laravel Example

[](#laravel-example)

In your application's service provider, you would bind the analytics repository interfaces to your concrete implementations.

```
// App\Providers\ProcurementMLServiceProvider.php

use App\Repositories\Procurement;
use Nexus\ProcurementML\Contracts;
use Illuminate\Support\ServiceProvider;

class ProcurementMLServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        $this->app->singleton(
            Contracts\ApprovalAnalyticsRepositoryInterface::class,
            Procurement\ApprovalAnalyticsRepository::class
        );

        $this->app->singleton(
            Contracts\BudgetAnalyticsRepositoryInterface::class,
            Procurement\BudgetAnalyticsRepository::class
        );

        // ... bind other interfaces
    }
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance56

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 76.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/117408?v=4)[Azahari Zaman](/maintainers/azaharizaman)[@azaharizaman](https://github.com/azaharizaman)

---

Top Contributors

[![azaharizaman](https://avatars.githubusercontent.com/u/117408?v=4)](https://github.com/azaharizaman "azaharizaman (464 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (139 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/azaharizaman-nexus-procurement-ml/health.svg)

```
[![Health](https://phpackages.com/badges/azaharizaman-nexus-procurement-ml/health.svg)](https://phpackages.com/packages/azaharizaman-nexus-procurement-ml)
```

###  Alternatives

[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

254.2M8](/packages/voku-urlify)[data-uri/data-uri

PHP DataURI component

60639.3k4](/packages/data-uri-data-uri)[microcmsio/microcms-php-sdk

microCMS PHP SDK

18115.0k](/packages/microcmsio-microcms-php-sdk)[marcocesarato/minifier

This class can minify HTML, Javascript and CSS

1346.7k](/packages/marcocesarato-minifier)[spatie/laravel-mailcoach-monaco

A Monaco editor package for Mailcoach

1017.4k1](/packages/spatie-laravel-mailcoach-monaco)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
