PHPackages                             xgenious/xgapiclient - 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. xgenious/xgapiclient

ActiveLibrary

xgenious/xgapiclient
====================

this package help to update xgenious products from user dashbaord by just click.

v6.2.0(4mo ago)18.4k↓48.9%4[1 PRs](https://github.com/XgeniousLLC/license-api-client/pulls)MITPHPPHP ^8.1

Since Apr 11Pushed 4mo agoCompare

[ Source](https://github.com/XgeniousLLC/license-api-client)[ Packagist](https://packagist.org/packages/xgenious/xgapiclient)[ Docs](https://github.com/xgenious/xgapiclient)[ RSS](/packages/xgenious-xgapiclient/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (44)Used By (0)

this package is for managing the license management system for xgenious internals
=================================================================================

[](#this-package-is-for-managing-the-license-management-system-for-xgenious-internals)

[![Latest Version on Packagist](https://camo.githubusercontent.com/68220afc0add520ba93168779a1ab029d6733a2cc0ce6c41fbcfdb86ea8e3787/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7867656e696f75732f7867617069636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xgenious/xgapiclient)[![Total Downloads](https://camo.githubusercontent.com/468773e53ae9418cb3cb1e538c3d8d7cdbd19bdc4e9eeae2b0f0b3dc31e5a45f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7867656e696f75732f7867617069636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xgenious/xgapiclient)

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

[](#installation)

You can install the package via composer:

```
composer require xgenious/xgapiclient
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="xgapiclient-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="xgapiclient-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="xgapiclient-views"
```

### V2 Chunked Update System Installation

[](#v2-chunked-update-system-installation)

For the new V2 chunked update system, you need to publish the JavaScript assets:

```
php artisan vendor:publish --tag=xgapiclient-assets
```

This publishes `UpdateManager.js` to `assets/vendor/xgapiclient/js/`.

Ensure the update storage directory exists:

```
mkdir -p storage/app/xg-update
chmod 755 storage/app/xg-update
```

### Configuration

[](#configuration)

This is the contents of the published config file (`config/xgapiclient.php`):

```
return [
    /*
    |--------------------------------------------------------------------------
    | Base API URL
    |--------------------------------------------------------------------------
    |
    | The base URL for the license server API.
    |
    */
    "base_api_url" => env('XG_LICENSE_API_URL', "https://license.xgenious.com"),

    /*
    |--------------------------------------------------------------------------
    | Product Token
    |--------------------------------------------------------------------------
    |
    | Unique product code for license server identification.
    |
    */
    "has_token" => env('XG_PRODUCT_TOKEN', ""),

    /*
    |--------------------------------------------------------------------------
    | V2 Update System Configuration
    |--------------------------------------------------------------------------
    |
    | Settings for the chunked update system (V2).
    | Recommended for production use to handle large updates reliably.
    |
    */
    "update" => [
        "chunk_size" => env('XG_UPDATE_CHUNK_SIZE', 10 * 1024 * 1024), // 10MB
        "download_timeout" => env('XG_UPDATE_DOWNLOAD_TIMEOUT', 300),
        "extraction_batch_size" => env('XG_UPDATE_EXTRACTION_BATCH', 100),
        "replacement_batch_size" => env('XG_UPDATE_REPLACEMENT_BATCH', 50),
        "enable_backup" => env('XG_UPDATE_ENABLE_BACKUP', true),
        "smart_vendor_replacement" => env('XG_UPDATE_SMART_VENDOR', true),
        "max_retries" => env('XG_UPDATE_MAX_RETRIES', 3),
        "status_file" => storage_path('app/xg-update/.update-status.json'),
        "temp_directory" => storage_path('app/xg-update'),
    ],
];
```

#### Environment Variables

[](#environment-variables)

You can customize the behavior by adding these variables to your `.env` file:

```
# License Server Configuration
XG_LICENSE_API_URL=https://license.xgenious.com
XG_PRODUCT_TOKEN=your-unique-product-token

# V2 Update System Settings (all optional, defaults shown)
XG_UPDATE_CHUNK_SIZE=10485760        # 10MB chunk size
XG_UPDATE_DOWNLOAD_TIMEOUT=300       # 5 minutes per chunk
XG_UPDATE_EXTRACTION_BATCH=100       # Files per extraction batch
XG_UPDATE_REPLACEMENT_BATCH=50       # Files per replacement batch
XG_UPDATE_ENABLE_BACKUP=true         # Backup files before replacing (recommended)
XG_UPDATE_SMART_VENDOR=true          # Smart vendor package replacement
XG_UPDATE_MAX_RETRIES=3              # Retry attempts for failed chunks
```

Usage
-----

[](#usage)

```
$xgapiclient = new XgApiClient\XgApiClient();
echo $xgapiclient->echoPhrase('Hello, XgApiClient!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Md. Abdur Rahman](https://github.com/mar-babu)
- [Sharfiur Rahman](https://github.com/sharifur)
- [Md Zahidul Islam](https://github.com/mdzahid-pro)
- [Mazharul Islam Suzon](https://github.com/iamsuzon)
- [Rakibul Hasan](https://github.com/rakib01)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance76

Regular maintenance activity

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 68% 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.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~64 days

Total

42

Last Release

132d ago

Major Versions

v1.2.3 → v2.0.02024-03-12

v2.0.0 → v3.0.02024-06-21

v3.0.5 → v4.0.02024-09-12

v4.0.0 → v5.0.02025-04-23

v5.0.0 → v6.0.02025-05-08

PHP version history (2 changes)v1.0.0PHP ^8.0

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cb40b1021fcbec528d9f15fce9a9b33c545c7cb50e280ae5d0ce3eb0d4f628f?d=identicon)[sharifur](/maintainers/sharifur)

---

Top Contributors

[![Sharifur](https://avatars.githubusercontent.com/u/28456389?v=4)](https://github.com/Sharifur "Sharifur (34 commits)")[![Rakib01](https://avatars.githubusercontent.com/u/33548111?v=4)](https://github.com/Rakib01 "Rakib01 (11 commits)")[![iamsuzon](https://avatars.githubusercontent.com/u/22504129?v=4)](https://github.com/iamsuzon "iamsuzon (4 commits)")[![mdzahid-pro](https://avatars.githubusercontent.com/u/77210189?v=4)](https://github.com/mdzahid-pro "mdzahid-pro (1 commits)")

---

Tags

laravelautomatic updatexgeniousxgapiclientbytesedlicense system

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/xgenious-xgapiclient/health.svg)

```
[![Health](https://phpackages.com/badges/xgenious-xgapiclient/health.svg)](https://phpackages.com/packages/xgenious-xgapiclient)
```

###  Alternatives

[lakm/laravel-comments

Integrate seamless commenting functionality into your Laravel project.

40012.9k1](/packages/lakm-laravel-comments)[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)

PHPackages © 2026

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