PHP code example of imsamurai / freebase-source

1. Go to this page and download the library: Download imsamurai/freebase-source 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/ */

    

imsamurai / freebase-source example snippets


public $freebase = array(
  'datasource' => 'FreebaseSource.Http/FreebaseSource', 
        'host' => 'www.googleapis.com/freebase/v1',
        'port' => 443
);

public $useDbConfig = 'freebase';
public $useTable = '<desired api url ending, for ex: "search">';


CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => false));
CakePlugin::load('FreebaseSource');


:: database.php ::

:: Freebase.php ::

:: bootstrap.php ::