PHPackages                             mostafax/dynamic - 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. mostafax/dynamic

ActiveLibrary

mostafax/dynamic
================

to connect dynamic

v2.0.0(1y ago)018MITPHP

Since Jan 10Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/mostafax2/dynamic)[ Packagist](https://packagist.org/packages/mostafax/dynamic)[ RSS](/packages/mostafax-dynamic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (6)Used By (0)

[![Board Status](https://camo.githubusercontent.com/624e3e5871b6d6868a534d97773162107390fb127a575db2ba38f29a1f407c0b/68747470733a2f2f6465762e617a7572652e636f6d2f6d6f7374616661656c6261797961722f61356637323066642d636466372d343033662d623761612d3164623261663264623735662f61333865643137342d303838652d346165662d396631382d3237623330646137626539662f5f617069732f776f726b2f626f61726462616467652f37633136613634312d333761372d346334662d613363322d373537333263633134386465)](https://dev.azure.com/mostafaelbayyar/a5f720fd-cdf7-403f-b7aa-1db2af2db75f/_boards/board/t/a38ed174-088e-4aef-9f18-27b30da7be9f/Microsoft.RequirementCategory)

```
# Dynamic Package
```

Laravel service for connecting with Dynamic API.

To install the package via Composer, run the following command:

```
composer require mostafax/dynamic
```

To publish the package configuration, run:

```
php artisan vendor:publish
```

Add the following environment variables to your `.env` file:

```
DYNAMIC_DOMAIN=http://domain
DYNAMIC_TOKEN=*******************************
DYNAMIC_TIMEOUT=60
DYNAMIC_TOKEN_STATUS='auto' or 'static'
```

If you need to generate a token with every request, add these variables as well:

```
TENANT_ID=''
CLIENT_ID=''
CLIENT_SECRET=''
RESOURCE=''
GRANT_TYPE=''
```

To use the package, include the namespace:

```
use Mostafax\Dynamic\Dynamic;
```

Handle the request data in the form of an array:

```
$data = [
    // request parameters
];
```

To send data with a POST request:

```
$dynamic = new Dynamic();
$dynamic->postData("API Name", $data);
```

To retrieve data with a GET request:

```
$dynamic = new Dynamic();
$dynamic->getData("API Name", $data);
```

To collect the response data:

```
$dynamic = new Dynamic();
$response = $dynamic->getData("API Name", $data);

$response->collect();
$response->json();
$response->body();
```

For any further support, email .

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance44

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~136 days

Total

3

Last Release

588d ago

Major Versions

v1.1.0 → v2.0.02024-10-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/50af87640e9fdf5334256080d493f8c462427633ce7114dddb17001246176d91?d=identicon)[mostafax2](/maintainers/mostafax2)

---

Top Contributors

[![mostafax2](https://avatars.githubusercontent.com/u/146624906?v=4)](https://github.com/mostafax2 "mostafax2 (9 commits)")

### Embed Badge

![Health badge](/badges/mostafax-dynamic/health.svg)

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

PHPackages © 2026

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