PHP code example of denason / wikimind
1. Go to this page and download the library: Download denason/wikimind 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/ */
denason / wikimind example snippets
$streetEntity = \Denason\Wikimind\Facades\Wikimind::getEntityId('street'); // Q79007
return wikiMindQuery()
->lang('fa')
->where('street', 'P31', $streetEntity)
->where('street', 'P17', 'Q794') // ایران
->select(['street', 'streetLabel'])
->filter('!BOUND(?place)')
->limit(50)
->get('collection');