PHP code example of avz-cmf / zaboy-rest

1. Go to this page and download the library: Download avz-cmf/zaboy-rest 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/ */

    

avz-cmf / zaboy-rest example snippets


    return [
        "dataStore" => [
            'testHttpClient' => [
                'class' => 'zaboy\rest\DataStore\HttpClient',
                'tableName' => 'test_res_http',
                'url' => 'http://localhost/api/rest/test_res_http',
                'options' => ['timeout' => 30]
            ],
            'testEavOverHttpClient' => [
                'class' => 'zaboy\rest\DataStore\HttpClient',
                 'url' => 'http://localhost/api/rest/entity_product',
                 'options' => ['timeout' => 30]
            ],
            'testEavOverHttpDbClient' => [
                        'class' => 'zaboy\rest\DataStore\HttpClient',
                        'url' => 'http://localhost:9090/api/rest/db'. EavAbstractFactory::DB_NAME_DELIMITER . 'entity_product',
                        'options' => ['timeout' => 30]
                   ],
        ]
    ];