PHP code example of twomedia / tel-search-php-api

1. Go to this page and download the library: Download twomedia/tel-search-php-api 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/ */

    

twomedia / tel-search-php-api example snippets


    $providers = [
        ...
        TwoMedia\TelSearch\TelSearchServiceProvider::class,
        ...
    ];

    $client = new TwoMedia\TelSearch\Client("YOUR_API_KEY");
    $response = $client->what(["Max", "Mustermann", "044123456"])->where(["Zürich"])->send();
    $entries = $response->entries();

    // Laravel
    $client = app("TwoMedia\TelSearch\Client");
    $response = $client->what(["Max", "Mustermann", "044123456"])->where(["Zürich"])->send();
    $entries = $response->entries();