PHP code example of mostafax / dynamic

1. Go to this page and download the library: Download mostafax/dynamic library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mostafax / dynamic example snippets


use Mostafax\Dynamic\Dynamic;

$data = [
    // request parameters
];

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

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

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

$response->collect();
$response->json();
$response->body();
bash
php artisan vendor:publish